#8904 语音识别阶段出错[阿里百炼 Qwen3-ASR] NoneTraceback (most recent call last):

240e**e1af Posted at: 46 minutes ago

语音识别阶段出错[阿里百炼 Qwen3-ASR] None
Traceback (most recent call last):

File "videotrans\task\job.py", line 35, in run

File "videotrans\task\job.py", line 100, in process_task

File "videotrans\task\trans_create.py", line 322, in recogn

File "videotrans\recognition\__init__.py", line 190, in run

File "", line 22, in init

File "videotrans\recognition\_qwen3asr.py", line 18, in post_init

File "videotrans\recognition\_base.py", line 195, in cut_audio

File "videotrans\recognition\_base.py", line 181, in _vad_split

File "videotrans\configure\base.py", line 253, in _new_process

videotrans.configure.excepts.VideoTransError: None
TaskCfgVTT(uuid='95977b60ad', name="E:/short/nozip/The Demon's Little Pet/33.mp4", dirname="E:/short/nozip/The Demon's Little Pet", noextname='33', basename='33.mp4', ext='mp4', target_dir="E:/short/nozip/The Demon's Little Pet/srt/33-mp4", cache_folder='E:/short/app/win-pyvideotrans-v4.01-0602/tmp/10104/95977b60ad', is_cuda=True, source_language='简体中文', source_language_code='zh-cn', source_sub="E:/short/nozip/The Demon's Little Pet/srt/33-mp4/zh-cn.srt", source_wav='E:/short/app/win-pyvideotrans-v4.01-0602/tmp/10104/95977b60ad/remove_noise.wav', source_wav_output="E:/short/nozip/The Demon's Little Pet/srt/33-mp4/zh-cn.m4a", target_language='英语', target_language_code='en', target_sub="E:/short/nozip/The Demon's Little Pet/srt/33-mp4/en.srt", target_wav='E:/short/app/win-pyvideotrans-v4.01-0602/tmp/10104/95977b60ad/target.wav', target_wav_output="E:/short/nozip/The Demon's Little Pet/srt/33-mp4/en.m4a", translate_type=4, tts_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='No', voice_autorate=False, video_autorate=False, remove_silent_mid=False, align_sub_audio=True, detect_language='zh-cn', recogn_type=7, model_name='tiny', shibie_audio=None, remove_noise=True, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=False, subtitle_language=None, app_mode='tiqu', subtitles='', targetdir_mp4="E:/short/nozip/The Demon's Little Pet/srt/33-mp4/33.mp4", novoice_mp4='E:/short/app/win-pyvideotrans-v4.01-0602/tmp/10104/95977b60ad/novoice.mp4', is_separate=False, embed_bgm=True, instrument=None, vocal='E:/short/app/win-pyvideotrans-v4.01-0602/tmp/10104/95977b60ad/vocal.wav', clear_cache=True, background_music='', subtitle_type=0, only_out_mp4=False, recogn2pass=False, output_srt=0, copysrt_rawvideo=False, loop_backaudio=0, backaudio_volume=0.8)


=
system:Windows-10-10.0.19045-SP0
version:v4.01
frozen:True
language:zh
root_dir:E:/short/app/win-pyvideotrans-v4.01-0602

1 Replies

#1 DeepSeek reply at 46 minutes ago

该报错发生在 VAD 音频切分子进程(cut_audio → _vad_split → _new_process),而不是调用阿里百炼 API 的阶段,因此与你的 API Key 或模型名是否正确基本无关;实际原因是子进程在处理音频/加载 VAD 模型时崩溃,返回了空异常信息(None)。结合你日志中的路径 E:/short/nozip/The Demon's Little Pet/33.mp4,目录名含空格和撇号('),这是最典型的诱因;其次可能是 VAD 模型文件缺失或损坏,以及 v4.01 版本过旧。

按以下顺序排查:

  1. 规范路径(优先做):把视频复制到全英文、无空格、无撇号、无特殊符号的浅层目录,例如 D:/videos/33.mp4,重新导入再执行。路径中的 The Demon's Little Pet 含空格与 ',极易导致子进程命令行参数解析失败。
  2. 检查 VAD 模型是否完整:确认 软件目录/models/onnx/ 下的模型文件存在且下载完整(如 silero_vad.onnx 等)。若不完整,删除残留文件后重新运行让软件自动下载,或按模型下载页手动下载后放入该目录。
  3. 升级版本:你当前为 v4.01,而最新为 v4.19,语音识别、VAD 切分与阿里百炼渠道在后续版本有多次修复,建议下载最新完整包覆盖(覆盖前可备份 videotrans/params.json、cfg.json 保留配置)。
  4. 核对百炼渠道配置(排除后续必然报错):在 菜单 → 翻译设置 → 阿里百炼 中确认已填写正确 API Key;语音识别所选模型必须为 qwen-asr 开头的模型(选成多模态或纯文本模型会报错)。
  5. 先改用本地渠道验证:将语音识别渠道临时换成 faster-whisper(内置) 执行同一视频。若同样在切分阶段报错,则可确定是路径/模型问题而非百炼渠道问题;若本地渠道正常,再回到百炼渠道并重点检查密钥与模型选择。

若上述处理后仍报 VideoTransError: None,请提供软件目录 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