Discuss Scratch
- Discussion Forums
- » Show and Tell
- » TUTORIAL | How to make a sprite talk with voice!
- binjoe23
-
Scratcher
2 posts
TUTORIAL | How to make a sprite talk with voice!
1. Make a block that looks like this.
( text ): Makes the sprite say whatever you want.
( Number ): Makes the sprite say the words for any number of second.
2. Add a variable.
The variable must look like this.
This makes how many digits your sprite can say.
Right-click the “letter” variable in the preview to hide.
3. Add a list.
The list must look like this.
This makes the words turn into a list, each digit by digit.
Right-click the list in the preview to hide.
4. Add a sound.
The sound must be short, about the time of a second or less.
FULL CODE:
*NOTE: The discussion forums style aren't updated yet…
Word (text) for (Number) seconds
( text ): Makes the sprite say whatever you want.
( Number ): Makes the sprite say the words for any number of second.
2. Add a variable.
The variable must look like this.
(letter)
This makes how many digits your sprite can say.
Right-click the “letter” variable in the preview to hide.
3. Add a list.
The list must look like this.
(list :: Words)
This makes the words turn into a list, each digit by digit.
Right-click the list in the preview to hide.
4. Add a sound.
The sound must be short, about the time of a second or less.
play sound [short sound v]
FULL CODE:
define Word (text) for (Number) seconds
set [letter v] to [1]
delete (all v) of [words v]
repeat (length of [(text)])
add (letter (letter) of [(text)]) to [Words v]
change [letter v] by (1)
say (Words :: Words)
play sound [short sound v]
end
wait (Number) secs
say []
*NOTE: The discussion forums style aren't updated yet…
Last edited by binjoe23 (May 6, 2022 03:27:32)
- Cakeqo
-
Scratcher
100+ posts
TUTORIAL | How to make a sprite talk with voice!
This is a very good tutorial, but I'm pretty sure this isn't the correct forum heh ;^^ This is show and tell, where you can advertise/show your projects. Also, as far as I can remember, the forums aren't really looking for guides right now-
- BuzzedOut
-
Scratcher
500+ posts
TUTORIAL | How to make a sprite talk with voice!
This is a very good tutorial, but I'm pretty sure this isn't the correct forum heh ;^^ This is show and tell, where you can advertise/show your projects. Also, as far as I can remember, the forums aren't really looking for guides right now-
This is true: maybe you could make this a page on the wiki? Although I’m nt sure how the wiki works, so maybe not.
- binjoe23
-
Scratcher
2 posts
TUTORIAL | How to make a sprite talk with voice!
This is a very good tutorial, but I'm pretty sure this isn't the correct forum heh ;^^ This is show and tell, where you can advertise/show your projects. Also, as far as I can remember, the forums aren't really looking for guides right now-
This is true: maybe you could make this a page on the wiki? Although I’m nt sure how the wiki works, so maybe not.
Good idea! I'll do it now.
- Discussion Forums
- » Show and Tell
-
» TUTORIAL | How to make a sprite talk with voice!