The block checks if any items in the specified list are equal to the given text—if at least one of them is, the block returns true; if none of them are, it returns false. The item must contain the exact text; for example, “abc” would not work if the item contained “abcde”. This block is case-sensitive.
Learn how to code logic for speech recognized control of Mars Rover with this example block code. You will be able to direct your own Mars Rover easily by just speaking commands.
Learn how to code logic for speech recognized control of Mars Rover with this example block code. You will be able to direct your own Mars Rover easily by just speaking commands.
Introduction
A speech recognized controlled Mars Rover robot is a robot that can recognize and interpret our speech, verbal commands, given by a human. The code uses the speech recognition model that will be able to record and analyze your speech given and react accordingly on the Mars Rover.
Speech recognition robots can be used in manufacturing and other industrial settings to control machinery, perform quality control checks, and monitor equipment.
They are also used to help patients with disabilities to communicate with their caregivers, or to provide medication reminders and other health-related information.
Main Code:
Logic
- Firstly, the code initializes the Mars Rover pins and starts recording the microphone of the device to store the audio command of the user.
- The code then checks conditions whether the command included the word “Go” or not. You can use customized commands and test for different conditions on your own.
- If the first condition stands false, the code again checks for different keywords that are included in the command.
- When any condition stands true, the robot will align itself accordingly and move in that direction of the respective command.
Output
Forward-Backward Motions:
Right-Left Motions:
Read More