Page 86 - TP_Pluse_V2.2_Class_7
P. 86
Trash: It is used for deleting blocks that are not required.
Backpack: It stores the copy of all the blocks even when we exit App Inventor.
Making Click Event for Button
To make click event for button, follow the given steps:
Step 1: Click on button Talking_Me.
Step 2: Drag and drop when Talking_Me. Click do to workspace.
This is an Event Handler block that will handle what happens when the button on your app is clicked.
Program the TextToSpeech Action
To program the TextToSpeech action, follow the given steps:
Step 1: Click on TextToSpeech1 block.
Step 2: Click and hold the call TextToSpeech1.Speak message block.
Step 3: Drag it over to the workspace and drop it over the when Talking_Me.Click do block.
This block will execute when the button on our app is clicked and make our phone speak.
84 Plus (Ver. 2.2)-VII

