Page 109 - Modular v1.1 Pyhton
P. 109

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


                                                                                             App Development     107
   104   105   106   107   108   109   110   111   112   113   114