Nuvotion-Visuals / Harmony

Hi, I'm Harmony the Hummingbird! Let's work together on whatever you care about.
12 stars 0 forks source link

Fix issue where TTS sometimes gets split in the middle of a sentence #238

Open tom-leamon opened 1 year ago

tom-leamon commented 1 year ago

To prevent excessively long text from being spoken, which can cause the request to fail, checks are made for the length of the text intended to be spoken. If it exceeds the limit, the text will be truncated/split. We should ensure this only happens at sentence breaks if possible, because often times Harmony will split the text mid sentencec.