#1853 配音阶段出错:[Edge-TTS(免费)] 操作失败,请稍后重试('No audio was received. Please verify that your parameters are correct.',):

171.93* Posted at: 1 hour ago 👁4

配音阶段出错:[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 47, in dubbing
File "videotrans\task\_dubbing.py", line 136, 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 566, in stream
File "edge_tts\communicate.py", line 541, in __stream
edge_tts.exceptions.NoAudioReceived: No audio was received. Please verify that your parameters are correct.

TaskCfg(cache_folder='G:/pyvideo/tmp20920/39c6d76ed3', target_dir='G:/pyvideo/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='ru', source_sub=None, target_sub='G:/pyvideo/tmp20920/peiyin1765213276.4737778.txt', source_wav=None, source_wav_output=None, target_wav='G:/pyvideo/output/tts/peiyin1765213276.4737778.wav', target_wav_output=None, subtitles=None, novoice_mp4=None, noextname='peiyin1765213276.4737778', 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='Светлана(Female/RU)', 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='G:/pyvideo/tmp20920/peiyin1765213276.4737778.txt', basename='peiyin1765213276.4737778.txt', ext='txt', dirname='G:/pyvideo/tmp20920', shound_del_name=None, uuid='39c6d76ed3', remove_silent_mid=False, align_sub_audio=False, enable_diariz=False, nums_diariz=0, auto_fix=True)


=
system:Windows-10-10.0.26100-SP0
version:v3.86
frozen:True
language:zh
root_dir:G:/pyvideo

1 Replies

该错误表明 Edge-TTS 服务器未返回音频数据。这通常是由于请求参数(特别是目标语言和配音角色)不匹配,或服务器临时性问题导致。请按以下步骤排查:

  1. 检查语言与角色匹配:您的目标语言是 ru(俄语),配音角色是 Светлана(Female/RU)。请确认此角色确实是俄语角色。如果角色语言与目标语言不匹配,会导致请求失败。
  2. 降低请求频率

    • 进入菜单栏 工具/选项 -> 高级选项
    • 在“配音调整”区域,将“同时配音字幕数”改为 1,并将“配音后暂停时间/秒”改为 3-5 秒。
  3. 更换配音角色:尝试在配音设置中选择另一个俄语角色(如 ru-RU-SvetlanaNeural),或更换为其他免费渠道(如 Microsoft Azure TTS 的免费额度)进行测试。
  4. 检查网络连接:确保网络可以正常访问微软的 TTS 服务。如果使用了代理,请在主界面第5行的“网络代理”中正确填写。
  5. 重试与分段处理:如果问题仅出现在某个特定视频或某段字幕上,可以尝试:

    • 在工具箱中使用“批量为字幕配音”功能,单独处理出错的字幕文件。
    • 如果字幕文件过长,尝试将其拆分为多个小文件后分批处理。

如果以上步骤均无效,请提供 G:/pyvideo/logs/ 目录下最新的日志文件以便进一步分析。

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.

Donate: https://ko-fi.com/jianchang512

Similar issues already exist

Trending Questions