#7196 :{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'rate': '+0%', 'role': 'en_female_2.wav', 'filename': 'D:/win-pyvideotrans-v4.12

50.7**8 Posted at: 2 hours ago

:
{'text': '你好啊,我亲爱的朋友,希望你的每一天都是美好愉快的!', 'rate': '+0%', 'role': 'en_female_2.wav', 'filename': 'D:/win-pyvideotrans-v4.12-0908/tmp/9848/listen_voice/5-zh-cn-1789137930.804581.wav', 'tts_type': 5, 'language': 'zh-cn', 'volume': '+0%', 'pitch': '+0Hz'}
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 21, in run
File "videotrans\tts\__init__.py", line 230, in run
File "videotrans\tts\_base.py", line 97, in run
File "videotrans\tts\_mosstts.py", line 45, in _exec
File "videotrans\mosstts\onnx_tts_runtime.py", line 295, in init
File "videotrans\mosstts\ort_cpu_runtime.py", line 346, in init
File "videotrans\mosstts\ort_cpu_runtime.py", line 396, in _create_sessions
File "videotrans\mosstts\ort_cpu_runtime.py", line 384, in _session
File "onnxruntime\capi\onnxruntime_inference_collection.py", line 485, in init

self._sess = sess

File "onnxruntime\capi\onnxruntime_inference_collection.py", line 573, in _create_inference_session
onnxruntime.capi.onnxruntime_pybind11_state.NoSuchFile: [ONNXRuntimeError] : 3 : NO_SUCHFILE : Load model from D:\win-pyvideotrans-v4.12-0908\models\MOSS-TTS-Nano-100M-ONNX\moss_tts_prefill.onnx failed:Load model D:\win-pyvideotrans-v4.12-0908\models\MOSS-TTS-Nano-100M-ONNX\moss_tts_prefill.onnx failed. File doesn't exist


=
system:Windows-10-10.0.26200-SP0
version:v4.12
frozen:True
language:en_US
root_dir:D:/win-pyvideotrans-v4.12-0908

1 Replies

#1 DeepSeek reply at 2 hours ago

The underlying cause is that the ONNX model file for the MOSS-TTS-Nano (tts_type 5) dubbing channel was not downloaded or is incomplete. The error is explicit:

Load model ...\models\MOSS-TTS-Nano-100M-ONNX\moss_tts_prefill.onnx failed: File doesn't exist

This is a model download failure, not a code or configuration problem.

Solution: manually download the required models

  1. Download the MOSS-TTS-Nano voice model from:
    https://huggingface.co/OpenMOSS-Team/MOSS-TTS-Nano-100M/tree/main
    Place all files into:
    软件目录/models/MOSS-TTS-Nano-100M
  2. Download the MOSS audio tokenizer (the ONNX one your error is complaining about) from:
    https://huggingface.co/OpenMOSS-Team/MOSS-Audio-Tokenizer-Nano-ONNX/tree/main
    Place all files into:
    软件目录/models/MOSS-TTS-Nano-100M-ONNX

    Note the exact missing file is moss_tts_prefill.onnx inside that folder — make sure it exists there after downloading.

  3. If you are in mainland China, huggingface.co is blocked. Either enable a stable VPN/proxy, or use the mirror https://hf-mirror.com with the same paths.
  4. After copying, restart the software and retry the dubbing. If it still fails, delete the models/MOSS-TTS-Nano-100M-ONNX folder entirely and re-download (partial downloads are common and produce exactly this error).
Tips: make sure filenames are unchanged (browsers may rename duplicates to xxx(2).onnx). Each model folder here is large; a flaky connection frequently results in missing files.

请查阅相关文档:

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