-
Notifications
You must be signed in to change notification settings - Fork 983
Description
the quantized of kokoro is here: https://huggingface.co/onnx-community/Kokoro-82M-v1.0-ONNX/blob/main/onnx/model_quantized.onnx
the sherpa-onnx as follow:
sherpa-onnx 1.10.45
use the command:
python sherpa-onnx/python-api-examples/offline-tts-play.py \
--kokoro-model onnx-community/Kokoro-82M-v1.0-ONNX/onnx/model_quantized.onnx \
--kokoro-tokens onnx-community/Kokoro-82M-v1.0-ONNX/tokens.txt \
--kokoro-data-dir=onnx-community/Kokoro-82M-v1.0-ONNX/espeak-ng-data \
--kokoro-dict-dir=onnx-community/Kokoro-82M-v1.0-ONNX/dict \
--kokoro-lexicon=onnx-community/Kokoro-82M-v1.0-ONNX/lexicon-us-en.txt,onnx-community/Kokoro-82M-v1.0-ONNX/lexicon-zh.txt \
--output-filename test.wav \
--sid 0 \
--speed 1.0 \
--provider cpu \
"今天天气真不错"
it cause the error as follow:
2025-02-26 14:00:50,567 INFO [offline-tts-play.py:513] Loading model ... Traceback (most recent call last): File "/home/lyg/Codes/sherpa-onnx/python-api-examples/offline-tts-play.py", line 576, in <module> main() File "/home/lyg/Codes/sherpa-onnx/python-api-examples/offline-tts-play.py", line 514, in main tts = sherpa_onnx.OfflineTts(tts_config) RuntimeError: Failed to load model with error: /shared/onnxruntime/core/graph/model_load_utils.h:46 void onnxruntime::model_load_utils::ValidateOpsetForDomain(const std::unordered_map<std::basic_string<char>, int>&, const onnxruntime::logging::Logger&, bool, const string&, int) ONNX Runtime only *guarantees* support for models stamped with official released onnx opset versions. Opset 5 is under development and support for this is limited. The operator schemas and or other functionality may change before next ONNX release and in this case ONNX Runtime will not guarantee backward compatibility. Current official support for domain ai.onnx.ml is till opset 4.
thank you!