#8243 Proxy configuration issue, check settings or disable proxy:{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'rate': '+0%', 'role':

120.230**0 Posted at: 1 hour ago

Proxy configuration issue, check settings or disable proxy:
{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'rate': '+0%', 'role': 'Xiaoyi(Female/CN)', 'filename': 'C:\Users\Admin\AppData\Local\Temp/pyvideotrans/0-1792247825.635375.wav', 'tts_type': 0, 'language': 'zh-cn', 'volume': '+0%', 'pitch': '+0Hz'}
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', 7897)

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

Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 21, in run
File "videotrans\tts\__init__.py", line 132, in run
File "videotrans\tts\_base.py", line 95, in run
File "asyncio\runners.py", line 44, in run
File "asyncio\base_events.py", line 649, in run_until_complete
File "videotrans\tts\_edgetts.py", line 161, in _exec
File "edge_tts\communicate.py", line 590, in save
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:7897 ssl: [Connect call failed ('127.0.0.1', 7897)]


=
system:Windows-10-10.0.26200-SP0
version:v4.16
frozen:True
language:zh_CN
root_dir:D:/Program Files/pyVideoTrans

1 Replies

#1 DeepSeek reply at 1 hour ago

这是软件中填写的网络代理(127.0.0.1:7897)当前未运行或端口错误,Edge-TTS 在尝试连接该代理时被拒绝,并非 Edge-TTS 服务端问题。同时请将软件移动到不含空格和特殊符号的路径(当前 D:/Program Files/pyVideoTrans 含空格,易引发其他异常)。

解决办法(任选其一):

  1. 启动代理软件,确认其端口确为 7897(Clash Verge 默认常用端口,若已被修改需同步填写),或修改后重试。
  2. 若 Edge-TTS 无需代理即可访问:清空主界面「对齐控制」行右侧的网络代理文本框,保存后重试(Edge-TTS 为微软免费接口,国内通常可直连)。
  3. 若需保留代理供其他渠道(如 Google 翻译)使用,但希望 Edge-TTS 不走代理:在软件根目录(sp.exe 所在文件夹)新建空文件 edgetts-noproxy.txt,重启软件即可强制 Edge-TTS 绕过代理。

补充建议:为避免路径空格导致的偶发错误,将整个软件目录移动到浅层纯英文路径,例如 D:\pyVideoTrans。

请查阅相关文档:

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