#3004 TaskCfg(cache_folder='E:/aaaa/win-pyvideotrans-v3.95/tmp/1312/3e16e8b44b', target_dir='C:/Users/Administrator/Desktop/_v

124.217* Posted at: 17 days ago 👁46

合并阶段出错 Traceback (most recent call last):
File "videotrans\process\stt_fun.py", line 237, in faster_whisper
File "faster_whisper\transcribe.py", line 963, in transcribe
File "faster_whisper\tokenizer.py", line 29, in init
ValueError: 'fil' is not a valid language code (accepted language codes: af, am, ar, as, az, ba, be, bg, bn, bo, br, bs, ca, cs, cy, da, de, el, en, es, et, eu, fa, fi, fo, fr, gl, gu, ha, haw, he, hi, hr, ht, hu, hy, id, is, it, ja, jw, ka, kk, km, kn, ko, la, lb, ln, lo, lt, lv, mg, mi, mk, ml, mn, mr, ms, mt, my, ne, nl, nn, no, oc, pa, pl, ps, pt, ro, ru, sa, sd, si, sk, sl, sn, so, sq, sr, su, sv, sw, ta, te, tg, th, tk, tl, tr, tt, uk, ur, uz, vi, yi, yo, zh, yue)

Traceback (most recent call last):
File "videotrans\task\job.py", line 289, in run
File "videotrans\task\trans_create.py", line 758, in assembling
File "videotrans\task\trans_create.py", line 1235, in _join_video_audio_srt
File "videotrans\task\trans_create.py", line 532, in recogn2pass
File "videotrans\recognition\__init__.py", line 276, in run
File "videotrans\recognition\_base.py", line 140, in run
File "videotrans\recognition\_overall.py", line 63, in _exec
File "videotrans\recognition\_overall.py", line 142, in _faster
File "videotrans\configure\_base.py", line 276, in _new_process
RuntimeError: Traceback (most recent call last):
File "videotrans\process\stt_fun.py", line 237, in faster_whisper
File "faster_whisper\transcribe.py", line 963, in transcribe
File "faster_whisper\tokenizer.py", line 29, in init
ValueError: 'fil' is not a valid language code (accepted language codes: af, am, ar, as, az, ba, be, bg, bn, bo, br, bs, ca, cs, cy, da, de, el, en, es, et, eu, fa, fi, fo, fr, gl, gu, ha, haw, he, hi, hr, ht, hu, hy, id, is, it, ja, jw, ka, kk, km, kn, ko, la, lb, ln, lo, lt, lv, mg, mi, mk, ml, mn, mr, ms, mt, my, ne, nl, nn, no, oc, pa, pl, ps, pt, ro, ru, sa, sd, si, sk, sl, sn, so, sq, sr, su, sv, sw, ta, te, tg, th, tk, tl, tr, tt, uk, ur, uz, vi, yi, yo, zh, yue)
TaskCfg(cache_folder='E:/aaaa/win-pyvideotrans-v3.95/tmp/1312/3e16e8b44b', target_dir='C:/Users/Administrator/Desktop/_video_out/1-mp4', remove_noise=False, is_separate=True, detect_language='zh-cn', subtitle_language=None, source_language='简体中文', target_language='菲律宾语', source_language_code='zh-cn', target_language_code='fil', source_sub='C:/Users/Administrator/Desktop/_video_out/1-mp4/zh-cn.srt', target_sub='C:/Users/Administrator/Desktop/_video_out/1-mp4/fil.srt', source_wav='E:/aaaa/win-pyvideotrans-v3.95/tmp/1312/3e16e8b44b/zh-cn.wav', source_wav_output='C:/Users/Administrator/Desktop/_video_out/1-mp4/zh-cn.m4a', target_wav='E:/aaaa/win-pyvideotrans-v3.95/tmp/1312/3e16e8b44b/target.wav', target_wav_output='C:/Users/Administrator/Desktop/_video_out/1-mp4/fil.m4a', subtitles='', novoice_mp4='E:/aaaa/win-pyvideotrans-v3.95/tmp/1312/3e16e8b44b/novoice.mp4', noextname='1', shibie_audio=None, targetdir_mp4='C:/Users/Administrator/Desktop/_video_out/1-mp4/1.mp4', instrument='E:/aaaa/win-pyvideotrans-v3.95/tmp/1312/3e16e8b44b/instrument.wav', vocal='E:/aaaa/win-pyvideotrans-v3.95/tmp/1312/3e16e8b44b/vocal.wav', back_audio='', background_music=None, app_mode='biaozhun', subtitle_type=1, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='Blessica(Female/PH)', copysrt_rawvideo=False, clear_cache=False, translate_type=0, tts_type=0, recogn_type=0, model_name='large-v3-turbo', voice_autorate=True, video_autorate=True, cuda=True, name='C:/Users/Administrator/Desktop/硅胶地漏盖/1.mp4', basename='1.mp4', ext='mp4', dirname='C:/Users/Administrator/Desktop/硅胶地漏盖', shound_del_name=None, uuid='3e16e8b44b', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, rephrase=0, only_out_mp4=True, fix_punc=False, recogn2pass=True)


=
system:Windows-10-10.0.19043-SP0
version:v3.95
frozen:True
language:zh
root_dir:E:/aaaa/win-pyvideotrans-v3.95

1 Replies

这是由于在合并阶段进行“二次识别”时,使用的 faster-whisper 模型不支持你设置的目标语言代码 fil(菲律宾语)导致的。

解决方案:

  1. 关闭二次识别:在软件主界面,取消勾选“高级选项”中的“二次识别”功能。这是最直接的解决方法。
  2. 检查并修正语言设置:确保在任务设置中,“原始语言”和“目标语言”的选择是软件支持的语言。从错误信息看,faster-whisper 模型不支持 fil 代码。你可以尝试将目标语言改为 en(英语)或其他支持的语言,或者使用其他支持菲律宾语的语音识别渠道(如在线API)。
  3. 使用其他语音识别渠道:如果你必须识别菲律宾语,可以考虑使用支持该语言的在线语音识别渠道(如 OpenAI Whisper API、Google Speech 等),并确保在渠道设置中正确选择了语言。

根本原因分析:
错误发生在 合并阶段二次识别 步骤。软件在生成配音后,会使用 faster-whisper 模型对新的配音音频进行识别,以生成精准匹配的字幕。但 faster-whispertokenizer 不支持语言代码 fil,因此报错。从日志 target_language_code='fil'recogn2pass=True 可以确认这一点。

请查阅相关文档:

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