Would you like to add voice to your projects? Connect up this Speech recognition module, add a few couples of lines of code, and your project will recognize what you said without requiring machine learning, specific human voice, and internet connection. Combining with a speech synthesis module, you can easily have conversations with your projects! The module uses I2C communication mode, gravity interface, and is compatible with most main controllers on the market, making it ideal for educational scenarios. It provides 3 speech recognition modes and 3 voice input methods..
Product Link(https://www.dfrobot.com.cn/goods-3011.html)
DFR0715:Gravity: I2C intelligent speech recognition module
- Add phrases to the speech recognition module, each phrase has a number.
- When the module recognizes an added phrase, it returns the corresponding number.
To use this library, please download the library file first, and paste it into the \Arduino\libraries directory, then open the examples folder and run the demo in the folder.
/**
* @fn begin
* @brief Init function
* @param mode Speech recognition mode
* @param miMode Mic mode
* @return Returning 0 indicates init succeeded, non-zero indicates init failed, return error code.
*/
int begin(eMode_t mode = LOOP,eMicrophoneMode_t miMode = MIC);
/**
* @fn start
* @brief The speech recognition module starts to recognize.
*/
void start();
/**
* @fn addCommand
* @brief Add phrases to the module
* @param words Character strings of the phrases
* @param idNum The id number of the phrase
* @return Boolean type, the setting result
* @retval Adding phrases succeeded
* @retval Adding phrases failed
*/
bool addCommand( char *words, char idNum);
/**
* @fn setI2CAddr
* @brief Set module i2c address (take effect after powering on again)
* @param addr i2c address to be set (0-127)
*/
void setI2CAddr(uint8_t addr);
/**
* @fn read
* @brief Read the recognized phrase
* @return Return the id number for the phrase
*/
int read();
MCU | Work Well | Work Wrong | Untested | Remarks |
---|---|---|---|---|
Arduino Uno | √ | |||
FireBeetle-ESP8266 | √ | |||
FireBeetle-ESP32 | √ | |||
Arduino MEGA2560 | √ | |||
Arduino Leonardo | √ | |||
Micro:bit | √ | |||
FireBeetle-M0 | √ | |||
Raspberry Pi | √ |
- 2019/8/25 - Version 1.0.0 released.
Written by fengli(li.feng@dfrobot.com), 2019.8.25 (Welcome to our website)