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

240e**e1af Posted at: 50 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='large-v3-turbo', 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 50 minutes ago

这不是阿里百炼 API 返回的报错,而是语音识别前置的 VAD 音频切分 在独立子进程中崩溃后抛出的空异常(VideoTransError: None)。报错栈停在 _vad_split → _new_process,说明尚未发起到阿里百炼的请求。从你贴出的配置看,有两个明显可疑点:recogn_type=7(阿里百炼 Qwen3-ASR)却仍是 model_name='large-v3-turbo'(whisper 模型名),以及视频路径中含空格和英文单引号。

按顺序处理:

  1. 重新选择匹配的模型:切换到「阿里百炼 Qwen3-ASR」识别渠道后,必须在 识别模型 下拉中重新选择以 qwen-asr 开头的模型;当前仍是 large-v3-turbo,属于其他渠道的模型名,会引发不可预期错误。
  2. 规范视频路径:将视频改名并移出深目录,例如移到 D:/video/33.mp4。当前 E:/short/nozip/The Demon's Little Pet/33.mp4 含空格与 ' 单引号,且层级较深,极易导致子进程解析崩溃。
  3. 排查子进程崩溃(显存/内存):你已启用 is_cuda=True,子进程返回空异常常见于显存或内存耗尽。可先取消勾选 CUDA加速 再试一次;或临时改用 faster-whisper(内置) 渠道识别同一文件,用于判断是渠道问题还是文件/环境问题。
  4. 升级版本:v4.01 较旧,VAD 切分与子进程隔离机制已多次修复,建议下载最新完整包(v4.19)覆盖后重试,注意备份 videotrans/ 下的 cfg.json 与 params.json。
  5. 重试时勾选「清理已生成」,避免复用上次残留的异常中间文件。
  6. 若以上处理后仍报同一错误,请提供 软件安装目录/logs/ 下最新日志文件底部约 30 行内容(含完整 Traceback),以便进一步定位。

请查阅相关文档:

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