Programming with MicroPython: ASR Voice Recognition Module
Import ASR Library
Import SugarASR library to make use of its functions.
15: ASR Voice Recognition Module
Initiate ASR Module
Creates an ASR object.
tx: Tx Pin, use “P2” for Robotbit Edu.
rx: Rx Pin, use “P12” for Robotbit Edu.
ASR Triggered State
Returns the state of ASR module. Returns true when a command is heard, false when a command is not heard.
Get ASR Command
Returns the command ID for the voice command heard by the ASR. Refer to the following table for a list of commands.
ASR Play Speech
Plays the speech indicated by the ID.
ASR Say Number
Say the number provided.
ASR Say Time
Say the time provided.
PreviousProgramming with MicroPython: Sugar and Powerbrick ModulesNextProgramming with MicroPython: KOI
Last updated