Skip to main content

ASR(Automatic Speech Recognition) Module

Introduction

It is able to control the device via your voice such as to give commands of moving forward, reversing and starting the line-tracking mode etc.

ELECFREAKS PlanetX PIR Sensor

Characteristics

Designed with RJ11 ports and easy to plug.

Specification

ItemParameter
ConnectionRJ11
Connection TypeIIC
Working Voltage3.3V
Core ICSNR3512M

Outlook and Dimension

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 ItemIIC Return Data
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 to Start

Materials required and connections diagram

Connect the ASR module to the IIC port and the motor fan to J1 port on Nezha expansion board.

MakeCode Programming

Step 1

Click "Advanced" in the drawer of the MakeCode to see more choices.

We need to add a package for programming. Click "Extensions" in the bottom of the drawer and search with "PlanetX" in the dialogue box to download it.

Note: If you met a tip indicating that the codebase will be deleted due to incompatibility, you may continue as the tips say or build a new project in the menu.

Available Commands of ASR Module

Step 2

Code as below

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

You may also download it directly below:

Result

The motor fan is controlled by the ASR module.

Relevant File

Technique File