Page 97 - TP_Modular_V2.1_Class8
P. 97

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.































                                                                                          App Development         95
   92   93   94   95   96   97   98   99   100   101   102