Text to speech doesn't work perfectly
id: 751164
category: Bugs and Glitches
posts: 7
KittyCatKayden
loading
There are problems with text to speech. If the message is too long, it glitches and only plays part of the voice and then won't continue. Which is annoying, and needs to be fixed. Also, for some reason, if i have no internet connection, there is a possibility that the text to speech won't work at all. Both of these things can break and ruin projects. But the first one is worse in my opinion.
Blue_Moon2607
loading
For some reason, Text to Speech has a text limit, which says partial part of the text, and not the full way. Text to Speech requires internet as well because it doesn't have a built-in text to speech sound, it is stored on their server or their programming language. However, there's an alternative that can say the full thing, here are the examples…
Text to speech: Say [Hello, I speak too much since I am very chatty, I work on Scratch and I help]
Text to speech: Say [projects speak, I am an extension of Scratch, and I'm here!]
// Break up text to say the whole thing...
KittyCatKayden
loading
What if I'm using a list that chooses stuff randomly to say?Text to speech: Say [Hello, I speak too much since I am very chatty, I work on Scratch and I help]
Text to speech: Say [projects speak, I am an extension of Scratch, and I'm here!]
// Break up text to say the whole thing...
Maximouse
loading
You can make another list with the same length that contains the second part of each message. The code for selecting a random message could look like this:What if I'm using a list that chooses stuff randomly to say?Text to speech: Say [Hello, I speak too much since I am very chatty, I work on Scratch and I help]
Text to speech: Say [projects speak, I am an extension of Scratch, and I'm here!]
// Break up text to say the whole thing...
set [message v] to (pick random (1) to (length of [first list v]))
speak (item (message) of [first list v]) :: pen
speak (item (message) of [second list v]) :: pen
KittyCatKayden
loading
Maybe i could try thatYou can make another list with the same length that contains the second part of each message. The code for selecting a random message could look like this:What if I'm using a list that chooses stuff randomly to say?Text to speech: Say [Hello, I speak too much since I am very chatty, I work on Scratch and I help]
Text to speech: Say [projects speak, I am an extension of Scratch, and I'm here!]
// Break up text to say the whole thing...set [message v] to (pick random (1) to (length of [first list v]))
speak (item (message) of [first list v]) :: pen
speak (item (message) of [second list v]) :: pen
cosmo250
loading
There are problems with text to speech. If the message is too long, it glitches and only plays part of the voice and then won't continue. Which is annoying, and needs to be fixed. /quote]
I have the same problem. You can fix this by breaking up the long text into two smaller texts.
KittyCatKayden
loading
But i am using a list that chooses random messages There are problems with text to speech. If the message is too long, it glitches and only plays part of the voice and then won't continue. Which is annoying, and needs to be fixed. /quote]
I have the same problem. You can fix this by breaking up the long text into two smaller texts.