CosyVoice icon indicating copy to clipboard operation
CosyVoice copied to clipboard

首包延迟3-5s是怎么实现的?

Open zhangyue678 opened this issue 1 year ago • 3 comments

GPU环境H20,测试的首包延迟为18s左右(模型加载到合成首段语音需要的时间),源码中推理的首包cost time是2.8s左右,请问大家测的首包延迟3-5s是怎么测的,是指下图中2.83s那个吗?以下是我的测试脚本和测试日志:

Image Image

zhangyue678 avatar Jan 21 '25 03:01 zhangyue678

下面那个是延迟,当然你也可以用自己的脚本测

aluminumbox avatar Jan 23 '25 16:01 aluminumbox

GPU环境H20,测试的首包延迟为18s左右(模型加载到合成首段语音需要的时间),源码中推理的首包cost time是2.8s左右,请问大家测的首包延迟3-5s是怎么测的,是指下图中2.83s那个吗?以下是我的测试脚本和测试日志:

首包肯定只算推理合成时间,模型加载是排除掉的。 推理前,模型需要预加载完毕。 你不可能推理一次,加载一次模型,用完卸载掉,那太慢了。

neoyxm avatar Feb 18 '25 02:02 neoyxm

首包2-5s还是能实现的,200ms有点难

AIStorm-boop avatar Feb 24 '25 14:02 AIStorm-boop