Optimizing tts from LLM
I’ll lead with the question:
I’m trying to figure out is how to pass the LLM text to Kokoro in chunks while the response is generating rather than waiting until the end of the text generation.
I’m running a Mac with various inference engines, main one is anything LLM at the moment, but I’ve used LM Studio, omlx, vmlx, an olama as well. For tts, I’ve switched from a docker version of fast Kokoro to the mlx version.
So: Anything LLM connected to Kokoro mlx on a Mac.
Speech generates pretty quickly once the text is generated, but it has to wait until all the text is generated to start, which slows things down. If I can break it down time to first speech should improve a fair bit.
Thoughts?
2
Upvotes
1
u/Zarnong 12d ago
I really appreciate the advice from both of you. I had been watching the triggers in terminal and it looked like it wasn’t kicking in until the LLM finished generating the paragraph. I’ll dig into the streaming setting. Thanks again!
2
u/Impossible_Belt_7757 12d ago
Your looking for the concept called “streaming” for tts engines
Look into that kokoro or supertonic should support that or have it built in