Page 69 - TP_Play_V2.1_class6
P. 69

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         67
   64   65   66   67   68   69   70   71   72   73   74