#8264 配音全部失败 :Failed to parse server date: Sun, 18 Oct 2026 19:53:21 GMTall_voices={'ru-RU-DmitryNeural'}

203.175**4 Posted at: 2 hours ago

配音全部失败 :Failed to parse server date: Sun, 18 Oct 2026 19:53:21 GMT
all_voices={'ru-RU-DmitryNeural'}
Traceback (most recent call last):
File "/Users/moodysmacos/pyvideotrans/videotrans/task/only_one.py", line 108, in run

trk.dubbing()

File "/Users/moodysmacos/pyvideotrans/videotrans/task/_stage_dubbing.py", line 24, in dubbing

self._tts()

File "/Users/moodysmacos/pyvideotrans/videotrans/task/_stage_dubbing.py", line 101, in _tts

run_tts(

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/as
......
=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: /Users/moodysmacos/Downloads/3.mp4,
输出结果保存到文件夹: /Users/moodysmacos/Downloads/_video_out/3-mp4,
临时文件夹: /Users/moodysmacos/pyvideotrans/tmp/87824/f752262ffc
已选 清理已存在
未启用CUDA加速
已选 降噪
已选 识别说话人,最大说话人数量4
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 简体中文,
翻译渠道:DeepSeek,原始语言:简体中文,目标语言:俄语, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Dmitry(Male/RU), 配音语言:俄语, 已选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 已选 视频慢速
已选 移除每条字幕配音开头和结尾静音缓冲
静音移除力度: default
字幕: 嵌入硬字幕
已选 分离人声与背景声, 已选 重新嵌入背景声, 背景音量0.3, 背景声音时长 短于 视频时长时: 拉长(降速播放),存在分离后的纯净人声文件,存在分离后的背景声音文件, precent=18, hasend=False, should_recogn=True, should_trans=True, should_dubbing=True, should_hebing=True, video_time=210217, video_info={'video_fps': 29.97002997002997, 'r_frame_rate': 29.97002997002997, 'video_codec_name': 'h264', 'audio_codec_name': 'aac', 'width': 1280, 'height': 720, 'time': 210217, 'streams_len': 3, 'streams_audio': 1, 'video_streams': 1, 'color': 'yuv420p'}, is_copy_video=True, video_codec_num=264, ignore_align=False, is_audio_trans=False, clone_ref='/Users/moodysmacos/pyvideotrans/tmp/87824/f752262ffc/vocal.wav', cost_duration=1792351751.3358111, should_recogn2=True, do_diarize=True
trk.cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: /Users/moodysmacos/Downloads/3.mp4,
输出结果保存到文件夹: /Users/moodysmacos/Downloads/_video_out/3-mp4,
临时文件夹: /Users/moodysmacos/pyvideotrans/tmp/87824/f752262ffc
已选 清理已存在
未启用CUDA加速
已选 降噪
已选 识别说话人,最大说话人数量4
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 简体中文,
翻译渠道:DeepSeek,原始语言:简体中文,目标语言:俄语, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Dmitry(Male/RU), 配音语言:俄语, 已选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 已选 视频慢速
已选 移除每条字幕配音开头和结尾静音缓冲
静音移除力度: default
字幕: 嵌入硬字幕
已选 分离人声与背景声, 已选 重新嵌入背景声, 背景音量0.3, 背景声音时长 短于 视频时长时: 拉长(降速播放),存在分离后的纯净人声文件,存在分离后的背景声音文件
video_duration_ms=210217


=
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 库版本过旧,无法解析微软服务器返回的日期格式(RFC 7231 中的 GMT 格式)导致配音请求全部失败,与网络或角色选择无关。

解决方案(macOS 源码部署)

  1. 打开终端,进入软件代码目录:

    cd /Users/moodysmacos/pyvideotrans
  2. 卸载旧版 edge-tts 并重新从 GitHub 安装最新版(这也是 v4.16 的修复方案):

    uv remove edge-tts
    uv add git+https://github.com/rany2/edge-tts.git
    执行 uv add 时需确保能连通 github.com。若第二条命令失败,请先确认网络/代理可用,再重试。
  3. 确认安装成功后,执行 uv run sp.py 重新启动软件。
  4. 降低请求频率以规避限流(可选但建议):
    菜单 → 工具 → 高级选项 → 字幕配音调整,将 EdgeTTS配音渠道配音并发数 设为 1,配音后暂停秒 设为 5~10。
  5. 若升级后仍报错,可尝试在软件根目录 pyvideotrans 下新建空文件 edgetts-noproxy.txt,强制 Edge-TTS 绕过代理后重试。
  6. 兜底方案:切换到其他配音渠道,例如 gTTS(免费),或本地内置渠道:OmniVoice-TTS、Qwen3-TTS;其中 Qwen3-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