#1938 TaskCfg(cache_folder='C:/apk_software/pyvideotrans-v3.86/tmp2800/9163e209bd', target_dir='C:/course_kecheng/2/0', remove

129.146* Posted at: 20 days ago 👁45

配音阶段出错:[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\trans_create.py", line 463, in dubbing
File "videotrans\task\trans_create.py", line 743, 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='C:/apk_software/pyvideotrans-v3.86/tmp2800/9163e209bd', target_dir='C:/course_kecheng/2/0', remove_noise=False, is_separate=False, detect_language='en', subtitle_language=None, source_language='英语', target_language='简体中文', source_language_code='en', target_language_code='zh-cn', source_sub='C:/course_kecheng/2/0/en.srt', target_sub='C:/course_kecheng/2/0/zh-cn.srt', source_wav='C:/apk_software/pyvideotrans-v3.86/tmp2800/9163e209bd/en.wav', source_wav_output='C:/course_kecheng/2/0/en.m4a', target_wav='C:/apk_software/pyvideotrans-v3.86/tmp2800/9163e209bd/target.wav', target_wav_output='C:/course_kecheng/2/0/zh-cn.m4a', subtitles='', novoice_mp4='C:/apk_software/pyvideotrans-v3.86/tmp2800/9163e209bd/novoice.mp4', noextname='0', shibie_audio=None, targetdir_mp4='C:/course_kecheng/2/0/0.mp4', instrument=None, vocal=None, back_audio='', background_music=None, app_mode='biaozhun', subtitle_type=3, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='晓悠(Female/CN)', copysrt_rawvideo=False, clear_cache=True, translate_type=1, tts_type=0, recogn_type=0, model_name='large-v3', split_type=0, voice_autorate=True, video_autorate=False, cuda=True, name='C:/course_kecheng/Hard_Surface/1/0.mp4', basename='0.mp4', ext='mp4', dirname='C:/course_kecheng/Hard_Surface/1', shound_del_name=None, uuid='9163e209bd', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, auto_fix=True)


=
system:Windows-10-10.0.26200-SP0
version:v3.86
frozen:True
language:zh
root_dir:C:/apk_software/pyvideotrans-v3.86

1 Replies

Edge-TTS 配音失败,核心错误是 No audio was received。这通常是由于网络连接问题、服务器暂时不可用或请求参数有误导致。请按以下步骤排查:

  1. 检查网络与代理

    • 确保你的网络可以正常访问微软 Edge TTS 服务。
    • 如果你使用了代理,请在主界面第5行的“网络代理”处正确填写(如 http://127.0.0.1:7860)。如果未使用代理,请留空。
  2. 降低并发请求

    • 在菜单栏选择 工具 -> 高级选项
    • 在“配音调整”区域,将“同时配音字幕数”改为 1
    • 将“配音后暂停时间/秒”适当增加(例如设为 35)。
  3. 验证配音角色与语言

    • 从日志看,你选择的配音角色是 晓悠(Female/CN),目标语言是 简体中文 (zh-cn)。请确认这个角色支持中文配音。你可以在配音设置界面选中该角色并点击“试听”来测试。
  4. 尝试更换配音渠道

    • 如果上述步骤无效,可以暂时切换到其他免费的 TTS 渠道(如“微软TTS-免费”,如果可用)进行测试,以排除是否是 Edge-TTS 服务本身的问题。
  5. 检查字幕内容

    • 打开生成的目标字幕文件 C:/course_kecheng/2/0/zh-cn.srt,检查其中是否有异常字符或过长、空白的句子,这有时会导致 TTS 引擎出错。

如果问题依旧,请提供 C:/apk_software/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

Similar issues already exist

Trending Questions