Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 62 - 2611_SmartGPT Pro V(5.0) C-7
P. 62

    Program the TextToSpeech Action

                                                                          3  Drag the block to the Workspace and drop it
                                                                         onto the block labeled when Talking_Me.Click.

                                                                                2  Click and hold the call
                              1  Click on the                                   TextToSpeech1.Speak message
                             TextToSpeech1                                      block.
                             block.

                      This block will execute when the button on our app is clicked and make our phone speak.

                      Enter Message in the Text Block

                                                                       2  Drag and drop message
                                                                      block on call TextToSpeech1.
                                                                      Speak message block.

                             1  Click on the
                             Text component.

                                                                                       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.

                           Tick ( ) if you know this.

                           ▶   An app can be tested in your smartphone using MIT A4 companion.
                           ▶  Backpack is used to delete blocks in App Inventor.

                       60   Computer Science (V5.0)-VII

| 57 58 59 60 61 62 63 64 65 66 67 |