#2822 TaskCfg(cache_folder='D:/配音/tmp/17320/fffe4de8bc', target_dir='D:/配音/output/tts', remove_noise=False, is_separate=False,

64.32* Posted at: 4 days ago 👁22

配音阶段出错:[Edge-TTS(免费)] 操作失败,请稍后重试('No audio was received. Please verify that your parameters are correct.',):
Traceback (most recent call last):
File "videotrans\task\job.py", line 224, in run
File "videotrans\task\_dubbing.py", line 48, in dubbing
File "videotrans\task\_dubbing.py", line 140, in _tts
File "asyncio\runners.py", line 44, in run
File "asyncio\base_events.py", line 646, in run_until_complete
File "videotrans\task\_base.py", line 199, in _edgetts_single
File "videotrans\task\_base.py", line 185, in _edgetts_single
File "edge_tts\communicate.py", line 571, in stream
File "edge_tts\communicate.py", line 546, in __stream
edge_tts.exceptions.NoAudioReceived: No audio was received. Please verify that your parameters are correct.

TaskCfg(cache_folder='D:/配音/tmp/17320/fffe4de8bc', target_dir='D:/配音/output/tts', remove_noise=False, is_separate=False, detect_language=None, subtitle_language=None, source_language=None, target_language=None, source_language_code=None, target_language_code='th', source_sub=None, target_sub='D:/配音/tmp/17320/20260123-092615.txt', source_wav=None, source_wav_output=None, target_wav='D:/配音/output/tts/20260123-092615.wav', target_wav_output=None, subtitles=None, novoice_mp4=None, noextname='20260123-092615', shibie_audio=None, targetdir_mp4=None, instrument=None, vocal=None, back_audio=None, background_music=None, app_mode='biaozhun', subtitle_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='Premwadee(Female/TH)', copysrt_rawvideo=False, clear_cache=False, translate_type=None, tts_type=0, recogn_type=None, model_name=None, split_type=0, voice_autorate=False, video_autorate=False, cuda=False, name='D:/配音/tmp/17320/20260123-092615.txt', basename='20260123-092615.txt', ext='txt', dirname='D:/配音/tmp/17320', shound_del_name=None, uuid='fffe4de8bc', remove_silent_mid=False, align_sub_audio=False, enable_diariz=False, nums_diariz=0, rephrase=2, only_out_mp4=False)


=
system:Windows-10-10.0.19045-SP0
version:v3.90
frozen:True
language:zh
root_dir:D:/配音

1 Replies

此错误是 Edge-TTS 服务未返回音频数据。通常由网络问题、请求频率过高或目标语言/角色参数不匹配导致。请按以下步骤排查:

  1. 检查网络与代理:确保网络连接正常。如果使用了代理,请在主界面第5行“网络代理”处正确填写代理地址(如 http://127.0.0.1:7890),并确保代理可用。
  2. 降低请求频率

    • 进入菜单 工具/选项 -> 高级选项
    • 在“配音调整”区域,将“同时配音字幕数”改为 1
    • 将“配音后暂停时间/秒”适当增加(例如设为 35)。
  3. 验证语言与角色:从日志 target_language_code='th'voice_role='Premwadee(Female/TH)' 看,您正在尝试合成泰语。请确认:

    • 在配音设置中,目标语言已正确选择为“泰语”。
    • Edge-TTS 的 Premwadee 角色确实支持泰语。您可以尝试切换到其他泰语角色(如 Pattara)进行测试。
  4. 简化测试:尝试用极短的文本(如“你好”)和默认的英语角色进行配音,以排除文本或角色特定问题。
  5. 检查输入文件:确认您的输入文件 D:/配音/tmp/17320/20260123-092615.txt 是纯文本格式,且编码正确(建议使用 UTF-8)。

如果以上步骤均无效,可能是微软 Edge-TTS 服务端临时问题,请稍后再试。

请查看更多参考文档:

Post Your Reply
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.

Related resource