This repository was archived by the owner on Oct 6, 2025. It is now read-only.
Multiple use of a loaded voice. #215
MartinDavidWaller
started this conversation in
General
Replies: 2 comments 1 reply
-
|
Assuming you are using Python you can just instance a voice object, which loads the model and then make repeated calls to |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
You can also use a jsonl file as input. It keeps the voice loaded while processing each line of json. See the section on the main page under "JSON Input" |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Many thanks for doing this project, the voice quality is exceptional.
Loading the voice data seems to be a bit of a bottle neck. If, using the classic, echo 'hello' | piper .... type command I want to say multiple sentences then I can but each time the code must load the voice which, as you will know, can take a few seconds.
For an application I have in mind I'd like to be able to write library layer on top of piper that pre-loads a voice and then allow multiple calls into the library to create many .wav files only having loaded the voice once.
I was wondering if you had any documentation that might point me in the right direction to write such a library.
Many thanks
Martin
Beta Was this translation helpful? Give feedback.
All reactions