Speech Recognition Module ========================= .. figure:: /_static/products/ledong-module/static/images/speech_recognition_sensor.png :width: 55% :align: center Overview -------------------- Used for offline speech recognition, converting speech into text, with a cavity-type speaker. Technical Specifications ------------------------ Operating voltage: VCC 3.3V -5V Module dimensions: 32*48mm Mounting: 2 plastic building block compatible through-holes Communication: Serial port, baud rate 9600 Output: Speech recognition results Pin Definition ------------------- ===== =============== Pin Definition ===== =============== GND Ground VCC Power TX Serial transmit RX Serial receive ===== =============== Example Code ------------------- **Use "turn on light" and "turn off light" commands to control the onboard RGB LED** .. code-block:: python from mpython import * from bluebit import ASRPRO import time asrpro = ASRPRO(uart_num=1,tx=Pin.P16,rx=Pin.P15) while True: if asrpro.any(): if asrpro.identifying_word == 1: rgb.fill((int(0), int(204), int(204))) rgb.write() time.sleep_ms(1) if asrpro.identifying_word == 3: rgb.fill( (0, 0, 0) ) rgb.write() time.sleep_ms(1) .. figure:: /_static/products/ledong-module/static/examples/speech_recognition.png :width: 100% :align: center