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接口缺乏切分等参数 #1043

Open
sancho-t opened this issue May 2, 2024 · 7 comments
Open

API接口缺乏切分等参数 #1043

sancho-t opened this issue May 2, 2024 · 7 comments

Comments

@sancho-t
Copy link

sancho-t commented May 2, 2024

API接口缺乏切分等参数,换成inference_webui.py中的get_tts_wav之后,输出音频无效。

@sancho-t
Copy link
Author

sancho-t commented May 2, 2024

通过api调用get_tts_wav后,该方法会重复执行两次,没理解,不知道是不是bug

@XXXXRT666
Copy link
Contributor

可以按指定标点切分,发请求需使用命令或终端而非浏览器

@sancho-t
Copy link
Author

sancho-t commented May 2, 2024 via email

@sancho-t
Copy link
Author

sancho-t commented May 2, 2024

可以按指定标点切分,发请求需使用命令或终端而非浏览器
非常谢谢!在edge中请求api会重复执行两次,换成chrome和用jupyter请求就不会重复了。
但获取到的音频和#237 (comment) 这个issures情况一样,我是N卡1660,通过该issues方案,试过之后未能解决问题。

@XXXXRT666
Copy link
Contributor

半精度问题吧,api得改config.py

@XXXXRT666
Copy link
Contributor

尝试api传参时候设定fp32看看

@sancho-t
Copy link
Author

sancho-t commented May 3, 2024

尝试api传参时候设定fp32看看
多谢多谢,原因找到了,是半精度的问题。之前只修改了config.py中的is_half,但是我调用的inference_webui.py中的get_tts_wav,
inference_webui.py 中会从环境变量中获取is_half进行覆盖。两处的is_half都修改之后问题解决了。

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