Page 21 - Digicode_AI_class_7
P. 21

Making click event for button
            To make click event for button, follow the given steps:
















                    1  Click on button
                    Talking_Me.








                                          2  Drag and drop when Talking_Me.Click do to workspace.

            This is an Event Handler block that will handle what happens when the button on your app is clicked.

            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.


                                                                                     App Development      19
   16   17   18   19   20   21   22   23   24   25   26