#2055 TaskCfg(cache_folder='D:/win-pyvideotrans-v3.85/tmp12892/3238227d6f', target_dir='d:/win-pyvideotrans-v3.85/output/tts',

113.82* Posted at: 3 hours ago 👁7

配音阶段出错:[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='D:/win-pyvideotrans-v3.85/tmp12892/3238227d6f', target_dir='d:/win-pyvideotrans-v3.85/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='en', source_sub=None, target_sub='C:/Users/11111/Desktop/1.txt', source_wav=None, source_wav_output=None, target_wav='d:/win-pyvideotrans-v3.85/output/tts/1.mp3', target_wav_output=None, subtitles=None, novoice_mp4=None, noextname='1', 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='Annette(Female/AU)', 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='C:/Users/11111/Desktop/1.txt', basename='1.txt', ext='txt', dirname='C:/Users/11111/Desktop', shound_del_name=None, uuid='3238227d6f', remove_silent_mid=False, align_sub_audio=False, enable_diariz=False, nums_diariz=0)


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

1 Replies

此错误表明 Edge-TTS 服务器未返回音频数据。这通常是由于请求参数(如语言或角色)不正确,或服务器临时性问题导致。

请按以下步骤排查:

  1. 检查配音角色和语言

    • 错误日志显示 target_language_code='en',但配音角色是 Annette(Female/AU)
    • 关键点Annette澳大利亚英语角色,其语言代码应为 en-AU,而非通用的 en
    • 解决方法:在配音设置中,请确保为目标语言(英语)选择正确的区域变体角色,例如 en-USen-GB 开头的角色。如果必须使用 Annette,请尝试在“翻译设置”中将目标语言明确选择为“英语(澳大利亚)”。
  2. 降低请求频率

    • 进入 菜单 -> 工具 -> 高级选项
    • 在“配音调整”区域,将“同时配音字幕数”设置为 1,并将“配音后暂停时间/秒”设置为 3 或更高。
  3. 更换配音角色或渠道

    • 暂时换用其他英语角色(如 en-US-JennyNeural)进行测试。
    • 如果问题持续,可考虑暂时使用其他免费 TTS 渠道,如 VITS-cnenpiper-tts
  4. 检查网络连接

    • 确保你的网络可以正常访问微软的 Edge-TTS 服务。如果你使用了代理,请在主界面第5行的“网络代理”中正确填写。

如果以上步骤均无效,请提供你正在处理的字幕文件(C:/Users/11111/Desktop/1.txt)的前几行内容,以便进一步分析文本是否包含特殊字符导致问题。

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