Jump to content
Electronics-Lab.com Community

[RTL8722CSM/RTL8722DM] TensorFlow Lite - Micro Speech


Recommended Posts

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.

3-1.jpg


Download the Ameba customized version of TensorFlow Lite for Microcontrollers library at ambd_arduino/Arduino_zip_libraries at master · ambiot/ambd_arduino.
Follow the instructions at Arduino - Libraries to install it.
Ensure that the patch files found at ambd_arduino/Ameba_misc at master · ambiot/ambd_arduino are also installed.
Open the example, “Files” -> “Examples” -> “TensorFlowLite_Ameba” -> “micro_speech”.

3-2.jpg


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:

3-3.jpg


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: TensorFlow Lite for Microcontrollers
Join in the community discussions at:

Ameba IoT Forum[RTL8722/RTL8195/RTL8710/...]

Realtek Ameba IOT Developers Forum (RTL8722, RTL8195, RTL8710, RTL8720, BW16 Development board) - IOT / MCU Solutions 瑞昱開發者論壇 開發板 开發者论坛 开發板

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

Buy Ameba Boards – Realtek IoT/Wi-Fi MCU Solutions

Link to comment
Share on other sites


Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
  • Create New...