Step 5: Activate App with the Button

Goal:


With our app looking good, we can now start to code it.

Let’s begin by having the SpeechRecognizer activate when we press the button.

Steps:

  1. In the Upper Right of the Screen, press the Blocks button.
  2. From Button, place a Click block on the screen.
  3. From SpeechRecognizer, place a GetText block inside of the Click block.

Code: