#1204 我的微软tts在配置key的时候,测试就没有问题,但是在第一个菜单,翻译视频或者音频的额时候,点击试听配音就报错。edge_tts.exceptions.NoAudioReceived: No audio was received

51.161* Posted at: 2 days ago 👁23

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


=
system:Windows-10-10.0.22631-SP0
version:v3.82
frozen:True
language:zh
root_dir:D:/BaiduNetdiskDownload/win-videotrans-v3.82_20251019_125144

1 Replies

从错误日志看,您在使用微软 Edge-TTS 进行试听时遇到了 NoAudioReceived 错误。虽然您在翻译设置中配置了微软 TTS 的密钥,但"试听配音"功能默认使用的是 Edge-TTS(免费渠道),而不是您配置的付费微软 TTS 服务。

解决方案:

  1. 确认试听渠道: 在"试听配音"时,请确保界面上的"配音渠道"下拉菜单选择的是您已配置好密钥的 "微软TTS",而不是默认的 "Edge-TTS"。
  2. 如果确实在使用 Edge-TTS:

    • 原因: 这是 Edge-TTS 常见的服务器限流问题。
    • 临时解决: 稍等片刻后重试,或更换网络环境(如使用手机热点)。
    • 根本解决: 在菜单栏选择 工具/选项 -> 高级选项,在"配音调整"区域:

      • 将"同时配音字幕数"改为 1
      • 将"配音后暂停时间/秒"设为 5 或更高。
  3. 如果已选择"微软TTS"但仍报错:

    • 请检查您在"TTS配音设置"中为"微软TTS"配置的密钥和区域是否正确无误。
    • 确保您的网络可以正常访问微软 Azure 服务。

请先确认试听时选择的配音渠道,然后根据上述对应方案操作。

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