#6971 配音阶段出错 [Edge-TTS(免费)] edge-tts error:target_audio='I:/AiPrograms/win-pyvideotrans-v4.11/tmp/28136/ab7ae47090/Advanced Wi

103.172**3 Posted at: 1 hour ago

配音阶段出错 [Edge-TTS(免费)] edge-tts error:target_audio='I:/AiPrograms/win-pyvideotrans-v4.11/tmp/28136/ab7ae47090/Advanced Windows Debugging - Part 2 - cn-edgetts-txt-1788083161.2257931.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 154, in _edgetts_single

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

File "edge_tts\communicate.py", line 431, 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 156, in process_task

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

videotrans.configure.excepts.DubbingSrtError: edge-tts error:target_audio='I:/AiPrograms/win-pyvideotrans-v4.11/tmp/28136/ab7ae47090/Advanced Windows Debugging - Part 2 - cn-edgetts-txt-1788083161.2257931.mp3'
[DubbingSrt]语音合成: self.out_ext='m4a',self.is_multi_role=False
[TaskCfgTTS]
原始输入文件名: F:/pluralsight/高级调试/Advanced Windows Debugging -- Mario Hewardt/resources/Advanced Windows Debugging - Part 2 - cn.txt,
输出结果保存到文件夹: F:/pluralsight/高级调试/Advanced Windows Debugging -- Mario Hewardt/resources,
临时文件夹: I:/AiPrograms/win-pyvideotrans-v4.11/tmp/28136/ab7ae47090
已启用CUDA加速
配音渠道:Edge-TTS(免费), 角色:Yunyang(Male/CN), 配音语言:zh-cn
音量:+0%, 语速:+0%, 未选 音频加速
未选 移除字幕间空隙, 未选 强制对齐字幕和声音
代理地址:http://127.0.0.1:7897


=
system:Windows-10-10.0.19044-SP0
version:v4.11
frozen:True
language:zh
root_dir:I:/AiPrograms/win-pyvideotrans-v4.11

1 Replies

#1 DeepSeek reply at 1 hour ago

该错误是网络连接被重置导致 Edge-TTS 无法建立与微软语音服务 speech.platform.bing.com 的 TLS 连接。根据日志,你在软件中配置了代理 http://127.0.0.1:7897,而 Edge-TTS 通过代理连接时被服务器重置,常见原因包括:

  1. 代理服务未启动或端口未开放
  2. 代理线路不稳定,导致连接被微软重置
  3. 代理软件与 Edge-TTS 的 WebSocket 连接不兼容

解决方法(按顺序尝试):

  1. 先验证代理是否可用:确认你的代理客户端(如 Clash)正在运行,且本地端口 7897 正确。可在浏览器中访问 http://127.0.0.1:7897 或测试代理连接。
  2. 强制 Edge-TTS 绕过代理:在软件安装目录(即 sp.exe 所在文件夹)下新建一个空文件,命名为 edgetts-noproxy.txt(注意扩展名是 .txt),然后重启软件再次配音。这将强制 Edge-TTS 不走代理,直接连接微软服务器。若你的代理不是必须的,推荐此方法。
  3. 清空软件中的代理设置:在软件主界面“对齐控制”行右侧的网络代理文本框中,删除 http://127.0.0.1:7897,保存后重试。Edge-TTS 是免费在线接口,通常无需代理即可访问(取决于网络环境)。
  4. 降低并发与增加暂停:若连接仍不稳定,进入 菜单 → 工具 → 高级选项 → 字幕配音调整,将 EdgeTTS配音渠道配音并发数 设为 1配音后暂停秒 设为 5-10,以温和频率调用,避免被限流。

请查阅相关文档:

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