#7390 配音阶段出错 [Edge-TTS(免费)] edge-tts error:target_audio='D://tmp/22172/b2e8f77772/俄罗斯发货-edgetts-txt-1789629939.5384035.mp3'Tra

181.215**0 Posted at: 2 hours ago

配音阶段出错 [Edge-TTS(免费)] edge-tts error:target_audio='D://tmp/22172/b2e8f77772/俄罗斯发货-edgetts-txt-1789629939.5384035.mp3'
Traceback (most recent call last):

File "aiohttp\connector.py", line 1412, in _start_tls_connection

File "asyncio\base_events.py", line 1253, in start_tls

asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "aiohttp\client.py", line 725, in _connect_and_send_request

File "aiohttp\connector.py", line 622, in connect

File "aiohttp\connector.py", line 1187, in _create_connection

File "aiohttp\connector.py", line 1677, in _create_proxy_connection

File "aiohttp\connector.py", line 1397, in _start_tls_connection

File "async_timeout\__init__.py", line 179, in aexit

File "async_timeout\__init__.py", line 265, in _do_exit

asyncio.exceptions.TimeoutError

The above exception was the direct cause of the following exception:
......
aenter__

File "aiohttp\client.py", line 1061, in _ws_connect

File "aiohttp\client.py", line 770, in _request

File "aiohttp\client.py", line 729, in _connect_and_send_request

aiohttp.client_exceptions.ConnectionTimeoutError: Connection timeout to host wss://speech.platform.bing.com/consumer/speech/synthesize/readaloud/edge/v1?TrustedClientToken=6A5AA1D4EAFF4E9FB37E23D68491D6F4&ConnectionId=670da067a6074d3283a50829508b022c&Sec-MS-GEC=2D7A8F435563D3EB9C2DB7F0D7AF8A742A8352C4FCFCA9995202FBE7FB3FD6BF&Sec-MS-GEC-Version=1-143.0.3650.75

The above exception was the direct cause of the following exception:

Traceback (most recent call last):

File "videotrans\task\job.py", line 35, in run

File "videotrans\task\job.py", line 154, in process_task

File "videotrans\task\dubbing.py", line 51, in dubbing

File "videotrans\task\dubbing.py", line 132, in _tts

File "asyncio\runners.py", line 44, in run

File "asyncio\base_events.py", line 649, in run_until_complete

File "videotrans\task\_base.py", line 166, in _edgetts_single

videotrans.configure.excepts.DubbingSrtError: edge-tts error:target_audio='D://tmp/22172/b2e8f77772/俄罗斯发货-edgetts-txt-1789629939.5384035.mp3'
cfg=TaskCfgTTS(uuid='b2e8f77772', name='D:/output/recogn/俄罗斯发货.srt', dirname='D:/output/recogn', noextname='俄罗斯发货', basename='俄罗斯发货.srt', ext='srt', target_dir='D://output/tts', cache_folder='D://tmp/22172/b2e8f77772', is_cuda=False, source_language=None, source_language_code=None, source_sub=None, source_wav=None, source_wav_output=None, target_language=None, target_language_code='ar', target_sub='D:/output/recogn/俄罗斯发货.srt', target_wav='D://output/tts/俄罗斯发货.wav', target_wav_output=None, tts_type=0, volume='+50%', pitch='+3Hz', voice_rate='+3%', voice_role='Sana(Female/JO)', voice_autorate=False, video_autorate=False, remove_silent_mid=True, align_sub_audio=False)


=
system:Windows-10-10.0.19045-SP0
version:v4.07
frozen:True
language:zh
root_dir:D:/

1 Replies

#1 DeepSeek reply at 2 hours ago

核心原因:Edge-TTS 在通过代理连接微软语音服务器时,TLS 握手超时(ConnectionTimeoutError),无法连接 wss://speech.platform.bing.com。这是代理配置问题或微软接口限流导致的,不是软件本身缺陷。

解决方案(按顺序尝试)

  1. 检查代理设置

    • 如果主界面「网络代理」文本框填写了代理,确认代理服务正在运行且端口正确。
    • 若代理不稳定,可将代理文本框清空后保存,让 Edge-TTS 直连。
    • 若使用的是代理且报错,可在软件根目录新建空文件 edgetts-noproxy.txt,强制 Edge-TTS 绕过代理。
  2. 降低并发、增加暂停(避免被微软限流)

    • 进入 菜单 → 工具 → 高级选项 → 字幕配音调整
    • EdgeTTS配音渠道配音并发数 设为 1
    • 配音后暂停秒 设为 5~10 秒
    • EdgeTTS配音渠道失败重试次数 适当增大(如 3~5)
  3. 升级软件版本

    • 你当前为 v4.07,知识库针对 v4.12。Edge-TTS 接口微软时有变动,建议升级到最新版后再试。
  4. 临时切换配音渠道

    • 若急需完成,可改用 gTTS(免费) 或内置的 Qwen3-TTS 等其它渠道。

请查阅相关文档:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Dondate via ko-fi.com

Related resource