background image

  /** 
   * @brief get light Mode 
   * @return Mode  
   *    LIGHT_MODE_OFF   0x00 
   *    BUTTON_MODE_OFF  0x01 

   */ 
  uint8_t getButtonMode(void); 

  /** 
   * @brief get voice number 
   * @return number  
   *    VOICE_NUMBER_0   0x00 
   *    VOICE_NUMBER_1   0x01 
   *    VOICE_NUMBER_2   0x02 
   *    VOICE_NUMBER_3   0x03 
   *    VOICE_NUMBER_4   0x04 
   *    VOICE_NUMBER_5   0x05 
   *    VOICE_NUMBER_6   0x06 
   *    VOICE_NUMBER_7   0x07 
   *    VOICE_NUMBER_8   0x08 
   *    VOICE_NUMBER_9   0x09 
   */ 
  uint8_t getVoiceNumber(void); 

  /** 
   * @brief get voice state 
   * @return state 0 is Current position has audio 1 is empty 
   */ 
  uint8_t getVoiceState(void); 

  /** 
   * @brief get time reamaining 
   * @return The time range is 0-100 
   */ 
  uint8_t getTimeRemaining(void); 

Summary of Contents for DFR0699

Page 1: ...playback function users can directly press the onboard button to record or use a controller with Gravity I2C interface to control it The module can store 10 segments of 100s audio and comes with built...

Page 2: ...o bit mPython Firebeetle ESP32 Recording Function Can store up to 10 segments of 100s audio Speech Synthesis Synthesis 999999999 999999999 to 999999999 999999999 Electrical Performance Operating Volta...

Page 3: ...ecording at the current number Red Is recording Green Is playing Flashing in red Is deleting 3 Digital Tube Display Selected recording number Remaining available recording time in recording 4 Toggle S...

Page 4: ...n 1 Connect the Gravity 4P I2C interface to the main control board I2C interface If you don t need I2C control leave the blue and green wires unconnected Red 3 3 5V Black GND Blue I2C SCL Green I2C SD...

Page 5: ...Playback 1 Flip the switch up and down to select the number with recording For the number with a recording the LED shows yellow 2 Short press the toggle switch the LED will turn green and start playin...

Page 6: ...ch power on at this time 2 When the LED light is white it means entering the I2C address setting mode 3 The number displayed by the digital tube is the low bit of the I2C address such as 2 means the s...

Page 7: ...while voicerecorder begin 0 Serial println i2c device number error delay 1000 Serial println i2c connect success Serial println Delect Voice 0 voicerecorder setVoiceNumber VOICE_NUMBER_0 Serial printl...

Page 8: ...Serial println n delay 1000 voicerecorder recordVoiceEnd Serial println Recode End void loop Playback Recording sample code function 1 Start looping from recording 0 2 Skip if there is no recording...

Page 9: ...i2c device number error delay 1000 Serial println i2c connect success void loop for uint8_t voiceNum 0 voiceNum 10 voiceNum voicerecorder setVoiceNumber voiceNum Set number Serial println setVoiceNum...

Page 10: ..._SYNTHESIS_MODE Input 123 987 Output negative one hundred twenty three nine eight seven Can be used to directly read sensor data measurement parameters etc The valid range of this mode is 9 integers a...

Page 11: ...characters non numeric characters are automatically skipped and an error will be reported if the character string is too long VOICE_SYNTHESIS_MODE Example Read the input value of A0 output the origina...

Page 12: ...p Serial begin 115200 while voicerecorder begin 0 Serial println i2c device number error delay 1000 Serial println i2c connect success void loop AnalogRaw0 analogRead A0 AnalogVolt0 5 0 AnalogRaw0 102...

Page 13: ...ring AnalogVolt0 2 voicerecorder VoiceSynthesis CHINESE_LANGUAGE String AnalogVolt0 2 VOICE_SYNTHESIS_MODE while voicerecorder getNowState VOICE_NONE delay 3000 VOICE_REPLACE_MODE Example Read the Fib...

Page 14: ...0 1 void setup Serial begin 115200 while voicerecorder begin 0 Serial println i2c device number error delay 1000 Serial println i2c connect success void loop Serial println String a 2 voicerecorder Vo...

Page 15: ...Click the link to download the Mind software http mindplus cc download en html About how to program on Mind please refer to https mindplus dfrobot com microbit https mindplus dfrobot com microbit Ard...

Page 16: ...E_OFF 0x01 void setButtonMode uint8_t mode brief Set light mode param LIGHT_MODE_OFF 0x00 param LIGHT_MODE_ON 0x01 void setLightMode uint8_t mode brief set voice number param VOICE_NUMBER_0 0x00 param...

Page 17: ...et number success uint8_t setVoiceNumber uint8_t number brief get i2c device address return i2c device address uint8_t getI2CAddress brief get now state return state VOICE_SYNTHESISING is speech synth...

Page 18: ...VOICE_NUMBER_2 0x02 VOICE_NUMBER_3 0x03 VOICE_NUMBER_4 0x04 VOICE_NUMBER_5 0x05 VOICE_NUMBER_6 0x06 VOICE_NUMBER_7 0x07 VOICE_NUMBER_8 0x08 VOICE_NUMBER_9 0x09 uint8_t getVoiceNumber void brief get vo...

Page 19: ...playVoiceStart void brief delete voice return VOICE_SUCCESS is delete success VOICE_BUSY is repeat recording or playback VOICE_NONE is no songs in the current numbe uint8_t deleteVoice void brief End...

Page 20: ...sis param language is CHINESE_LANGUAGE 0x01 ENGLISH_LANGUAGE 0x02 param string is Input string the scope is determined by the pattern param mode is VOICE_SYNTHESIS_MODE range 999999999 999999999 to 99...

Reviews: