#7531 配音全部失败 :No audio was received. Please verify that your parameters are correct.all_voices={'en-HK-YanNeural'}

2600**2b24 Posted at: 1 hour ago

配音全部失败 :No audio was received. Please verify that your parameters are correct.
all_voices={'en-HK-YanNeural'}
Traceback (most recent call last):
File "videotrans\task\only_one.py", line 107, in run
File "videotrans\task\_stage_dubbing.py", line 24, in dubbing
File "videotrans\task\_stage_dubbing.py", line 101, in _tts
File "videotrans\tts\__init__.py", line 118, in run
File "videotrans\tts\_base.py", line 92, 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 228, in _exec
videotrans.configure.excepts.DubbingSrtError: 配音全部失败 :No audio was received. Please verify that your parameters are correct.
all_voices={'en-HK-YanNeural'}

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: D:/blue/桌面/第三批/去字幕/3.mp4,
输出结果保存到文件夹: D:/blue/桌面/第三批/去字幕/_video_out/3-mp4,
临时文件夹: D:/blue/桌面/win-pyvideotrans-v4.13/tmp/32464/576ac94989
已选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 简体中文, 断句方式:默认断句
翻译渠道:Google(免费),原始语言:简体中文,目标语言:英语, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Yan(Female/HK), 配音语言:英语, 未选 二次语音识别
音量:+0%, 语速:+0%, 未选 音频加速, 已选 视频慢速
字幕: 不嵌入字幕
代理地址:http://127.0.0.1:7890
video_duration_ms=42252


=
system:Windows-10-10.0.22631-SP0
version:v4.13
frozen:True
language:zh_CN
root_dir:D:/blue/桌面/win-pyvideotrans-v4.13

1 Replies

#1 DeepSeek reply at 1 hour ago

核心原因:Edge-TTS 返回空音频,且使用音色 en-HK-YanNeural(Yan 属于粤语/香港音色),与目标语言「英语」不匹配,导致微软接口不返回该语言音频。

解决方案:

  1. 将配音角色更换为英语音色,例如 en-US-GuyNeural(男)或 en-US-JennyNeural(女),不要使用 Yan
  2. 若仍报错,检查代理:当前填写了 http://127.0.0.1:7890,Edge-TTS 可能因代理连接失败导致无音频。可在软件根目录创建空文件 edgetts-noproxy.txt 强制绕过代理,或清空代理重试。
  3. 若依旧失败,进入 菜单 → 工具/选项 → 高级选项 → 字幕配音调整,将 EdgeTTS配音渠道配音并发数 设为 1,配音后暂停秒 设为 5-10,降低请求频率避免被限流。
  4. 重试时勾选 清理已生成

补充:你未勾选「音频加速」但勾选了「视频慢速」,配音全部失败与对齐设置无关,按上述更换音色即可。

请查阅相关文档:

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