#1085 edge_tts.exceptions.NoAudioReceived: No audio was received. Please verify that your parameters are correct.

35.212* Posted at: 2 days ago 👁38

操作失败,请稍后重试:
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 248, 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.


=
Windows-10-10.0.19045-SP0
version:v3.81
frozen:True
language:zh

1 Replies

这个错误是由于 Edge-TTS 在异步环境中运行时事件循环问题导致的。请按以下步骤解决:

  1. 重启软件:完全关闭 pyVideoTrans 并重新启动。
  2. 如果问题依旧,修改配音参数

    • 在菜单栏选择 工具/选项 -> 高级选项
    • 在"配音调整"区域,将"同时配音字幕数"改为 1
    • 将"配音后暂停时间/秒"改为 3-5
  3. 检查网络连接:确保网络稳定,Edge-TTS 需要访问微软服务器。
  4. 尝试其他配音渠道:如果上述方法无效,可以暂时切换到其他 TTS 服务,如 OpenAI TTS 或 Azure TTS。

这个错误通常是由于异步事件循环在特定环境下初始化异常导致的,重启软件和调整配音参数通常可以解决。

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