Skip to content

Ahead-of-time API requests to improve overvall performance? #448

Answered by ken107
directentis1 asked this question in Q&A
Discussion options

You must be logged in to vote

All the engines are already doing prefetch, i. e. synthesizing the next section while the current one is being read. You can look in tts-engines.js

However, for this to work, the inference must be faster than realtime (realtime factor < 1) . Otherwise the next section wont finish synthesizing before the current one finishes playing.

Kokoro is quite demanding, unfortunately. See discussion in ken107/piper-browser-extension#10

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by directentis1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants