#1847 TaskCfg(cache_folder='C:/apk_software/pyvideotrans-v3.86/tmp25828/e0d4302197', target_dir='C:/course_kecheng/Hard_Surfac

129.146* Posted at: 2 hours ago 👁4

配音阶段出错:[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/tmp25828/e0d4302197', target_dir='C:/course_kecheng/Hard_Surface/_video_out/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/Hard_Surface/_video_out/0/en.srt', target_sub='C:/course_kecheng/Hard_Surface/_video_out/0/zh-cn.srt', source_wav='C:/apk_software/pyvideotrans-v3.86/tmp25828/e0d4302197/en.wav', source_wav_output='C:/course_kecheng/Hard_Surface/_video_out/0/en.m4a', target_wav='C:/apk_software/pyvideotrans-v3.86/tmp25828/e0d4302197/target.wav', target_wav_output='C:/course_kecheng/Hard_Surface/_video_out/0/zh-cn.m4a', subtitles='', novoice_mp4='C:/apk_software/pyvideotrans-v3.86/tmp25828/e0d4302197/novoice.mp4', noextname='0', shibie_audio=None, targetdir_mp4='C:/course_kecheng/Hard_Surface/_video_out/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='e0d4302197', 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 服务。可以尝试在浏览器中访问 https://speech.platform.bing.com/ 测试连通性。
  2. 降低并发请求

    • 在软件主界面,点击菜单栏的 工具/选项 -> 高级选项
    • 在“配音调整”区域,将“同时配音字幕数”改为 1
    • 将“配音后暂停时间/秒”改为 5
  3. 检查配音角色和语言

    • 确认你选择的配音角色(晓悠)支持你设置的目标语言(简体中文)。
    • 在配音阶段弹出的“配音角色/字幕编辑”窗口中,可以尝试切换到其他 Edge-TTS 角色(如“晓晓”)进行测试。
  4. 使用代理:如果你的网络环境需要代理才能访问外部服务,请在主界面第5行的“网络代理”处填写正确的代理地址(格式如 http://127.0.0.1:7860)。
  5. 重启软件重试:关闭软件,重新启动,然后单独处理这个视频,并确保勾选了“清理已生成”。

如果以上步骤均无效,请提供 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

Trending Questions