#1861 RuntimeError: No audio was received. Please verify that your parameters are correct.

198.98* Posted at: 3 hours ago 👁10

运行时错误:No audio was received. Please verify that your parameters are correct.:
Traceback (most recent call last):
File "/Volumes/Eric-ios/Applications/pyvideotrans/videotrans/util/ListenVoice.py", line 18, in run

tts.run(

File "/Volumes/Eric-ios/Applications/pyvideotrans/videotrans/tts/__init__.py", line 279, in run

else:

File "/Volumes/Eric-ios/Applications/pyvideotrans/videotrans/tts/_base.py", line 177, in run

raise self.error if isinstance(self.error,Exception)  else RuntimeError(str(self.error))

RuntimeError: No audio was received. Please verify that your parameters are correct.


=
system:macOS-15.7.2-arm64-arm-64bit
version:v3.86
frozen:False
language:zh
root_dir:/Volumes/Eric-ios/Applications/pyvideotrans
Python: 3.10.17 (main, Apr 9 2025, 03:47:39) [Clang 20.1.0 ]

1 Replies

此错误表明配音(TTS)环节未收到音频数据。根据您的系统信息(macOS),问题很可能与 Edge-TTS 的网络请求或音频编码有关。请按以下步骤排查:

  1. 切换配音角色:在配音设置中,尝试更换一个不同的 Edge-TTS 角色(例如,从 zh-CN-XiaoxiaoNeural 换成 zh-CN-YunxiNeural),然后重新执行。
  2. 检查网络连接:Edge-TTS 需要访问微软的在线服务。请确保您的网络连接正常,如果使用代理,请在主界面第5行的“网络代理”处正确填写。
  3. 降低并发请求:在菜单栏选择 工具/选项 -> 高级选项,在“配音调整”区域,将“同时配音字幕数”改为 1,并将“EdgeTTS失败重试次数”适当增加(如改为 3)。
  4. 检查音频输出设备:确保您的 macOS 系统音频输出设备工作正常,且未被静音。
  5. 尝试其他配音渠道:作为临时解决方案,您可以尝试使用其他免费的 TTS 渠道,例如“微软TTS(Azure)”或“OpenAI TTS”,以确认问题是否特定于 Edge-TTS。

如果以上步骤均无效,请提供更完整的操作日志(位于 pyvideotrans/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