#6039 语音识别阶段出错[faster-whisper(本地内置)] No transcription results returned. Please check the original audio/video or model and try

27.189* Posted at: 7 hours ago

语音识别阶段出错[faster-whisper(本地内置)] No transcription results returned. Please check the original audio/video or model and try again.
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\speech2text.py", line 97, in recogn

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

File "videotrans\recognition\_base.py", line 92, in run

File "videotrans\recognition\_whisper.py", line 38, in _exec

File "videotrans\recognition\_whisper.py", line 124, in _faster

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

videotrans.configure.excepts.VideoTransError: No transcription results returned. Please check the original audio/video or model and try again.
cfg=TaskCfgSTT(uuid='0bc2f1cb36', name='G:/新建文件夹 (3)/19/15071517_hq.mp4', dirname='G:/新建文件夹 (3)/19', noextname='15071517_hq', basename='15071517_hq.mp4', ext='mp4', target_dir='D:/pyvideotrans/output/recogn', cache_folder='D:/pyvideotrans/tmp/10628/0bc2f1cb36', is_cuda=False, source_language=None, source_language_code=None, source_sub=None, source_wav=None, source_wav_output=None, target_language=None, target_language_code=None, target_sub='D:/pyvideotrans/output/recogn/15071517_hq.srt', target_wav=None, target_wav_output=None, detect_language='auto', recogn_type=0, model_name='large-v3-turbo', shibie_audio='D:/pyvideotrans/tmp/10628/0bc2f1cb36/15071517_hq-1784810709.386333.wav', remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=0)


=
system:Windows-10-10.0.22621-SP0
version:v4.06
frozen:True
language:zh
root_dir:D:/pyvideotrans

1 Replies

报错核心原因是 faster-whisper 子进程未识别到任何有效语音,可能由以下两者之一或共同导致:

  1. 模型与计算资源不匹配:你的配置是 large-v3-turbo 模型 + 纯 CPU 运行is_cuda=False)。该模型体积约 2GB,CPU 推理极慢且极易因超时或内存不足而静默崩溃,子进程无法返回结果。
  2. 文件路径含中文及空格G:/新建文件夹 (3)/19/15071517_hq.mp4 包含括号和空格,虽主程序做了初步处理,但底层 FFmpeg 管道仍可能解析异常,导致提取的音频为空或损坏。

立即解决步骤(按优先级):

  1. 将视频移至纯英文、无空格的路径,例如 D:/video/15071517_hq.mp4,再重新选择文件执行。
  2. 更换更小的模型:在语音识别渠道中选择 mediumsmall 模型,同时取消勾选 CUDA 加速(继续使用 CPU)。这能大幅降低失败概率。
  3. 如果依然失败,建议 开启 CUDA 加速(需 NVIDIA 显卡并已安装 CUDA 12.8+ 及 cuDNN 9.11+)。或者改用在线语音识别渠道如 OpenAI语音识别API(需 API Key)。

请查阅相关文档:

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 via ko-fi.com

Dondate via PayPal

Related resource