#8970 Error during TTS dubbing stage [OmniVoice(Built-in)] Subprocess Error: Error no file named model.safetensors, or pytorch

2405**b895 Posted at: 30 minutes ago

Error during TTS dubbing stage [OmniVoice(Built-in)] Subprocess Error: Error no file named model.safetensors, or pytorch_model.bin, found in directory /Users/amitkumar/Applications/PyVideoTrans/models/models--k2-fsa--OmniVoice.
Traceback (most recent call last):
File "/Users/amitkumar/Applications/PyVideoTrans/videotrans/task/only_one.py", line 137, in run

trk.dubbing()

File "/Users/amitkumar/Applications/PyVideoTrans/videotrans/task/_stage_dubbing.py", line 24, in dubbing

self._tts()

File "/Users/amitkumar/Applications/PyVideoTrans/videotrans/task/_stage_dubbing.py", line 114, in _tts

run_tts(

File "/Users/amitkumar/Applications/PyVideoTrans/videotrans/tts/__init__.py", line 154, in run

return _cls(**kwargs).run()  # type:ignore

File "/Users/amitkumar/Applications/PyVideoTrans/videotrans/tts/_base.py", line 98, in run

self._exec()

File "/Users/amitkumar/Applications/PyVideoTrans/videotrans/tts/_omnivoice.py", line 42, in _exec

self._new_process(callback=omnivoice_fun,title=title,is_cuda=self.is_cuda,kwargs=kwargs)

File "/Users/amitkumar/Applications/PyVideoTrans/videotrans/configure/base.py", line 300, in _new_process

raise VideoTransError(err)

videotrans.configure.excepts.VideoTransError: Subprocess Error: Error no file named model.safetensors, or pytorch_model.bin, found in directory /Users/amitkumar/Applications/PyVideoTrans/models/models--k2-fsa--OmniVoice.

trk=Translation V/A 单视频模式
Select Media File: /Users/amitkumar/Downloads/红果短剧/二婚嫁对人,前夫悔破防-82aee7186b43/二婚嫁对人,前夫悔破防 001.mp4,
Output Directory: /Users/amitkumar/Downloads/红果短剧/二婚嫁对人,前夫悔破防-82aee7186b43/_video_out/二婚嫁对人,前夫悔破防 001-mp4,
self.cfg.cache_folder='/Users/amitkumar/Applications/PyVideoTrans/tmp/14578/4492bf9988'
Selected Clear Output, Not-Selected Enable accelerator
STT Service:Qwen-ASR(Built-in), 1.7B, Spoken: Simplified Chinese
Max Speech Duration (s): 5s
Min Speech Duration (ms): 3000ms
Min Silence Duration for Split (ms): 600ms
VAD Speech Threshold: 0.45
VAD Engine: silero
TranslateSrt:Microsoft Translate (Free),Spoken:Simplified Chinese,Target:Hindi
Traditional Translation Batch Size (Lines): 5
TTS Service:OmniVoice(Built-in), Voices:zh_female_nverguo.wav, Target:Hindi
Volume:+0%, Speed:+0%, Selected TTS Speedup, Not-Selected Slow Video
Selected Trim Start/End Silence in Dubbed Segments
Silence Removal Intensity: default
Selected Identify Speakers: 5
Speaker Diarization Model: built
Hard Subtitles
Max Line Length (CJK Characters):15, Max Line Length (Non-CJK):40
Selected Separate Vocal/BGM, Model:spleeter,Selected Re-embed BGM, Background Audio Volume Multiplier:0.8, Loop BGM/Users/amitkumar/Applications/PyVideoTrans/tmp/14578/4492bf9988/vocal.wav/Users/amitkumar/Applications/PyVideoTrans/tmp/14578/4492bf9988/instrument.wav
Selected Output MP4 Only
video duration:172033ms
video information:{'video_fps': 30.0, 'r_frame_rate': 30.0, 'video_codec_name': 'hevc', 'audio_codec_name': 'aac', 'width': 1080, 'height': 1920, 'time': 172033, 'streams_len': 2, 'streams_audio': 1, 'video_streams': 1, 'color': 'yuv420p'}
self.cfg=TaskCfgVTT(uuid='4492bf9988', name='/Users/amitkumar/Downloads/红果短剧/二婚嫁对人,前夫悔破防-82aee7186b43/二婚嫁对人,前夫悔破防 001.mp4', dirname='/Users/amitkumar/Downloads/红果短剧/二婚嫁对人,前夫悔破防-82aee7186b43', noextname='二婚嫁对人,前夫悔破防 001', basename='二婚嫁对人,前夫悔破防 001.mp4', ext='mp4', target_dir='/Users/amitkumar/Downloads/红果短剧/二婚嫁对人,前夫悔破防-82aee7186b43/_video_out/二婚嫁对人,前夫悔破防 001-mp4', cache_folder='/Users/amitkumar/Applications/PyVideoTrans/tmp/14578/4492bf9988', is_cuda=False, source_language='Simplified Chinese', source_language_code='zh-cn', source_sub='/Users/amitkumar/Downloads/红果短剧/二婚嫁对人,前夫悔破防-82aee7186b43/_video_out/二婚嫁对人,前夫悔破防 001-mp4/zh-cn.srt', source_wav='/Users/amitkumar/Applications/PyVideoTrans/tmp/14578/4492bf9988/zh-cn.wav', source_wav_output='/Users/amitkumar/Downloads/红果短剧/二婚嫁对人,前夫悔破防-82aee7186b43/_video_out/二婚嫁对人,前夫悔破防 001-mp4/zh-cn.m4a', target_language='Hindi', target_language_code='hi', target_sub='/Users/amitkumar/Downloads/红果短剧/二婚嫁对人,前夫悔破防-82aee7186b43/_video_out/二婚嫁对人,前夫悔破防 001-mp4/hi.srt', target_wav='/Users/amitkumar/Applications/PyVideoTrans/tmp/14578/4492bf9988/target.wav', target_wav_output='/Users/amitkumar/Downloads/红果短剧/二婚嫁对人,前夫悔破防-82aee7186b43/_video_out/二婚嫁对人,前夫悔破防 001-mp4/hi.m4a', translate_type=1, tts_type=3, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='zh_female_nverguo.wav', voice_autorate=True, video_autorate=False, remove_silent_mid=False, align_sub_audio=True, tts_model_name=None, detect_language='zh', recogn_type=2, model_name='1.7B', shibie_audio=None, remove_noise=False, enable_diariz=True, nums_diariz=4, rephrase=False, fix_punc=0, app_mode='biaozhun', subtitle_language=None, targetdir_mp4='/Users/amitkumar/Downloads/红果短剧/二婚嫁对人,前夫悔破防-82aee7186b43/_video_out/二婚嫁对人,前夫悔破防 001-mp4/二婚嫁对人,前夫悔破防 001.mp4', novoice_mp4='/Users/amitkumar/Applications/PyVideoTrans/tmp/14578/4492bf9988/novoice.mp4', is_separate=True, embed_bgm=True, instrument='/Users/amitkumar/Applications/PyVideoTrans/tmp/14578/4492bf9988/instrument.wav', vocal='/Users/amitkumar/Applications/PyVideoTrans/tmp/14578/4492bf9988/vocal.wav', clear_cache=True, background_music='', subtitle_type=1, only_out_mp4=True, recogn2pass=False, output_srt=0, copysrt_rawvideo=False, loop_backaudio=1, backaudio_volume=0.8, batch=False)
video_duration_ms=172033


=
system:macOS-26.7.3-arm64-i386-64bit
version:v4.19
frozen:False
language:en_US
root_dir:/Users/amitkumar/Applications/PyVideoTrans
Python: 3.10.19 (main, Feb 12 2026, 00:36:33) [Clang 21.1.4 ]

1 Replies

#1 DeepSeek reply at 30 minutes ago

This is caused by an incomplete/failed download of the OmniVoice model: the directory models/models--k2-fsa--OmniVoice exists but lacks the required weight file model.safetensors (pytorch_model.bin). The software only sees an empty or partially downloaded folder, so loading fails. It is a network/model-download problem, not a TTS or language problem.

Solution (in order):

  1. Close the software. Open /Users/amitkumar/Applications/PyVideoTrans/models/ and delete the entire models--k2-fsa--OmniVoice folder (it is incomplete; keeping it will keep failing).
  2. Manually download all files from the model page: https://huggingface.co/k2-fsa/OmniVoice/tree/main (requires access to huggingface.co; if it is blocked, use a working proxy, or create an empty huggingface.txt in the software root directory to force downloading from the origin site instead of the mirror).
  3. Recreate the folder models/models--k2-fsa--OmniVoice and put all downloaded files in it, keeping the original file names exactly (if the browser saved a file as model(2).safetensors, rename it back to model.safetensors). Confirm model.safetensors is directly inside that folder, not inside an extra subfolder.
  4. Restart the software and run the dubbing stage again. Do not check Clear Output unless you want to redo recognition/translation.
  5. Meanwhile, since Edge-TTS (free, default) supports Hindi and needs no model download, you can switch TTS Service to Edge-TTS as an immediate workaround and keep the current project.

Note: the Hindi target language is not the issue here — the failure occurs before synthesis, at model loading.

Please refer to the related documentation:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
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

Related resource