#3937 TaskCfgSTT(is_cuda=True, uuid='ab096a8bd6', cache_folder='D:/pyvideotrans/tmp/17516/ab096a8bd6', target_dir='D:/pyvideot

104.223* Posted at: 15 hours ago 👁14

语音识别阶段出错 [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 526, in run
subprocess.CalledProcessError: Command '['D:/pyvideotrans/Faster-Whisper-XXL_r245.4_windows/Faster-Whisper-XXL/faster-whisper-xxl.exe', 'D:/pyvideotrans/tmp/17516/ab096a8bd6/IPX-620-U-1775354531.786327.wav', '-pp', '-f', 'srt', '-l', 'ja', '--model', 'distil-large-v3.5', '--output_dir', 'D:/pyvideotrans/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 105, in run
File "videotrans\task\_speech2text.py", line 116, in recogn
File "videotrans\configure\_base.py", line 89, in _external_cmd_with_wrapper
RuntimeError: 当前Faster-Whisper-XXL无法在打包版中使用,请源码部署或单独使用Faster-Whisper-XXL转录
TaskCfgSTT(is_cuda=True, uuid='ab096a8bd6', cache_folder='D:/pyvideotrans/tmp/17516/ab096a8bd6', target_dir='D:/pyvideotrans/output/recogn', 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/IPX-620-U.srt', target_wav=None, target_wav_output=None, name='d:/下载/IPX-620-U.mp4', noextname='IPX-620-U', basename='IPX-620-U.mp4', ext='mp4', dirname='D:/下载', shound_del_name=None, detect_language='ja', recogn_type=14, model_name='distil-large-v3.5', shibie_audio='D:/pyvideotrans/tmp/17516/ab096a8bd6/IPX-620-U-1775354531.786327.wav', remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=False)


=
system:Windows-10-10.0.26200-SP0
version:v3.98
frozen:True
language:zh
root_dir:D:/pyvideotrans

1 Replies

这是由于您在使用预打包版(.exe)时选择了“Faster-Whisper-XXL.exe”语音识别渠道导致的。该渠道是一个独立的可执行文件,目前无法与打包版软件集成。

解决方案:

  1. 更换语音识别渠道:在软件主界面的“语音识别”下拉菜单中,选择其他可用的渠道,例如“faster-whisper(本地)”或“openai-whisper(本地)”。这是最直接快速的解决方法。
  2. 单独使用Faster-Whisper-XXL:如果您确实需要使用该工具,请按照其官方说明单独运行它来生成字幕文件(SRT格式),然后在pyVideoTrans中翻译视频时,通过“导入已有字幕”功能使用该字幕文件,跳过语音识别步骤。
  3. 源码部署:如果您需要将Faster-Whisper-XXL作为渠道集成使用,必须采用源码方式部署pyVideoTrans(适用于macOS/Linux或Windows开发者环境)。

请查阅相关文档:

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