PaddleSpeech icon indicating copy to clipboard operation
PaddleSpeech copied to clipboard

服务多并发出现多个并发的结果相互串了的情况

Open Tian14267 opened this issue 1 year ago • 2 comments

算法:fastspeech2, pwgan 服务部署:websocket 并发:2个并发 具体情况:并发1的文本,出来的语音确是并发2的结果;并发2的文本,出来的语音确是并发1的结果;即,两个结果搞串了。 情况追踪: 通过追踪发现,模型的输入是正常,但是输出不正常。

image phones_handle的输入正常,am_output_data的结果却不对。请问这情况是什么原因啊,这么解决这个问题。

Tian14267 avatar Aug 08 '22 09:08 Tian14267

predictor 不是线程安全的,同一个只能在一个线程或进程使用。不同线程使用不同的 predictor 即可

yt605155624 avatar Aug 08 '22 10:08 yt605155624

这个问题还在定位解决中

lym0302 avatar Aug 10 '22 12:08 lym0302

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 30 '22 22:09 stale[bot]

This issue is closed. Please re-open if needed.

stale[bot] avatar Nov 01 '22 15:11 stale[bot]