Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api服务开启可不可以直接加入流式推理 #83

Open
dandandujie opened this issue Aug 9, 2024 · 3 comments
Open

api服务开启可不可以直接加入流式推理 #83

dandandujie opened this issue Aug 9, 2024 · 3 comments

Comments

@dandandujie
Copy link

运行api.py后,外部调用api时输入文本可以自动实现流式输出功能

@dandandujie
Copy link
Author

我在run.py和api.py中将streaming的值默认设置为1就能每次调用时自动实现流式输出,但是存在另一个问题,生成的分段式音频都只能卡在百分之一不会继续生成下去,导致最后只能听见一段话的开头几个字就没有声音了

@dandandujie
Copy link
Author

比如下图
image

@lx1234156
Copy link

大佬 为什么我调用api接口报错
image
请问该如何解决?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants