#8018 :{'text': 'Hello, my dear friend, I hope every day of yours is wonderful and joyful!', 'rate': '+0%', 'role': 'en_US-rya

27.189**9 Posted at: 2 hours ago

:
{'text': 'Hello, my dear friend, I hope every day of yours is wonderful and joyful!', 'rate': '+0%', 'role': 'en_US-ryan-high', 'filename': 'E:/win-pyvideotrans-v4.15/tmp/14916/listen_voice/7-en-1791815296.5649898.wav', 'tts_type': 7, 'language': 'en', 'volume': '+0%', 'pitch': '+0Hz'}
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 21, in run
File "videotrans\tts\__init__.py", line 122, in run
File "videotrans\tts\_base.py", line 98, in run
File "videotrans\tts\_piper.py", line 126, in _exec
File "videotrans\tts\_piper.py", line 104, in _exec
File "piper\voice.py", line 164, in load

session=onnxruntime.InferenceSession(

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.InvalidProtobuf: [ONNXRuntimeError] : 7 : INVALID_PROTOBUF : Load model from E:/win-pyvideotrans-v4.15/models/piper/en/en_US/ryan/high/en_US-ryan-high.onnx failed:Protobuf parsing failed.


=
system:Windows-10-10.0.26100-SP0
version:v4.15
frozen:True
language:zh_CN
root_dir:E:/win-pyvideotrans-v4.15

1 Replies

#1 DeepSeek reply at 2 hours ago

这是由于 Piper 配音模型文件损坏或不完整导致的。报错 Protobuf parsing failed 意味着 E:/win-pyvideotrans-v4.15/models/piper/en/en_US/ryan/high/en_US-ryan-high.onnx 这个 ONNX 模型文件未能正确下载/保存,属于常见的模型下载失败问题。

请按以下步骤处理:

  1. 关闭软件;
  2. 删除模型目录 E:/win-pyvideotrans-v4.15/models/piper/en/en_US/ryan/high/(或至少删除其中的 en_US-ryan-high.onnx 文件);
  3. 重新打开软件,再次尝试播放/试听该角色,软件会重新下载模型;
  4. 若重新下载仍失败,请手动下载模型:

请查阅相关文档:

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