#2821 TaskCfg(cache_folder='D:/软件/配音/tmp/15952/64e7b69ee6', target_dir='D:/软件/配音/output/tts', remove_noise=False, is_separate=

183.187* Posted at: 4 days ago 👁23

配音阶段出错:[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/15952/64e7b69ee6', 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='en', source_sub=None, target_sub='D:/软件/配音/tmp/15952/20260123-092600.txt', source_wav=None, source_wav_output=None, target_wav='D:/软件/配音/output/tts/20260123-092600.wav', target_wav_output=None, subtitles=None, novoice_mp4=None, noextname='20260123-092600', 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='James(Male/PH)', 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='D:/软件/配音/tmp/15952/20260123-092600.txt', basename='20260123-092600.txt', ext='txt', dirname='D:/软件/配音/tmp/15952', shound_del_name=None, uuid='64e7b69ee6', 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. 检查网络连接:确保你的网络可以正常访问微软的 Edge-TTS 服务。可以尝试在浏览器中访问 https://speech.platform.bing.com/ 测试连通性。
  2. 降低请求频率

    • 在软件主界面菜单栏选择 工具 -> 选项 -> 高级选项
    • 在“配音调整”区域,将“同时配音字幕数”改为 1
    • 将“配音后暂停时间/秒”改为 3 或更高。
  3. 更换配音角色:你当前使用的角色 James(Male/PH) 可能在某些区域不可用。请尝试更换为其他角色,例如 zh-CN-XiaoxiaoNeural(中文)或 en-US-AriaNeural(英文)。
  4. 检查字幕文件:确认你的字幕文件 D:/软件/配音/tmp/15952/20260123-092600.txt 内容格式正确,没有空行或特殊字符。
  5. 使用代理(如适用):如果你所在地区访问微软服务受限,可以在主界面第5行的“网络代理”处设置代理(例如 http://127.0.0.1:10809)。

如果以上步骤均无效,请提供 D:/软件/配音/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