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

Generating Kokoro TTS audio with coreml provider #1792

Open
l3utterfly opened this issue Feb 4, 2025 · 7 comments
Open

Generating Kokoro TTS audio with coreml provider #1792

l3utterfly opened this issue Feb 4, 2025 · 7 comments

Comments

@l3utterfly
Copy link

l3utterfly commented Feb 4, 2025

I got this error generating TTS audio with provider = "coreml"

2025-02-04 22:24:47.002908 [I:onnxruntime:, model_builder.cc:926 SaveModel] Writing CoreML Model to /private/var/mobile/Containers/Data/Application/9F1EE4F3-7EC8-4572-A177-A6237E1E8E2F/tmp/onnxruntime-9F750DCD-7DEF-46C5-991E-2E7CC3663DA4-29393-00001A50FC386A09.model.mlmodel
libc++abi: terminating due to uncaught exception of type Ort::Exception: model_builder.cc:760 RegisterModelInputOutput Unable to get shape for output: /Squeeze_output_0

This is done on an iPhone 15 Pro
Using provided Kokoro onnx model in this repo

@csukuangfj
Copy link
Collaborator

Please use provider=cpu first.

@l3utterfly
Copy link
Author

Is coreml provider planned?

@csukuangfj
Copy link
Collaborator

That is an issue of onnxruntime.
Please first try if you can use onnxruntime python package with coreml with this model.

@l3utterfly
Copy link
Author

Alright, thank you very much!

@ahadjawaid
Copy link
Contributor

Actually, you can run the newest kokoro model, v1, using coreml. But, I haven't really seen any speed ups with it.

@l3utterfly
Copy link
Author

Actually, you can run the newest kokoro model, v1, using coreml. But, I haven't really seen any speed ups with it.

Where can I download this?

@ahadjawaid
Copy link
Contributor

Here is the download link.

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

No branches or pull requests

3 participants