#include <streaming_model.h>
|
| WakeWordModel (const uint8_t *model_start, float probability_cutoff, size_t sliding_window_average_size, const std::string &wake_word, size_t tensor_arena_size) |
|
void | log_model_config () override |
|
bool | determine_detected () override |
| Checks for the wake word by comparing the mean probability in the sliding window with the probability cutoff. More...
|
|
const std::string & | get_wake_word () const |
|
bool | perform_streaming_inference (const int8_t features[PREPROCESSOR_FEATURE_SIZE]) |
|
void | reset_probabilities () |
| Sets all recent_streaming_probabilities to 0. More...
|
|
bool | load_model (tflite::MicroMutableOpResolver< 20 > &op_resolver) |
| Allocates tensor and variable arenas and sets up the model interpreter. More...
|
|
void | unload_model () |
| Destroys the TFLite interpreter and frees the tensor and variable arenas' memory. More...
|
|
Definition at line 51 of file streaming_model.h.
◆ WakeWordModel()
esphome::micro_wake_word::WakeWordModel::WakeWordModel |
( |
const uint8_t * |
model_start, |
|
|
float |
probability_cutoff, |
|
|
size_t |
sliding_window_average_size, |
|
|
const std::string & |
wake_word, |
|
|
size_t |
tensor_arena_size |
|
) |
| |
◆ determine_detected()
bool esphome::micro_wake_word::WakeWordModel::determine_detected |
( |
| ) |
|
|
overridevirtual |
◆ get_wake_word()
const std::string& esphome::micro_wake_word::WakeWordModel::get_wake_word |
( |
| ) |
const |
|
inline |
◆ log_model_config()
void esphome::micro_wake_word::WakeWordModel::log_model_config |
( |
| ) |
|
|
overridevirtual |
◆ wake_word_
std::string esphome::micro_wake_word::WakeWordModel::wake_word_ |
|
protected |
The documentation for this class was generated from the following files: