#1886 TaskCfg(cache_folder='D:/win-pyvideotrans-v3.86/tmp19852/8ad3d13483', target_dir='D:/win-pyvideotrans-v3.86/output/tts',

103.151* Posted at: 18 hours ago 👁12

配音阶段出错:[Edge-TTS(免费)] 操作失败,请稍后重试('No audio was received. Please verify that your parameters are correct.',):
Traceback (most recent call last):
File "videotrans\tts\_base.py", line 123, 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 224, in run
File "videotrans\task\_dubbing.py", line 47, in dubbing
File "videotrans\task\_dubbing.py", line 197, in _tts
File "videotrans\tts\__init__.py", line 279, in run
File "videotrans\tts\_base.py", line 188, 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-pyvideotrans-v3.86/tmp19852/8ad3d13483', target_dir='D:/win-pyvideotrans-v3.86/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='es', source_sub=None, target_sub='C:/Users/Administrator/Desktop/字幕/1209.srt', source_wav=None, source_wav_output=None, target_wav='D:/win-pyvideotrans-v3.86/output/tts/1209.mp3', target_wav_output=None, subtitles=None, novoice_mp4=None, noextname='1209', shibie_audio=None, targetdir_mp4=None, instrument=None, vocal=None, back_audio=None, background_music=None, app_mode='biaozhun', subtitle_type=0, volume='+10%', pitch='+0Hz', voice_rate='+30%', voice_role='Alonso(Male/US)', copysrt_rawvideo=False, clear_cache=False, translate_type=None, tts_type=0, recogn_type=None, model_name=None, split_type=0, voice_autorate=True, video_autorate=False, cuda=False, name='C:/Users/Administrator/Desktop/字幕/1209.srt', basename='1209.srt', ext='srt', dirname='C:/Users/Administrator/Desktop/字幕', shound_del_name=None, uuid='8ad3d13483', remove_silent_mid=False, align_sub_audio=False, enable_diariz=False, nums_diariz=0, auto_fix=True)


=
system:Windows-10-10.0.22631-SP0
version:v3.86
frozen:True
language:zh
root_dir:D:/win-pyvideotrans-v3.86

1 Replies

此错误表明 Edge-TTS 服务未返回音频数据。根据错误日志,您正在使用“批量为字幕配音”功能,且目标语言为西班牙语 (es),配音角色为 Alonso(Male/US)

核心原因与解决方案:

  1. 角色与语言不匹配(最可能):您选择的配音角色 Alonso(Male/US)美式英语角色,但您设置的目标语言是西班牙语 (es)。Edge-TTS 的每个角色仅支持其对应的语言,跨语言使用会导致无音频返回。
  2. 网络连接问题:与 Edge-TTS 服务器的连接不稳定或被阻断。

请按以下步骤操作:

步骤一:检查并修正配音设置

  • 在“批量为字幕配音”界面,确认 “目标语言” 已正确设置为 西班牙语 (es)
  • “配音角色” 下拉列表中,必须选择语言标签为 西班牙语 (es) 的角色(例如 Alvaro(es-ES) 等)。不要选择英语 (en-) 或其他语言的角色

步骤二:调整高级设置(如果问题依旧)

  1. 在软件主界面,点击菜单栏 工具 -> 高级选项
  2. 找到 “配音调整” 区域,进行以下设置:

    • 同时配音字幕数:改为 1(降低并发,避免请求过快)。
    • 配音后暂停时间/秒:改为 35(给服务器喘息时间)。
    • EdgeTTS失败重试次数:可适当增加(如 5)。

步骤三:检查网络与代理

  • 如果您使用了网络代理,请确保代理设置正确且工作正常。可以尝试暂时关闭代理再试。
  • 尝试在“网络代理”栏填写一个可用的代理地址(格式如 http://127.0.0.1:7890)。

步骤四:简化测试
如果以上步骤均无效,请尝试:

  1. 使用一个非常简短的 SRT 文件(只有一两行字幕)进行测试。
  2. 将目标语言改为 英语 (en),并选择一个英语角色(如 en-US-GuyNeural)进行测试,以排除文件本身的问题。

如果问题仍然存在,请提供执行上述步骤后的新日志文件(位于 D:/win-pyvideotrans-v3.86/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

Trending Questions