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

生成 audio过程有问题 #517

Open
rxmao opened this issue Nov 4, 2024 · 8 comments
Open

生成 audio过程有问题 #517

rxmao opened this issue Nov 4, 2024 · 8 comments

Comments

@rxmao
Copy link

rxmao commented Nov 4, 2024

报错如下,请教各位大佬
2024-11-04 16:40:25.285 | INFO | app.services.voice:azure_tts_v1:1057 - start, voice name: zh-CN-XiaoyiNeural, try: 1

2024-11-04 16:40:35.693 | ERROR | app.services.voice:azure_tts_v1:1080 - failed, error: Connection timeout to host wss://speech.platform.bing.com/consumer/speech/synthesize/readaloud/edge/v1?TrustedClientToken=6A5AA1D4EAFF4E9FB37E23D68491D6F4&ConnectionId=3979f2b3e10742298c4b548782699d67

2024-11-04 16:40:35.694 | INFO | app.services.voice:azure_tts_v1:1057 - start, voice name: zh-CN-XiaoyiNeural, try: 2

2024-11-04 16:40:46.693 | ERROR | app.services.voice:azure_tts_v1:1080 - failed, error: Connection timeout to host wss://speech.platform.bing.com/consumer/speech/synthesize/readaloud/edge/v1?TrustedClientToken=6A5AA1D4EAFF4E9FB37E23D68491D6F4&ConnectionId=ebecdd91578f46d9a42fefbfa3d31269

2024-11-04 16:40:46.693 | INFO | app.services.voice:azure_tts_v1:1057 - start, voice name: zh-CN-XiaoyiNeural, try: 3

2024-11-04 16:40:57.693 | ERROR | app.services.voice:azure_tts_v1:1080 - failed, error: Connection timeout to host wss://speech.platform.bing.com/consumer/speech/synthesize/readaloud/edge/v1?TrustedClientToken=6A5AA1D4EAFF4E9FB37E23D68491D6F4&ConnectionId=376c879b5eee41569af8aa0b02fe60e0

2024-11-04 16:40:57.694 | ERROR | app.services.task:generate_audio:85 - failed to generate audio:

  1. check if the language of the voice matches the language of the video script.
  2. check if the network is available. If you are in China, it is recommended to use a VPN and enable the global traffic mode.

2024-11-04 16:40:57.694 | ERROR | main::790 - 视频生成失败

@rxmao rxmao changed the title 生成过程有问题 生成 audio过程有问题 Nov 4, 2024
@yyhhyyyyyy
Copy link
Collaborator

This error occurs when the voice generation is unable to connect to Microsoft's network. Please make sure your network can connect to Microsoft.

@alanstars
Copy link

I also encountered the same problem.

@yml-222
Copy link

yml-222 commented Nov 8, 2024

image
之前生成视频没有问题,现在就报错了

@zyz913614263
Copy link

我也遇到这个问题了,怎么解决?

@Yyuzhuohang
Copy link

升级edge-tts库版本,更新到edge-tts=6.1.17,pip install edge-tts

@easonton
Copy link

升级edge-tts库版本,更新到edge-tts=6.1.17,pip install edge-tts

果然可以了,感谢大佬

@zyz913614263
Copy link

升级edge-tts库版本,更新到edge-tts=6.1.17,pip install edge-tts

原因是什么?

@yyhhyyyyyy
Copy link
Collaborator

其实本质原因是你们当前的网络环境没法与 speech.platform.bing.com 这一网站(其他参数先忽略)连通
具体应该要解决你们自己的网络环境
可以查看 edge-tts=6.1.10BASE_URL
以及 edge-tts=6.1.17BASE_URL
两个版本抽象出来的根域名是一致的

如果使用的是代理 建议开启tunnel模式 或者设置好运行环境的代理指向

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

7 participants