#2476 TaskCfg(cache_folder='D:/win-pyvideotrans-v3.92/tmp/20580/78559c7c89', target_dir='d:/win-pyvideotrans-v3.92/output/reco

50.7* Posted at: 1 month ago 👁62

语音识别阶段出错 [Faster-Whisper-XXL.exe] 当前Faster-Whisper-XXL无法在打包版中使用,请源码部署或单独使用Faster-Whisper-XXL转录
Traceback (most recent call last):
File "videotrans\configure\_base.py", line 85, in _external_cmd_with_wrapper
File "subprocess.py", line 524, in run
subprocess.CalledProcessError: Command '['D:/Faster-Whisper-XXL_r245.4_windows/Faster-Whisper-XXL/faster-whisper-xxl.exe', 'D:/win-pyvideotrans-v3.92/tmp/20580/78559c7c89/S01E10-1767537937.5094106.wav', '-pp', '-f', 'srt', '-l', 'ja', '--model', 'large-v3-turbo', '--output_dir', 'd:/win-pyvideotrans-v3.92/output/recogn']' returned non-zero exit status 1.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\job.py", line 113, in run
File "videotrans\task\_speech2text.py", line 103, in recogn
File "videotrans\configure\_base.py", line 89, in _external_cmd_with_wrapper
RuntimeError: 当前Faster-Whisper-XXL无法在打包版中使用,请源码部署或单独使用Faster-Whisper-XXL转录

TaskCfg(cache_folder='D:/win-pyvideotrans-v3.92/tmp/20580/78559c7c89', target_dir='d:/win-pyvideotrans-v3.92/output/recogn', remove_noise=False, is_separate=False, detect_language='ja', subtitle_language=None, source_language=None, target_language=None, source_language_code=None, target_language_code=None, source_sub=None, target_sub='d:/win-pyvideotrans-v3.92/output/recogn/S01E10.srt', source_wav=None, source_wav_output=None, target_wav=None, target_wav_output=None, subtitles=None, novoice_mp4=None, noextname='S01E10', shibie_audio='D:/win-pyvideotrans-v3.92/tmp/20580/78559c7c89/S01E10-1767537937.5094106.wav', targetdir_mp4=None, instrument=None, vocal=None, back_audio=None, background_music=None, app_mode='biaozhun', subtitle_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role=None, copysrt_rawvideo=False, clear_cache=False, translate_type=None, tts_type=None, recogn_type=13, model_name='large-v3-turbo', split_type=0, voice_autorate=False, video_autorate=False, cuda=True, name='F:/j1/download/S01E10.mp4', basename='S01E10.mp4', ext='mp4', dirname='F:/j1/download', shound_del_name=None, uuid='78559c7c89', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, rephrase=0, only_out_mp4=False)


=
system:Windows-10-10.0.19045-SP0
version:v3.92
frozen:True
language:zh
root_dir:D:/win-pyvideotrans-v3.92

1 Replies

错误明确提示:Faster-Whisper-XXL.exe 无法在打包版中使用。您使用的是预打包的绿色版软件,而 Faster-Whisper-XXL 是一个独立的第三方可执行文件,需要源码部署环境才能调用。

解决方案:

  1. (推荐)切换回内置的 faster-whisper(本地) 识别渠道:

    • 在主界面第2行“语音识别”处,将渠道从 Faster-Whisper-XXL.exe 更改为 faster-whisper(本地)
    • 模型同样可以选择 large-v3-turbo。内置的 faster-whisper 库功能相同,且与打包版完全兼容。
  2. (备用)如果您必须使用独立的 Faster-Whisper-XXL.exe:

    • 您需要按照官方文档进行 源码部署,而不是使用解压即用的打包版。
    • 部署方法:克隆 GitHub 仓库后,使用 uvpip 安装依赖运行。具体步骤请参考【核心知识库】的“MacOS / Linux 用户 (源码部署)”部分,Windows 用户也可参照此流程。

操作步骤:

  1. 关闭当前软件。
  2. 重新启动 sp.exe
  3. 在主界面“语音识别”下拉菜单中,选择 faster-whisper(本地)
  4. 重新选择视频文件并开始任务。

请查看更多参考文档:

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.

Related resource