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

语音合成报错403 #570

Open
1 task done
lyq19961011 opened this issue Jan 16, 2025 · 3 comments
Open
1 task done

语音合成报错403 #570

lyq19961011 opened this issue Jan 16, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@lyq19961011
Copy link

是否已存在类似问题?

  • 我已搜索现有问题

当前行为

failed, error: 403, message='Invalid response status', url=URL('wss://speech.platform.bing.com/consumer/speech/synthesize/readaloud/edge/v1?TrustedClientToken=6A5AA1D4EAFF4E9FB37E23D68491D6F4&ConnectionId=426b410e84124924a2da021b468b4e2c')
合成语音时报这个错误

预期行为

应该成功合成语音

重现步骤

点击试听语音合成报错

堆栈追踪/日志

failed, error: 403, message='Invalid response status', url=URL('wss://speech.platform.bing.com/consumer/speech/synthesize/readaloud/edge/v1?TrustedClientToken=6A5AA1D4EAFF4E9FB37E23D68491D6F4&ConnectionId=426b410e84124924a2da021b468b4e2c')

Python 版本

使用一键启动包

操作系统

Windows 11

MoneyPrinterTurbo 版本

MoneyPrinterTurbo v1.2.1

其他信息

No response

@lyq19961011 lyq19961011 added the bug Something isn't working label Jan 16, 2025
@JV-X
Copy link

JV-X commented Jan 17, 2025

同样的问题,+1

@alexrumi
Copy link

解决了,在app/services/voice.py 里面修改第1060行,communicate = edge_tts.Communicate(text, voice_name, rate=rate_str, proxy="http://127.0.0.1:10808") 其中"proxy“字段是新加的,后面的端口对应你vpn软件的端口,我的是10808,你自己查一下。改掉后重新启动软件就好了

@hsfanqie
Copy link

需要使用哪个vpn软件

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants