Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add HarmonyOS demo for Kokoro TTS 1.0 #1813

Merged
merged 1 commit into from
Feb 7, 2025

Conversation

csukuangfj
Copy link
Collaborator

It throws the following error since HarmonyOS in sherpa-onnx uses onnxruntime 1.16.3.

LastFatalMessage:terminating due to uncaught exception of type Ort::Exception: 
Failed to load model with error: /home/runner/work/onnxruntime-libs/onnxruntime-libs/onnxruntime/onnxruntime/core/graph/model_load_utils.h:56 
void onnxruntime::model_load_utils::ValidateOpsetForDomain(const std::unordered_map<std::string, int> &, const logging::Logger &, bool, const std::string &, int) 
ONNX Runtime only *guarantees* support for models stamped with 
official released onnx opset versions. Opset 20 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 is till opset 19.

We need to re-export the onnx model using a lower opset.

@csukuangfj csukuangfj merged commit 5ca2465 into k2-fsa:master Feb 7, 2025
@csukuangfj csukuangfj deleted the ohos-kokoro-1.0 branch February 7, 2025 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant