Skip to main content

Speech Recognition Sensor

Introduction

Speech recognition sensor can realize the voice recognition function, and support self-learning words. Combined with rainbow LED, intelligent cars and other hardware can realize voice recognition control lamps, voice recognition control cars and other interesting cases.

Technical Specifications

ItemParameter
SKUEF04109
Interface TypeIIC
Operating Voltage3.3V
Core ICSNR9815

Outlook and Dimensions

Speech Recognition Sensor Preset Phrases and Feedback

Wake-up Call

Lexical ItemFeedback VoiceIIC Return Data
Hi ShaunHi, I’m here0x01

Functional Group 1

Lexical ItemFeedback VoiceIIC Return Data
Lights onAlready on0x10
Lights offAlready off0x11
Turn leftTurn left0x12
Turn rightTurn right0x13
Full speed aheadFull speed ahead0x14
ReversingReversing0x15
Line trackingLine tracking0x16
Avoid objectsObjects avoided0x17
StopAlready stopped0x18

Function Group 2

Lexical ItemFeedback VoiceIIC Return Data
Start deviceDevice started0x20
Turn off deviceDevice turned off0x21
PauseHave arest0x22
Keep goingKeep going0x23
Raise a levelLevel raised0x24
Lower a levelLevel lowered0x25
Music onEnjoy the music0x26
Music offMusic off0x27
Switch musicEnjoy next music0x28

Function Group 3

Lexical ItemFeedback VoiceIIC Return Data
Execute function oneExecute function one0x31
Execute function twoExecute function two0x32

Self-Learning Lexical Item

IIC Return DataFeedback VoiceFunction
0×50Enter the learning mode and learn the Xth entryLearn the entries sequentially
0×60Initialization completedDelete all learned entries
Lexical ItemFeedback VoiceIIC Return Data
Quit learningQuit learning
Learning entry one0x50
Learning entry two0x51
Learning entry three0x52
Learning entry four0x53
Learning entry five0x54
Learning entry six0x55
Learning entry seven0x56
Learning entry eight0x57
Learning entry nine0x58
Learning entry ten0x59

Quick Start

Required Materials and Diagram of Connection

The speech recognition sensor is connected to the IIC interface as shown in the figure below.

Take IOT:bit as an example

Add Software Library

Click "Advanced" in MakeCode's code drawer to see more code options.

Click "Extension" and search "https://github.com/elecfreaks/pxt-ASR" in the pop-up dialog box to download the code base for speech recognition building blocks.

Write the program as shown

Reference Program

Link: https://makecode.microbit.org/_7TLYW8WzyLka

You can also download the program directly from the following web page, and you can start running the program after the download is complete.

Result

The content of the LED display is controlled by a voice recognition sensor.

Technical File