#8456 配音阶段出错 [Edge-TTS(免费)] edge-tts error:target_audio='E:/BaiduNetdiskDownload/tmp/27056/4384184248/家园防线-edgetts-txt-1792914

240e**9bb9 Posted at: 2 hours ago

配音阶段出错 [Edge-TTS(免费)] edge-tts error:target_audio='E:/BaiduNetdiskDownload/tmp/27056/4384184248/家园防线-edgetts-txt-1792914333.9888594.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

ConnectionResetError

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

Traceback (most recent call last):

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

File "edge_tts\communicate.py", line 588, in stream

File "edge_tts\communicate.py", line 461, in __stream

File "aiohttp\client.py", line 1482, in aenter

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

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

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 1445, in _start_tls_connection

aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host speech.platform.bing.com:443 ssl: [None]

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 155, in process_task

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

File "videotrans\task\dubbing.py", line 137, 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 272, in _edgetts_single

videotrans.configure.excepts.DubbingSrtError: edge-tts error:target_audio='E:/BaiduNetdiskDownload/tmp/27056/4384184248/家园防线-edgetts-txt-1792914333.9888594.mp3'
trk=[DubbingSrt]: uuid='4384184248', proxy_str='http://127.0.0.1:10090', cfg=[TaskCfgTTS]
原始输入文件名: F:/翻译字幕/家园防线.txt,
输出结果保存到文件夹: F:/解说录音/tts,
临时文件夹: E:/BaiduNetdiskDownload/tmp/27056/4384184248
未启用CUDA加速
配音渠道:Edge-TTS(免费), 角色:AndrewMultilingual(Male/US), 配音语言:en
音量:+40%, 语速:+36%, 已选 音频加速
已选 移除每条字幕配音开头和结尾静音缓冲
已选 移除每条字幕配音全部静音缓冲
静音移除力度: default
代理地址:http://127.0.0.1:10090, precent=1, hasend=False, should_recogn=False, should_trans=False, should_dubbing=True, should_hebing=False, out_ext='wav', is_multi_role=False, ignore_align=True, output_folder=None, subs=[]


=
system:Windows-10-10.0.19045-SP0
version:v4.16
frozen:True
language:zh_CN
root_dir:E:/BaiduNetdiskDownload

1 Replies

#1 DeepSeek reply at 2 hours ago

这是 网络代理导致的连接失败。日志中显示 proxy_str='http://127.0.0.1:10090',Edge-TTS 请求走了你填写的代理,而该代理无法连接微软的语音服务(speech.platform.bing.com:443),因此报 ClientConnectorError。Edge-TTS 在国内通常可直接访问,无需代理。

解决方案(按优先级尝试)

方法一:让 Edge-TTS 绕过代理(推荐)

  1. 打开软件根目录(sp.exe 所在文件夹,即 E:/BaiduNetdiskDownload)。
  2. 新建一个空的文本文件,命名为 edgetts-noproxy.txt(注意后缀,不要变成 .txt.txt)。
  3. 重新开始配音任务。

    该文件会让 Edge-TTS 强制不走代理,其它需要代理的渠道不受影响。

方法二:检查/清空代理

  1. 确认你填写的代理 http://127.0.0.1:10090 是否确实已启动、端口是否正确。
  2. 若该代理已失效或不需要,直接在主界面「网络代理」框中清空该地址并保存,再重试。

方法三:降低并发防限流
进入 菜单 → 工具/选项 → 高级选项 → 字幕配音调整:

  • 将 EdgeTTS配音渠道配音并发数 设为 1
  • 将 配音后暂停秒 设为 5~10
  • 将 EdgeTTS配音渠道失败重试次数 适度调大(如 3)

补充说明

  • 你当前版本为 v4.16,若还频繁遇到 403,请升级到 v4.17(已修复 Edge-TTS 403 问题)。
  • 若使用源码部署,可执行:uv add git+https://github.com/rany2/edge-tts.git 更新库。

请查阅相关文档:

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