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

Download models on load rather than on first play #26

Open
PureTryOut opened this issue Jun 8, 2024 · 3 comments
Open

Download models on load rather than on first play #26

PureTryOut opened this issue Jun 8, 2024 · 3 comments

Comments

@PureTryOut
Copy link

I switched to a new voice and instead of OVOS just giving me the answer immediately it first had to download that new voice. Which, being 115MB, was anything but instant.

It would be nice if it loaded voices on load and on config file changes so you don't have to wait when it's trying to give you the first answer.

@JarbasAl
Copy link
Member

JarbasAl commented Jun 8, 2024

you can request a different voice per request, we cant download ALL models, so every time you request a model you dont have, it is downloaded on demand

i'm open to suggestions, maybe something like a cli command to download them?

the plugin also needs to be updated for latest piper that i believe handles their own download, so this might just be an upstream bug depending how we look at it

@JarbasAl
Copy link
Member

JarbasAl commented Jun 8, 2024

also note, you can set your config to preload models already

preload_voices = self.config.get("preload_voices") or []
preload_langs = self.config.get("preload_langs") or [self.lang]

@PureTryOut
Copy link
Author

Oh interesting, why would you ever preload some voices but not others?

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

2 participants