#5179 TaskCfgVTT(is_cuda=False, uuid='d13dd46301', cache_folder='/Users/xiaohuo/pyvideotrans-main/tmp/8951/d13dd46301', target

219.255* Posted at: 1 day ago

语音识别阶段出错 [faster-whisper(本地)] Unknow error
Traceback (most recent call last):
File "/Users/xiaohuo/pyvideotrans-main/videotrans/task/job.py", line 105, in run

trk.recogn()

File "/Users/xiaohuo/pyvideotrans-main/videotrans/task/trans_create.py", line 353, in recogn

raw_subtitles = run_recogn(

File "/Users/xiaohuo/pyvideotrans-main/videotrans/recognition/__init__.py", line 265, in run

return FasterAll(**kwargs).run()

File "/Users/xiaohuo/pyvideotrans-main/videotrans/recognition/_base.py", line 145, in run

raise RuntimeError('Unknow error')

RuntimeError: Unknow error
TaskCfgVTT(is_cuda=False, uuid='d13dd46301', cache_folder='/Users/xiaohuo/pyvideotrans-main/tmp/8951/d13dd46301', target_dir='/Users/xiaohuo/Downloads/_video_out/yesujiaochangge-m4a', source_language='韩语', source_language_code='ko', source_sub='/Users/xiaohuo/Downloads/_video_out/yesujiaochangge-m4a/ko.srt', source_wav='/Users/xiaohuo/pyvideotrans-main/tmp/8951/d13dd46301/ko.wav', source_wav_output='/Users/xiaohuo/Downloads/_video_out/yesujiaochangge-m4a/ko.m4a', target_language='简体中文', target_language_code='zh-cn', target_sub='/Users/xiaohuo/Downloads/_video_out/yesujiaochangge-m4a/zh-cn.srt', target_wav='/Users/xiaohuo/pyvideotrans-main/tmp/8951/d13dd46301/target.wav', target_wav_output='/Users/xiaohuo/Downloads/_video_out/yesujiaochangge-m4a/zh-cn.m4a', name='/Users/xiaohuo/Downloads/yesujiaochangge.m4a', noextname='yesujiaochangge', basename='yesujiaochangge.m4a', ext='m4a', dirname='/Users/xiaohuo/Downloads', shound_del_name=None, translate_type=10, 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=False, detect_language='ko', recogn_type=0, model_name='small', shibie_audio=None, remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=False, subtitle_language=None, app_mode='tiqu', subtitles='', targetdir_mp4='/Users/xiaohuo/Downloads/_video_out/yesujiaochangge-m4a/yesujiaochangge.mp4', novoice_mp4='/Users/xiaohuo/pyvideotrans-main/tmp/8951/d13dd46301/novoice.mp4', is_separate=False, instrument=None, vocal=None, back_audio='', clear_cache=False, background_music=None, subtitle_type=0, only_out_mp4=False, recogn2pass=False, output_srt=0, copysrt_rawvideo=False)


=
system:macOS-26.5.1-arm64-arm-64bit
version:v3.98
frozen:False
language:zh
root_dir:/Users/xiaohuo/pyvideotrans-main
Python: 3.10.19 (main, Feb 12 2026, 00:36:33) [Clang 21.1.4 ]

1 Replies

语音识别阶段报 RuntimeError: Unknow error,通常是由于 faster-whisper 模型加载或运行时环境依赖缺失导致。macOS 源码部署需确保以下依赖完整:

  1. 缺失系统库:安装 libsndfile(macOS 通过 brew install libsndfile)。
  2. Python 包不完整:在项目目录下重新执行 uv sync(如果安装了可选本地渠道,建议 uv sync --all-extras),确保 ctranslate2faster-whisper 等依赖正确安装。
  3. 模型文件损坏或下载中断:删除 models/ 目录下 models--Systran--faster-whisper-small 文件夹(或对应模型文件夹),重新执行任务让软件自动下载。
  4. ARM 架构兼容性:Python 3.10 在 Apple Silicon 上使用 uv 安装的包应无问题,但若仍有异常,可尝试使用 conda 创建环境并安装 ctranslate2(参考官方文档)。

暂无法确定具体原因,请提供 logs/ 文件夹中最新的日志文件(复制底部约30行报错信息)以便进一步分析。

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. Dondate: ko-fi.com/jianchang512

Related resource