#7641 No audio file was generated during the listening test.self=QwenttsLocal(uuid=None, proxy_str=None, last_down_time=0, tts

240e**aa38 Posted at: 1 hour ago

No audio file was generated during the listening test.
self=QwenttsLocal(uuid=None, proxy_str=None, last_down_time=0, tts_type=1, len=1, language='zh-cn', play=True, volume='+0%', rate='+0%', pitch='+0Hz', has_done=0, wait_sec=1.0, dub_nums=1, error='No audio file was generated during the listening test.', api_url='', model_name='0.6B', is_cuda=False, local_dir=None, is_redubb=False, target_language='Chinese'):
{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'rate': '+0%', 'role': 'zh_female_cosy.wav', 'filename': 'H:/win-pyvideotrans-v4.14/tmp/8216/listen_voice/1-zh-cn-1790485188.2886996.wav', 'tts_type': 1, 'language': 'zh-cn', 'volume': '+0%', 'pitch': '+0Hz'}
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 21, in run
File "videotrans\tts\__init__.py", line 119, in run
File "videotrans\tts\_base.py", line 123, in run
videotrans.configure.excepts.DubbingSrtError: No audio file was generated during the listening test.
self=QwenttsLocal(uuid=None, proxy_str=None, last_down_time=0, tts_type=1, len=1, language='zh-cn', play=True, volume='+0%', rate='+0%', pitch='+0Hz', has_done=0, wait_sec=1.0, dub_nums=1, error='No audio file was generated during the listening test.', api_url='', model_name='0.6B', is_cuda=False, local_dir=None, is_redubb=False, target_language='Chinese')


=
system:Windows-10-10.0.19045-SP0
version:v4.14
frozen:True
language:zh_CN
root_dir:H:/win-pyvideotrans-v4.14

1 Replies

#1 DeepSeek reply at 1 hour ago

此错误表示 Qwen3-TTS(内置) 模型未成功加载或未生成音频文件,本质上是模型文件缺失/下载不完整,或运行环境(显存/CPU)不足以完成推理。

由于 is_cuda=False 且 model_name='0.6B',当前是在 CPU 模式下运行 Qwen-TTS,且日志中没有任何模型加载信息,说明模型尚未下载或下载失败。

排查与解决步骤

  1. 确认模型是否已下载完整
    检查目录是否存在:

    H:/win-pyvideotrans-v4.14/models/models--Qwen--Qwen3-TTS-12Hz-0.6B-Base
    H:/win-pyvideotrans-v4.14/models/models--Qwen--Qwen3-TTS-12Hz-0.6B-CustomVoice

    若目录不存在、为空、或文件明显不全(正常应有多个 .safetensors 权重文件),需手动下载:

    下载全部文件后,分别放入上述两个目录(注意目录名中的 / 替换为 --),不要重命名文件(避免 model(2).safetensors 之类)。

  2. 重新试听
    模型就位后,重新点击试听。
  3. 若模型已在但仍报错

    • 尝试切换 model_name 为 CustomVoice 再试听;
    • Qwen3-TTS 在 CPU 下运行极慢且占用内存大,建议在 高级选项 → 通用设置 中确认设备,或改用 Edge-TTS(免费) 渠道测试跑通流程。
  4. 若上述仍失败
    删除已下载的 Qwen3-TTS 模型目录后重新下载(可能是下载不完整导致),并确保网络可访问 huggingface.co(无科学上网时软件会自动切换至 hf-mirror.com,但镜像下载可能失败)。

请查阅相关文档:

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