Using Text-to-Speech

Starting with Android 1.6 (API Level 4), the Android platform includes a new Text-to-Speech (TTS) capability. Also known as "speech synthesis", TTS enables your Android device to "speak" text of different languages.

You need to configure your phone for text to speech operation before trying this example. Goto Settings->Voice input and output->Text-to-speech settings. If your phone is correctly set up, you will be able to Listen to an example

Download to your computer and then upload to your App Inventor account

  1. Run the speak program to observe how the Text-to-Speech program works
  2. Follow the video to create your own Text-to-Speech program using App Inventor


3 components are used

  1. Basic->TextBox
  2. Basic->Button
  3. Other stuff->TextToSpeech (This is a non visible component, that is it will not appear on the screen)

Block Editor

3 blocks are used

  1. My Blocks->Button1->Button1.Click
  2. My Blocks->TextToSpeech1->TextToSpeech1.Speak
  3. My Blocks->TextBox1->TextBox1.Text