Skip to main content

Text to Speech

The Text to Speech extension makes your project speak text out loud in a chosen voice and language. It is built in and compatible with Scratch. The speech is generated by Amazon Web Services.

Load it from Add Extension and choose Text to Speech.

Requires the internet

Speech is synthesised by an online service, so this extension needs an internet connection every time it speaks. It will not produce sound offline.

Blocks

speak [words]

speak [hello]

Speaks the given text out loud and waits until the speech finishes before continuing the script.

set voice to [voice]

set voice to (alto v)

Chooses the voice. Options are alto, tenor, squeak, giant, and kitten. The voice is remembered per sprite.

set language to [language]

set language to (English v)

Sets the language used to pronounce the text. Match this to the language of the words you are speaking so they sound correct.

Tips

  • Because speak waits for the audio to finish, sequential speak blocks read one after another.
  • Set the language before speaking text in another language; the same words are pronounced very differently depending on the selected language.

See also