Manual

Table Of Contents
Arduino Kit Demo Description 8 SeedVoiceDobot Demo
Issue V2.1 (2019-12-05) Demo Description Copyright © Yuejiang Technology Co., Ltd
25
NOTICE
Please long press the Key button on the back of base of Dobot Magician to operate
homing before debugging this Demo.
Initialization.
Program 8.2 Initialization
void setup()
{
Serial.begin(115200);
Dobot_Init();
SmartKit_Init();
SmartKit_VoiceENGStart();
Serial.println("Start...");
}
Move Dobot Magician by voice commands.
Program 8.3 Move Dobot Magician by voice commands
if(SmartKit_VoiceENGVoiceCheck(7) == TRUE)
{
Dobot_SetPTPCmd(MOVL_INC,0,0,30,0); //magician moves upward
Serial.println(voiceBuffer[6]);
}
else if(SmartKit_VoiceENGVoiceCheck(8) == TRUE)
{
Dobot_SetPTPCmd(MOVL_INC,0,0,-30,0); //magician moves downward
Serial.println(voiceBuffer[7]);
}
……
……
NOTICE
Grove speech recognizer only supports 22 voice commands without user-defined. The
commands and their return values are as shown in Program 8.4.
Program 8.4 Command description
const char *voiceBuffer[] =
{