Welcome to IoTForums.com Community
Register now to participate in discussions, ask questions and share your knowledge on internet of things and automation! Feel free to sign up today.
Register Now

[RTL8722CSM/RTL8722DM] TensorFlow Lite - Micro Speech

RealCrab

Just Hatched
May 12, 2021
6
0
1
Singapore
Materials
• Ameba D [RTL8722 CSM/DM] x 1
• Adafruit PDM MEMS microphone
• LED x 4
Example
Procedure
Connect the microphone and LEDs to the RTL8722 board following the diagram.

Download the Ameba customized version of TensorFlow Lite for Microcontrollers library at
Please, Log in or Register to view URLs content!
.
Follow the instructions at
Please, Log in or Register to view URLs content!
to install it.
Ensure that the patch files found at
Please, Log in or Register to view URLs content!
are also installed.
Open the example, “Files” -> “Examples” -> “TensorFlowLite_Ameba” -> “micro_speech”.

Upload the code and press the reset button on Ameba once the upload is finished.
Once it is running, you should see one of the LEDs flashing, indicating that it is processing audio. Saying the word “yes” will cause the green LED to light up. Saying the word “no” will cause the red LED to light up. If the word is not recognized, the blue LED will to light up.
The inference results are also output to the Arduino serial monitor, which appear as follows:

If you are having trouble in getting the words recognized, here are some tips:
– Ensure that your surroundings are quiet with minimal noise.
– Experiment with varying the distance of the microphone, starting with it at an arm’s length.
– Experiment with different tones and volume when saying the words.
– Depending on how you pronounce the words, the characteristics of the microphone used, getting one keyword recognized may be easier than the other.
Code Reference
More information on TensorFlow Lite for Microcontrollers can be found at:
Please, Log in or Register to view URLs content!

Join in the community discussions at:

Please, Log in or Register to view URLs content!


Please, Log in or Register to view URLs content!


Purchase links for the various Realtek development boards can be found at:

Please, Log in or Register to view URLs content!
 

Log in

or Log in using