#5138 TaskCfgTTS(uuid='5c9d2f0d34', name='C:/Users/Administrator/Desktop/6月9日.srt', dirname='C:/Users/Administrator/Desktop',

2409:8a34* Posted at: 1 day ago

配音阶段出错 [Edge-TTS(免费)] edge-tts error:target_audio='D:/peiyinzimujianjiruanjian/tmp/26256/5c9d2f0d34/6月9日-edgetts-txt-1781253562.5204818.mp3'
Traceback (most recent call last):

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

File "aiohappyeyeballs\impl.py", line 122, in start_connection

File "aiohappyeyeballs\impl.py", line 73, in start_connection

File "aiohappyeyeballs\impl.py", line 208, in _connect_sock

File "asyncio\selector_events.py", line 501, in sock_connect

File "asyncio\selector_events.py", line 541, in _sock_connect_cb

ConnectionRefusedError: [Errno 10061] Connect call failed ('127.0.0.1', 10808)

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 1586, in _create_proxy_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.ClientProxyConnectionError: Cannot connect to host 127.0.0.1:10808 ssl: [Connect call failed ('127.0.0.1', 10808)]

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 54, in dubbing

File "videotrans\task\dubbing.py", line 133, 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='D:/peiyinzimujianjiruanjian/tmp/26256/5c9d2f0d34/6月9日-edgetts-txt-1781253562.5204818.mp3'
TaskCfgTTS(uuid='5c9d2f0d34', name='C:/Users/Administrator/Desktop/6月9日.srt', dirname='C:/Users/Administrator/Desktop', noextname='6月9日', basename='6月9日.srt', ext='srt', target_dir='D:/peiyinzimujianjiruanjian/output/tts', cache_folder='D:/peiyinzimujianjiruanjian/tmp/26256/5c9d2f0d34', 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='en', target_sub='C:/Users/Administrator/Desktop/6月9日.srt', target_wav='D:/peiyinzimujianjiruanjian/output/tts/6月9日.wav', target_wav_output=None, tts_type=0, volume='+2%', pitch='+0Hz', voice_rate='+15%', voice_role='Brian(Male/US)', voice_autorate=False, video_autorate=False, remove_silent_mid=True, align_sub_audio=False)


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

1 Replies

Edge-TTS 报错 ConnectionRefusedError: [Errno 10061] Connect call failed ('127.0.0.1', 10808) 是因为你在主界面第5行 “网络代理” 处填写了 http://127.0.0.1:10808,但当前系统并未运行监听该端口的代理客户端(如 V2Ray、Clash 等),导致连接被拒绝。

解决方案(任选其一):

  1. 关闭代理:在主界面第5行“网络代理”输入框中清空所有内容(保持为空),然后重新开始任务。
  2. 启动代理客户端:确保你的代理软件正在运行,并正确监听 127.0.0.1:10808 端口(或修改代理地址为实际运行的端口)。

针对 Edge-TTS 的额外优化建议(防止后续被微软限流导致 403 或静音):

  • 进入 菜单 → 工具 → 高级选项 → 字幕配音调整,将 “EdgeTTS配音渠道配音并发数” 设为 1“配音后暂停秒” 设为 5(或更大),保存后重新执行任务。

请查阅相关文档:

Post Your Reply
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: ko-fi.com/jianchang512

Related resource