#7865 http=127.0.0.1:20890;https=127.0.0.1:20890;socks=127.0.0.1:20890:{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'rate': '+0%', '

36.227**4 Posted at: 1 hour ago

http=127.0.0.1:20890;https=127.0.0.1:20890;socks=127.0.0.1:20890:
{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'rate': '+0%', 'role': 'Yunyang(Male/CN)', 'filename': 'C:\Users\JC\AppData\Local\Temp/pyvideotrans/0-1791362625.9239116.wav', 'tts_type': 0, 'language': 'zh-cn', 'volume': '+0%', 'pitch': '+0Hz'}
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 21, in run
File "videotrans\tts\__init__.py", line 122, 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 1576, in _create_proxy_connection
File "aiohttp\client_reqrep.py", line 887, in init
File "aiohttp\client_reqrep.py", line 1028, in update_host
aiohttp.client_exceptions.InvalidURL: http=127.0.0.1:20890;https=127.0.0.1:20890;socks=127.0.0.1:20890


=
system:Windows-10-10.0.26300-SP0
version:v4.15
frozen:True
language:zh_CN
root_dir:D:/win

1 Replies

#1 DeepSeek reply at 1 hour ago

核心原因:代理文本框(网络代理)里填写了错误的代理格式。你填入的是环境变量格式(http=...;https=...;socks=...),而该输入框只接受单一代理 URL,导致 aiohttp 把整串字符当成 URL 解析,抛出 InvalidURL。

解决方案:

  1. 在主界面「对齐控制(Alignment)」行右侧的网络代理文本框中,清空现有内容。
  2. 若要使用代理,只填一个地址,格式必须为以下之一:

    • http://127.0.0.1:20890
    • socks5://127.0.0.1:20890
  3. 若不需要代理(Edge-TTS 是国内可直连的免费接口),直接清空该文本框并保存。
  4. 若清空后仍报代理相关错误,在软件根目录(D:/win)新建一个空文本文件,命名为 edgetts-noproxy.txt,强制 edge-tts 绕过代理。
  5. 保存后重启软件重试。

(注:你粘贴的这段信息是「试听配音」的调试输出,报错发生在 Edge-TTS 通过代理建立 WebSocket 连接时,与配音文本、角色本身无关。)

请查阅相关文档:

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