Page 109 - TP_iPlus_V2.1_Class8
P. 109

Program the TextToSpeech Action
                 To program the TextToSpeech action, follow the given steps:


                                                                   3  Drag it over to the workspace and drop it
                                                                   over the when Talking_Me.Click do block.

















                       1  Click on
                       TextToSpeech1
                       block.








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

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

                 Enter Message in the Text block

                 To enter message in the Text Block, follow the given steps:

                                                                3  Type the message within the message block.









                       1  Click on Text
                       component.

















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




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