#7022 代理设置不正确或代理不可用,请检查代理或关闭代理并删掉代理文本框中所填内容:{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'rate': '+0%', 'role': 'Yunyang(Male/CN)',

2409**5ad3 Posted at: 1 hour ago

代理设置不正确或代理不可用,请检查代理或关闭代理并删掉代理文本框中所填内容:
{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'rate': '+0%', 'role': 'Yunyang(Male/CN)', 'filename': 'C:\Users\fu\AppData\Local\Temp/pyvideotrans/0-1788363322.0132449.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 233, in run
File "videotrans\tts\_base.py", line 100, 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 154, 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.19044-SP0
version:v4.11
frozen:True
language:zh
root_dir:C:/pyvideotrans

1 Replies

#1 DeepSeek reply at 1 hour ago

这是代理配置错误导致的。报错显示软件尝试连接到 127.0.0.1:7897 但连接被拒绝(ConnectionRefusedError),说明地址栏填写的代理服务当前未运行或端口不正确。

解决方案(按顺序操作):

  1. 确认是否需要代理:如果你使用的是 Edge-TTS 等在线接口,在国内通常需要代理才能访问;如果网络环境本身可以直连,则不需要代理。
  2. 代理服务未启动:如果你确实在使用代理软件(如 Clash),请确保:

    • 代理软件已启动并开启系统代理
    • 本地 HTTP 代理端口确实是 7897(Clash 默认端口,但请以你代理软件实际显示的端口为准)
  3. 清空代理地址:如果不需要代理,或不确定代理设置,直接删除主界面下方"对齐控制"行右侧代理文本框中的所有内容,保存后重新执行任务。
  4. 强制 Edge-TTS 绕过代理(可选):如果不想用代理访问 Edge-TTS,可在软件根目录(C:/pyvideotrans)下新建一个空文件,命名为 edgetts-noproxy.txt,强制 Edge-TTS 绕过代理设置。
  5. 改用其他配音渠道:若上述方法仍无法解决,可在配音渠道中选择 gTTS(免费),或在字幕翻译、配音环节改用国内可直接访问的渠道。

请查阅相关文档:

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