Page 122 - TechPluse_C8_Flipbook
P. 122
Program the TextToSpeech Action
Step 1 Click on TextToSpeech block.
Step 2 Click and hold the call TextToSpeech1.Speak block.
Step 3 Drag it over to the Workspace add drop it over the button click 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.
Step 2 Drag and drop message block on Call TextToSpeech1.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.
120 Premium Edition-VIII

