#8298 :{'text': 'Привет, мой дорогой друг! Надеюсь, каждый твой день будет прекрасным и радостным!', 'rate': '+0%', 'role': 'D

46.29**2 Posted at: 2 hours ago

:
{'text': 'Привет, мой дорогой друг! Надеюсь, каждый твой день будет прекрасным и радостным!', 'rate': '+0%', 'role': 'Dmitry(Male/RU)', 'filename': '/var/folders/tt/8y0t9h956v1cr_71nl27tcx80000gn/T/pyvideotrans/0-1792434763.852244.wav', 'tts_type': 0, 'language': 'ru', 'volume': '+0%', 'pitch': '+0Hz'}
Traceback (most recent call last):
File "/Users/moodysmacos/pyvideotrans/.venv/lib/python3.10/site-packages/edge_tts/communicate.py", line 566, in stream

async for message in self.__stream():

File "/Users/moodysmacos/pyvideotrans/.venv/lib/python3.10/site-packages/edge_tts/communicate.py", line 431, in __stream

async with aiohttp.ClientSession(

File "/Users/moodysmacos/pyvideotrans/.venv/lib/python3.10/site-packages/aiohttp/client.py", line 1482, in aenter

self._resp: _RetType = await self._coro

File "/Users/moodysmacos/pyvideotrans/.venv/lib/python3.10/site-packages/aiohttp/client.py", line 1078, in _ws_connect

raise WSServerHandshakeError(

aioht
......
consumer/speech/synthesize/readaloud/edge/v1?TrustedClientToken=6A5AA1D4EAFF4E9FB37E23D68491D6F4&ConnectionId=223a71298d834aa296986bde4337e250&Sec-MS-GEC=D07CF7A65EB9A90E27E058AA29BFF744CEB469569BDB6AC2B58696F7129D0EB6&Sec-MS-GEC-Version=1-143.0.3650.75'

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

Traceback (most recent call last):
File "/Users/moodysmacos/pyvideotrans/videotrans/util/ListenVoice.py", line 21, in run

tts.run(

File "/Users/moodysmacos/pyvideotrans/videotrans/tts/__init__.py", line 122, in run

return _cls(**kwargs).run()  # type:ignore

File "/Users/moodysmacos/pyvideotrans/videotrans/tts/_base.py", line 95, in run

asyncio.run(self._exec())

File "/Users/moodysmacos/.local/share/uv/python/cpython-3.10.19-macos-aarch64-none/lib/python3.10/asyncio/runners.py", line 44, in run

return loop.run_until_complete(main)

File "/Users/moodysmacos/.local/share/uv/python/cpython-3.10.19-macos-aarch64-none/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete

return future.result()

File "/Users/moodysmacos/pyvideotrans/videotrans/tts/_edgetts.py", line 161, in _exec

await communicate.save(mp3_path)

File "/Users/moodysmacos/pyvideotrans/.venv/lib/python3.10/site-packages/edge_tts/communicate.py", line 590, in save

async for message in self.stream():

File "/Users/moodysmacos/pyvideotrans/.venv/lib/python3.10/site-packages/edge_tts/communicate.py", line 572, in stream

DRM.handle_client_response_error(e)

File "/Users/moodysmacos/pyvideotrans/.venv/lib/python3.10/site-packages/edge_tts/drm.py", line 96, in handle_client_response_error

raise SkewAdjustmentError(

edge_tts.exceptions.SkewAdjustmentError: Failed to parse server date: Mon, 19 Oct 2026 18:32:44 GMT


=
system:macOS-15.7.7-arm64-arm-64bit
version:v4.15
frozen:False
language:zh_CN
root_dir:/Users/moodysmacos/pyvideotrans
Python: 3.10.19 (main, Feb 12 2026, 00:36:33) [Clang 21.1.4 ]

1 Replies

#1 DeepSeek reply at 2 hours ago

这是 Edge-TTS 免费接口的 403 验证逻辑变更导致的(并非你的配置问题),微软已更新鉴权机制,旧版 edge-tts 库会被拒绝握手。

解决方案(源码部署,macOS)

  1. 进入项目目录:

    cd /Users/moodysmacos/pyvideotrans
  2. 更新 edge-tts 库至官方修复版本:

    uv add git+https://github.com/rany2/edge-tts.git
  3. 若上一步报错,先移除旧包再重新添加:

    uv remove edge-tts
    uv add git+https://github.com/rany2/edge-tts.git
  4. 重新启动软件(uv run sp.py),再试听/配音。

补充措施(降低触发限流概率)

  • 进入 菜单 → 工具 → 高级选项 → 字幕配音调整:

    • EdgeTTS配音渠道配音并发数 设为 1
    • 配音后暂停秒 设为 5~10
  • 如果你本机开了代理导致连接异常,可在软件根目录新建空文件 edgetts-noproxy.txt 强制 Edge-TTS 绕过代理。
说明:当前版本为 v4.15,Edge-TTS 403 的修复是在 v4.16 完成的。可用上述命令热更新库,也可下载最新补丁包覆盖。

请查阅相关文档:

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