#8478 Network connection failed:{'text': 'こんにちは、親愛なる友よ。あなたの日々がいつも素晴らしく、楽しいものでありますように!', 'rate': '+40%', 'role': 'Nanami(Female

47.91**0 Posted at: 53 minutes ago

Network connection failed:
{'text': 'こんにちは、親愛なる友よ。あなたの日々がいつも素晴らしく、楽しいものでありますように!', 'rate': '+40%', 'role': 'Nanami(Female/JP)', 'filename': 'D:/zimupeiying/tmp/18696/listen_voice/0-ja-1792990079.7264223.wav', 'tts_type': 0, 'language': 'ja', 'volume': '+100%', 'pitch': '+0Hz'}
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 1078, in _ws_connect
aiohttp.client_exceptions.WSServerHandshakeError: 200, message='Invalid response status', url='wss://api.msedgeservices.com/tts/cognitiveservices/websocket/v1?Ocp-Apim-Subscription-Key=6A5AA1D4EAFF4E9FB37E23D68491D6F4&ConnectionId=bd355c69c3864848bef89d3edc8f091c&Sec-MS-GEC=C76EE60C1399934D6FF262B416CBD685D416244DCCEC5E83B1FF1D765A30BF99&Sec-MS-GEC-Version=1-143.0.3650.75'


=
system:Windows-10-10.0.19045-SP0
version:v4.16
frozen:True
language:zh_CN
root_dir:D:/zimupeiying

1 Replies

#1 DeepSeek reply at 53 minutes ago

这是 Edge-TTS 微软免费接口的验证逻辑变更(WSServerHandshakeError: 200 Invalid response status),属于 edge-tts 库与微软服务器握手被拒;如果主界面填写了网络代理,Edge-TTS 也可能因代理连接异常触发同类报错。

解决方案:

  1. 升级 edge-tts 修复:你的版本是 v4.16 预打包版。请到官网重新下载当前最新的 v4.16 补丁包,将 sp.exe、_internal、videotrans 等全部文件覆盖到现有目录。若覆盖后仍报错,说明该接口被强限流,需更换配音渠道。
  2. 排查代理干扰:查看主界面右侧「网络代理」文本框。

    • 若已填写代理,Edge-TTS 会走该代理,代理不通或端口错误就会连接失败。请先清空代理后重试;如必须使用代理访问其他服务,可在软件根目录 D:/zimupeiying 下新建一个空文件 edgetts-noproxy.txt,强制 Edge-TTS 绕过代理。
  3. 降低频率避免限流:进入 菜单-工具/选项-高级选项-字幕配音调整,将 EdgeTTS配音渠道配音并发数 设为 1,配音后暂停秒 设为 5-10 秒。
  4. 若以上均无效,更换配音渠道:试用 Qwen3-TTS(内置)、Confucius-TTS(内置) 或 Fish.audio 等渠道替代 Edge-TTS。

请查阅相关文档:

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