-
Notifications
You must be signed in to change notification settings - Fork 33
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
Add support for local TTS #98
base: main
Are you sure you want to change the base?
Conversation
The Editor Preferences modal sounds good and I'll see if I can move all the settings there. |
8b6a27a
to
7d9b7e3
Compare
Happy new year! 🎆🎉 I've now fully re-written the TTS code.
To be noted: the reason why I chose to process text chunks as soon as they come is that this way the speech synthesis can start narrating as soon as a sentence is complete (e.g. the AI generates a newline or other "stopping" token). This way, if a lot of text is being generated, and especially if the AI is slow, the user does not have to wait until it's all finished before the narration starts. I've tested it quite a bit with llama.cpp and koboldcpp. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed - See previous comment in pull request.
This change implements support for local/system text-to-speech using the Web Speech API.
It will read the generated text up to 500 characters. If the prompt has been modified, it will also read the portion that was changed.