#2827 TaskCfg(cache_folder='D:/win-videotrans-v3.84/tmp/11224/73fc7e188b', target_dir='D:/win-videotrans-v3.84/output/tts', re

183.187* Posted at: 4 days ago 👁29

配音阶段出错 [Edge-TTS(免费)] edge_tts.exceptions.NoAudioReceived: No audio was received. Please verify that your parameters are correct.
Traceback (most recent call last):
File "videotrans\tts\_base.py", line 126, in run
RuntimeError: no running event loop

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\job.py", line 228, in run
File "videotrans\task\_dubbing.py", line 52, in dubbing
File "videotrans\task\_dubbing.py", line 223, in _tts
File "videotrans\tts\__init__.py", line 297, in run
File "videotrans\tts\_base.py", line 194, in run
File "videotrans\tts\_edgetts.py", line 72, in _create_audio_with_retry
File "asyncio\tasks.py", line 445, in wait_for
File "edge_tts\communicate.py", line 590, in save
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='D:/win-videotrans-v3.84/tmp/11224/73fc7e188b', target_dir='D:/win-videotrans-v3.84/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='id', source_sub=None, target_sub='E:/duanjusucai/万贯首富/字幕9/字幕9.srt', source_wav=None, source_wav_output=None, target_wav='D:/win-videotrans-v3.84/output/tts/字幕9.wav', target_wav_output=None, subtitles=None, novoice_mp4=None, noextname='字幕9', 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='Gadis(Female/ID)', copysrt_rawvideo=False, clear_cache=False, translate_type=None, tts_type=0, recogn_type=None, model_name=None, voice_autorate=True, video_autorate=False, cuda=False, name='E:/duanjusucai/万贯首富/字幕9/字幕9.srt', basename='字幕9.srt', ext='srt', dirname='E:/duanjusucai/万贯首富/字幕9', shound_del_name=None, uuid='73fc7e188b', remove_silent_mid=False, align_sub_audio=False, enable_diariz=False, nums_diariz=0, rephrase=2, only_out_mp4=False, fix_punc=False, recogn2pass=False)


=
system:Windows-10-10.0.19045-SP0
version:v3.94
frozen:True
language:zh
root_dir:D:/win-videotrans-v3.84

1 Replies

Edge-TTS 配音出错,核心原因是 NoAudioReceived,即未收到音频数据。这通常由网络问题、请求参数错误或服务器端限制导致。请按以下步骤排查:

  1. 检查网络连接与代理

    • 确保网络通畅,能正常访问微软服务。
    • 如果您使用了代理,请在主界面第5行的“网络代理”处正确填写(如 http://127.0.0.1:7860),并确保代理可用。
  2. 降低并发请求频率(关键步骤)

    • 在菜单栏选择 工具 -> 高级选项
    • 在“配音调整”区域,将“同时配音字幕数”改为 1
    • 将“配音后暂停时间/秒”改为 5 或更高。
    • 这能有效避免因请求过快被服务器限制。
  3. 验证配音参数

    • 从日志看,您选择的配音角色是 Gadis(Female/ID),目标语言为印尼语 (id)。
    • 请确认此角色与目标语言是否匹配,以及该角色在 Edge-TTS 中是否可用。您可以尝试在主界面第4行“配音角色”下拉框中,选择其他印尼语角色(如 Andika(Male/ID))进行试听,以排除角色问题。
  4. 尝试其他配音渠道

    • 如果上述步骤无效,可以暂时切换到其他免费配音渠道,如 VITS-cnenpiper-tts,看是否能正常生成音频。
  5. 提供完整日志

    • 如果问题依旧,请提供 D:/win-videotrans-v3.84/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.

Related resource