arduino-esp32/libraries/TFLiteMicro/examples/micro_speech
Me No Dev 1da0ca88e8
Add TFLite Micro examples (#8717)
* create TFLite library

* add TFLite hello_world example

* add TFLite micro_speech example

---------

Co-authored-by: Sanket Wadekar <67091512+sanketwadekar@users.noreply.github.com>
2023-10-06 13:50:53 +03:00
..
audio_provider.cpp Add TFLite Micro examples (#8717) 2023-10-06 13:50:53 +03:00
audio_provider.h Add TFLite Micro examples (#8717) 2023-10-06 13:50:53 +03:00
command_responder.cpp Add TFLite Micro examples (#8717) 2023-10-06 13:50:53 +03:00
command_responder.h Add TFLite Micro examples (#8717) 2023-10-06 13:50:53 +03:00
feature_provider.cpp Add TFLite Micro examples (#8717) 2023-10-06 13:50:53 +03:00
feature_provider.h Add TFLite Micro examples (#8717) 2023-10-06 13:50:53 +03:00
micro_features_generator.cpp Add TFLite Micro examples (#8717) 2023-10-06 13:50:53 +03:00
micro_features_generator.h Add TFLite Micro examples (#8717) 2023-10-06 13:50:53 +03:00
micro_model_settings.cpp Add TFLite Micro examples (#8717) 2023-10-06 13:50:53 +03:00
micro_model_settings.h Add TFLite Micro examples (#8717) 2023-10-06 13:50:53 +03:00
micro_speech.ino Add TFLite Micro examples (#8717) 2023-10-06 13:50:53 +03:00
model.cpp Add TFLite Micro examples (#8717) 2023-10-06 13:50:53 +03:00
model.h Add TFLite Micro examples (#8717) 2023-10-06 13:50:53 +03:00
README.md Add TFLite Micro examples (#8717) 2023-10-06 13:50:53 +03:00
recognize_commands.cpp Add TFLite Micro examples (#8717) 2023-10-06 13:50:53 +03:00
recognize_commands.h Add TFLite Micro examples (#8717) 2023-10-06 13:50:53 +03:00
ringbuf.c Add TFLite Micro examples (#8717) 2023-10-06 13:50:53 +03:00
ringbuf.h Add TFLite Micro examples (#8717) 2023-10-06 13:50:53 +03:00

Micro Speech Example

This example shows how to run a 20 kB model that can recognize 2 keywords, "yes" and "no", from speech data.

The application listens to its surroundings with a microphone and indicates when it has detected a word by displaying data on a screen.

Deploy to ESP32

The sample has been tested on ESP-IDF version release/v4.2 and release/v4.4 with the following devices:

Sample output

  • When a keyword is detected you will see following output sample output on the log screen:
Heard yes (<score>) at <time>