Page 80 - Plus_V2.2_C7_Flipbook
P. 80
Step 2: Drag and drop When Talking_Me.Click do block, and drag and drop it 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
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.
78 Premium Edition-VII

