fish-speech icon indicating copy to clipboard operation
fish-speech copied to clipboard

关于调用API 生成流式音频的BUG反馈

Open hotdogarea opened this issue 1 month ago • 10 comments

在调用tool.api时,明明在post请求中加入了streaming参数,并且格式也是wav 但服务端依旧没有分批次返回音频流,而是全部生成完毕之后才返回,于是找到了tool/api.py 发现,InvokeRequest接收的参数中漏掉了streaming image

加上streaming=True之后,api调用正常,能正确返回流式音频数据了

hotdogarea avatar Jun 21 '24 02:06 hotdogarea