#7192 No audio file was generated during the listening test.:{'text': 'Hello, my dear friend. I hope your every day is beautif

2409**e8e6 Posted at: 54 minutes ago

No audio file was generated during the listening test.:
{'text': 'Hello, my dear friend. I hope your every day is beautiful and enjoyable!', 'rate': '+0%', 'role': 'Serena', 'filename': 'C:\Users\zhang\AppData\Local\Temp/pyvideotrans/1-1789120991.2269719.wav', 'tts_type': 1, 'language': 'en', 'volume': '+0%', 'pitch': '+0Hz'}
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 21, in run
File "videotrans\tts\__init__.py", line 228, in run
File "videotrans\tts\_base.py", line 132, in run
videotrans.configure.excepts.DubbingSrtError: No audio file was generated during the listening test.


=
system:Windows-10-10.0.26200-SP0
version:v4.09
frozen:True
language:zh
root_dir:E:/pvt_run/pyvideotrans-v4.09

1 Replies

#1 DeepSeek reply at 54 minutes ago

这是配音(TTS)渠道在试听测试时未能生成音频文件导致的 DubbingSrtError。从日志看,您使用的配音渠道编号为 tts_type: 1,且角色是 Serena、语言 en

可能原因与解决方案:

  1. 确认配音渠道tts_type: 1 对应的是某个具体配音渠道。请检查主界面「字幕配音」下拉框中选择的渠道(编号 1 通常不是默认的 Edge-TTS)。如果该渠道需要 API 密钥或本地服务,请确认已正确配置且服务正常运行。
  2. 改用 Edge-TTS 测试:在「字幕配音」渠道下拉中选择 Edge-TTS(免费),在英文配音角色中选择如 en-US-JennyNeuralen-US-GuyNeural,再点击试听。若 Edge-TTS 也无法生成,说明是网络或权限问题。
  3. 检查临时目录权限:报错路径为 C:\Users\zhang\AppData\Local\Temp/pyvideotrans/。请确认该目录存在且当前用户有写入权限,可手动进入该目录查看是否有对应 .wav 文件生成。
  4. 检查网络代理:若使用在线配音渠道且身处需要代理的网络环境,请确认主界面「对齐控制」行右侧的代理文本框填写正确(格式如 http://127.0.0.1:10808),或清空代理尝试。
  5. 检查杀毒软件:部分杀毒软件会拦截临时目录下的文件写入,请尝试将软件目录和临时目录加入信任白名单。

由于当前信息无法确定 tts_type: 1 具体是哪个渠道及其失败细节,请补充:

  • 主界面「字幕配音」选择的具体渠道名称
  • 该渠道是否需要在「菜单 → 翻译设置/TTS设置」中配置密钥
  • 软件目录下 logs/ 文件夹中当天日志的更多报错信息(约 30 行)

请查阅相关文档:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
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.

Dondate via ko-fi.com

Related resource