Page 78 - PlugGPT_V2.0_C7_Flipbook
P. 78
This is an Event Handler block that will handle what happens when the button on your app is
clicked.
Program the TextToSpeech Action
Step 1 Click on TextToSpeech1 block.
Step 2 Click and hold the call TextToSpeech1.Speak message block.
Step 3 Drag the block to the Workspace and drop it onto the block labeled when Talking_
Me.Click do block.
This block will execute when the button on our app is clicked and make our phone speak.
Enter message in the Text block
Step 1 Click on Text component from Built-in blocks.
Step 2 Drag and drop message block on call TextToSpeech1. Speak message block.
Step 3 Type the message within the message block.
Test Your App
To test your app, go to the connected device or Emulator and click on the button. Your phone
will read the phrase aloud. Keep the volume of your phone/laptop high.
76 Premium Edition-VII

