#1858 操作失败,请稍后重试('No audio was received. Please verify that your parameters are correct.',):Traceback (most recent call last):

158.94* Posted at: 4 hours ago 👁13

操作失败,请稍后重试('No audio was received. Please verify that your parameters are correct.',):
Traceback (most recent call last):
File "videotrans\tts\_base.py", line 128, in run
RuntimeError: no running event loop

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 18, in run
File "videotrans\tts\__init__.py", line 246, in run
File "videotrans\tts\_base.py", line 182, in run
File "videotrans\tts\_edgetts.py", line 70, 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.

1 Replies

这是使用 Edge-TTS 进行配音时遇到的常见网络或参数错误。核心原因是 Edge-TTS 服务器未返回音频数据。请按以下步骤排查:

  1. 检查配音参数:确认在“配音”设置中选择的角色(语音)和目标语言是匹配且有效的。例如,选择了中文角色但目标语言是英文可能导致此错误。
  2. 降低并发请求:在菜单栏选择 工具 -> 高级选项,在“配音调整”区域,将“同时配音字幕数”改为 1,并将“配音后暂停时间/秒”适当增加(如 3)。
  3. 检查网络连接:确保你的网络可以正常访问微软的 Edge-TTS 服务。如果使用代理,请在主界面第5行的“网络代理”处正确填写。
  4. 分段重试:如果处理长视频,可以尝试在工具箱中使用“批量为字幕配音”功能,对部分字幕进行测试。
  5. 更换配音渠道:作为临时解决方案,可以尝试更换为其他配音渠道,如“Azure TTS”或本地 TTS 模型。

如果以上步骤均无效,请提供更完整的日志文件(位于软件目录下的 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