This reads lengthy text, even if it's above 128 characters (which is the limit of the TTS built into scratch). Just paste your text into the textbox, and follow along on the on-screen list! Also, don't forget to turn on turbo mode when it's formatting the text. #Lengthy #Long #Text #TTS #Reader #Speaker
This basically splits the text. The first loop it splits the text into a readable list shown on screen, and the second loop it splits the text into a list for the TTS to read without hitting the 128 character limit. It prefers breaking the text into a new line when there is a punctuation mark or space, but will still make a new line in the text if there is no choice or else it will hit the character limit or character width limit. The first loop's constraint is that the on screen list has a width limit, which means if too many characters are placed in one list item, the following characters won't be shown on screen, just represented by a "..." and this would decrease the user experience due to that person not being able to see what is being read to them. The second loop's constraint is that the TTS can only read strings under or equal to 128 characters. It also has another constraint too, which is that the TTS pauses for a second when stopping and starting speaking, so finding the end of a sentence, like a period or exclamation mark, would greatly enhance the listening experience without abrupt pauses in the middle of a sentence, in between words.