#1902 语音配音总是提示这样的错误,关键我成功过,不知道改了哪个参数就这样了

2409:8918* Posted at: 4 hours ago 👁6

操作失败,请稍后重试('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\util\ListenVoice.py", line 18, in run
File "videotrans\tts\__init__.py", line 279, in run
File "videotrans\tts\_base.py", line 177, 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.

1 Replies

这个错误 edge_tts.exceptions.NoAudioReceived: No audio was received 通常是由于 Edge-TTS 服务端未返回音频数据,可能由网络问题、请求参数(如配音角色)无效或服务端临时限制引起。请按以下步骤排查:

  1. 检查配音角色:确认你选择的配音角色(如 zh-CN-XiaoxiaoNeural)是否仍然有效。Edge-TTS 的角色列表有时会变动。尝试切换到另一个角色(例如 zh-CN-XiaoyiNeural)再试。
  2. 检查网络与代理:如果你使用了网络代理,请确保代理设置正确且稳定。可以尝试暂时关闭代理,或更换一个代理节点。
  3. 降低并发请求:在菜单栏选择 工具/选项 -> 高级选项,在“配音调整”区域,将“同时配音字幕数”改为 1,并将“配音后暂停时间/秒”改为 3 或更高,以降低请求频率。
  4. 清理缓存并重试:在主界面,确保勾选了“清理已生成”,然后重新处理视频。
  5. 测试其他配音渠道:如果以上步骤无效,可以暂时切换到其他配音渠道(如 Azure TTS 或 OpenAI TTS)来确认是否是 Edge-TTS 服务端的问题。

如果问题依旧,请提供完整的日志文件(位于软件目录下的 videotrans/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