语音识别模块 =================== .. figure:: /_static/products/ledong-module/static/图片/语音识别传感器.png :width: 55% :align: center 概述 -------------------- 用于进行离线语音识别,将语音识别为文字,带腔体式喇叭。 技术参数 ------------------- 工作电压: VCC 3.3V -5V 模块尺寸:32*48mm 固定安装:2个兼容塑料积木通孔 通讯方式:串口,波特率9600 输出:语音识别结果 引脚定义 ------------------- ===== ======== 引脚 定义 ===== ======== GND 地 VCC 电源 TX 串口发送 RX 串口接收 ===== ======== 示例程序 ------------------- **使用“开灯” "关灯“指令控制板载RGB灯** .. 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/语音识别.png :width: 100% :align: center