Step 6: Speech Response Code

Goal:


Now that we can the Speech Recognizer to activate, we need it to active the Text to Speech object to read us back the responses we pre-programmed into it.

Steps:

  1. From SpeechRecognizer, place an AfterGettingText block.
  2. From Label, place a set Label.Text block inside of the AfterGettingText.
  3. From the AfterGettingText block, hover over the orange result circle, and then grab the get block and attach it to the end of the set Label.Text block.
  4. From Control, place an IF/THEN block.

Code: