Goal:
Let’s start with programming what will happen when we push our button.
Here we can see the power of the TextToSpeech component.
All that we need to do is tell TextToSpeech to speak whatever Text is currently inside the TextBox whenever Button1 is pressed.
Steps:
- Under the section labeled Blocks select Button1.
- Grab and place the block labeled “when Button1.Click”.
- Under Blocks select TextToSpeech1.
- Grab and place the block labeled “call TextToSpeech1.Speak”.
- Under the section labeled Blocks select TextBox1.
- Grab and place the block labeled “TextBox1.BackgroundColor”.
- Change “BackgroundColor” to say “Text”.