#7611 配音阶段出错 [Edge-TTS(免费)] edge-tts error:target_audio='D:/pyvideotrans/tmp/6048/05ab5333da/1-10章-edgetts-txt-1790305357.9523

172.104**4 Posted at: 2 hours ago

配音阶段出错 [Edge-TTS(免费)] edge-tts error:target_audio='D:/pyvideotrans/tmp/6048/05ab5333da/1-10章-edgetts-txt-1790305357.9523435.mp3'
Traceback (most recent call last):

File "aiohttp\connector.py", line 1263, in _wrap_create_connection

File "asyncio\base_events.py", line 1103, in create_connection

File "asyncio\base_events.py", line 1133, in _create_connection_transport

File "asyncio\selector_events.py", line 862, in _read_ready__data_received

ConnectionResetError: [WinError 10054] 远程主机强迫关闭了一个现有的连接。

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

Traceback (most recent call last):

File "videotrans\task\_base.py", line 259, 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 1189, in _create_connection

File "aiohttp\connector.py", line 1561, in _create_direct_connection

File "aiohttp\connector.py", line 1530, in _create_direct_connection

File "aiohttp\connector.py", line 1271, in _wrap_create_connection

aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host speech.platform.bing.com:443 ssl: [远程主机强迫关闭了一个现有的连接。]

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 138, 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 270, in _edgetts_single

videotrans.configure.excepts.DubbingSrtError: edge-tts error:target_audio='D:/pyvideotrans/tmp/6048/05ab5333da/1-10章-edgetts-txt-1790305357.9523435.mp3'
[DubbingSrt]语音合成: self.out_ext='mp3',self.is_multi_role=False
[TaskCfgTTS]
原始输入文件名: C:/Users/yftadad/Desktop/Ebook/道医/1-10章.txt,
输出结果保存到文件夹: D:/pyvideotrans/output/tts,
临时文件夹: D:/pyvideotrans/tmp/6048/05ab5333da
已启用CUDA加速
配音渠道:Edge-TTS(免费), 角色:Yunxia(Male/CN), 配音语言:zh-cn
音量:+2%, 语速:+1%, 未选 音频加速
未选 移除字幕间空隙, 未选 强制对齐字幕和声音
代理地址:http://127.0.0.1:7892


=
system:Windows-10-10.0.22631-SP0
version:v4.13
frozen:True
language:zh_CN
root_dir:D:/pyvideotrans

1 Replies

#1 DeepSeek reply at 2 hours ago

核心原因:代理与 Edge-TTS 不兼容。

您填写的代理地址 http://127.0.0.1:7892 导致连接微软语音服务 speech.platform.bing.com 时被远端强制断开(WinError 10054)。

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

  1. 在软件根目录 D:/pyvideotrans/ 下新建一个空文本文件,命名为 edgetts-noproxy.txt(注意扩展名,不要有 .txt.txt)。

    此文件会强制 Edge-TTS 绕过代理。

  2. 若第 1 步无效,请清空主界面「对齐控制」行右侧的网络代理文本框,保存后重试。

  3. 若仍报错,说明是您的代理节点 IP 被微软限流,请更换代理节点,或改用其他 TTS 渠道(如 Qwen-TTS、gTTS 或本地内置渠道)。

  4. 若频繁出现 403 或中断,请进入 菜单 → 工具/选项 → 高级选项 → 字幕配音调整,将 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