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

Model config does not exist error #626

Open
liambanus opened this issue Oct 8, 2024 · 3 comments
Open

Model config does not exist error #626

liambanus opened this issue Oct 8, 2024 · 3 comments

Comments

@liambanus
Copy link

When I download a model and it's config there are no instructions on where they should be placed and putting them in the root folder gives the following error:

piper$ echo 'Welcome to the world of speech synthesis!' | ./piper --model en_US-lessac-medium.onnx --output_file welcome.wav
terminate called after throwing an instance of 'std::runtime_error'
what(): Model config doesn't exist
Aborted (core dumped)

Have verified the file is present and tried other models/configs but same result. Where should the config json be placed?

Thanks!

@redteampanda-ng
Copy link

the json file needs to have the same name as the .onnx file, but they are downloaded with a different name. So you should have:

en_US-lessac-medium.onnx
and
en_US-lessac-medium.onnx.json

@omeiirr
Copy link

omeiirr commented Oct 21, 2024

Thanks! @redteampanda-ng
Was having the same issue for a while now.

It might be helpful to add this to the README

@redteampanda-ng
Copy link

I added a pull request #632

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