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

解决edge_tts报错,将edge_tts包升级到指定版本6.1.18即可,无需修改任何代码。 #561

Open
1 task done
lym0829 opened this issue Dec 27, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@lym0829
Copy link

lym0829 commented Dec 27, 2024

是否已存在类似问题?

  • 我已搜索现有问题

当前行为

整合包启动后,点击是听语音合成或者合成视频时edge_tts报错,433之类的。用pycharm添加整合包中虚拟环境下的python解释器,将edge_tts包升级到指定版本6.1.18即可,无需修改任何代码。

预期行为

重现步骤

堆栈追踪/日志

Python 版本

v3.10

操作系统

Windows11

MoneyPrinterTurbo 版本

v1.2.1

其他信息

No response

@lym0829 lym0829 added the bug Something isn't working label Dec 27, 2024
@cxncoco
Copy link

cxncoco commented Dec 27, 2024

2024-12-27 20:52:55.715 | INFO | app.services.voice:azure_tts_v1:1057 - start, voice name: zh-CN-XiaoxiaoNeural, try: 1

2024-12-27 20:52:56.664 | ERROR | app.services.voice:azure_tts_v1:1080 - failed, error: 403, message='Invalid response status', url=URL('wss://speech.platform.bing.com/consumer/speech/synthesize/readaloud/edge/v1?TrustedClientToken=6A5AA1D4EAFF4E9FB37E23D68491D6F4&ConnectionId=1b11c371eca848f18ccef0a69964d6d8')

2024-12-27 20:52:56.666 | INFO | app.services.voice:azure_tts_v1:1057 - start, voice name: zh-CN-XiaoxiaoNeural, try: 2

2024-12-27 20:52:57.623 | ERROR | app.services.voice:azure_tts_v1:1080 - failed, error: 403, message='Invalid response status', url=URL('wss://speech.platform.bing.com/consumer/speech/synthesize/readaloud/edge/v1?TrustedClientToken=6A5AA1D4EAFF4E9FB37E23D68491D6F4&ConnectionId=b809f4e4ca9d4c7986dd73efce832b91')

2024-12-27 20:52:57.624 | INFO | app.services.voice:azure_tts_v1:1057 - start, voice name: zh-CN-XiaoxiaoNeural, try: 3

2024-12-27 20:52:58.570 | ERROR | app.services.voice:azure_tts_v1:1080 - failed, error: 403, message='Invalid response status', url=URL('wss://speech.platform.bing.com/consumer/speech/synthesize/readaloud/edge/v1?TrustedClientToken=6A5AA1D4EAFF4E9FB37E23D68491D6F4&ConnectionId=4359460d0ff34e35aafd9557e0fe73bb')

2024-12-27 20:52:58.572 | 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-12-27 20:52:58.574 | ERROR | main::790 - 视频生成失败


pip show edge_tts
Name: edge-tts
Version: 7.0.0
Summary: Microsoft Edge's TTS
Home-page: https://github.com/rany2/edge-tts
Author: rany
Author-email: [email protected]
License:
Location: c:\python\python38\lib\site-packages
Requires: aiohttp, certifi, srt, tabulate, typing-extensions
Required-by:

@lym0829
Copy link
Author

lym0829 commented Dec 30, 2024

把edge-tts降到6.1.18

@yyhhyyyyyy
Copy link
Collaborator

image
Why not update to version 1.2.2 and refresh the dependencies as well?

@cxncoco
Copy link

cxncoco commented Dec 30, 2024

generating audio

2024-12-30 12:41:29 | INFO | "./app\services\voice.py:1081": azure_tts_v1 - start, voice name: de-DE-AmalaNeural, try: 1
2024-12-30 12:41:30 | ERROR | "./app\services\voice.py:1104": azure_tts_v1 - failed, error: 403, message='Invalid response status', url=URL('wss://speech.platform.bing.com/consumer/speech/synthesize/readaloud/edge/v1?TrustedClientToken=6A5AA1D4EAFF4E9FB37E23D68491D6F4&ConnectionId=4ea5f70ec460402ea092fe454145b29c')
2024-12-30 12:41:30 | INFO | "./app\services\voice.py:1081": azure_tts_v1 - start, voice name: de-DE-AmalaNeural, try: 2
2024-12-30 12:41:31 | ERROR | "./app\services\voice.py:1104": azure_tts_v1 - failed, error: 403, message='Invalid response status', url=URL('wss://speech.platform.bing.com/consumer/speech/synthesize/readaloud/edge/v1?TrustedClientToken=6A5AA1D4EAFF4E9FB37E23D68491D6F4&ConnectionId=77a73ab896104beb8c8b9e6254e29ad2')
2024-12-30 12:41:31 | INFO | "./app\services\voice.py:1081": azure_tts_v1 - start, voice name: de-DE-AmalaNeural, try: 3
2024-12-30 12:41:32 | ERROR | "./app\services\voice.py:1104": azure_tts_v1 - failed, error: 403, message='Invalid response status', url=URL('wss://speech.platform.bing.com/consumer/speech/synthesize/readaloud/edge/v1?TrustedClientToken=6A5AA1D4EAFF4E9FB37E23D68491D6F4&ConnectionId=be4116ccde184f3ebf0b4a3953f4b3f3')
2024-12-30 12:41:32 | ERROR | "./app\services\task.py:85": generate_audio - 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-12-30 12:41:32 | ERROR | "./webui\Main.py:790": <module> - 视频生成失败

QQ20241230-124345

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

3 participants