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

Does TTS (Kokoro) support streaming? #322

Closed
Madd0g opened this issue Feb 10, 2025 · 1 comment
Closed

Does TTS (Kokoro) support streaming? #322

Madd0g opened this issue Feb 10, 2025 · 1 comment

Comments

@Madd0g
Copy link

Madd0g commented Feb 10, 2025

It is a bit slow on my machine to wait for the entire response to generate.

Is streaming technically possible?

Thanks

@fedirz
Copy link
Collaborator

fedirz commented Feb 19, 2025

Is streaming technically possible?

Yes.

Is streaming currently supported?

It's not currently supported on the server, but you may break up your input text into multiple smaller inputs and make an API call for each input separately.

I'm doing this for the voice chat feature. The speech is generated from an LLM reply in sentence chunks (rather than generating the speech from the full reply). Take a look at the SentenceChunker class, and it's usage within the code.

@fedirz fedirz closed this as completed Feb 19, 2025
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