mirror of
https://github.com/espressif/esp-sr.git
synced 2025-09-15 15:28:44 +08:00
feat(MN): Add the API of getting phrase ID if command word is detected
This commit is contained in:
parent
4333d49daf
commit
a289a0c70c
@ -80,6 +80,14 @@ typedef int (*esp_mn_iface_op_get_samp_rate_t)(model_iface_data_t *model);
|
||||
*/
|
||||
typedef int (*esp_mn_iface_op_detect_t)(model_iface_data_t *model, int16_t *samples);
|
||||
|
||||
/**
|
||||
* @brief Get the phrase if command word is detected
|
||||
*
|
||||
* @param model The model object to query.
|
||||
*
|
||||
* @return The phrase id, return the phrase if command word is detected.
|
||||
*/
|
||||
typedef int (*esp_mn_iface_op_get_det_phrase_id_t)(model_iface_data_t *model);
|
||||
|
||||
/**
|
||||
* @brief Destroy a speech commands recognition model
|
||||
@ -103,6 +111,7 @@ typedef struct {
|
||||
esp_mn_iface_op_set_det_threshold_t set_det_threshold;
|
||||
esp_mn_iface_op_set_command_det_threshold_t set_command_det_threshold;
|
||||
esp_mn_iface_op_get_command_det_threshold_t get_command_det_threshold;
|
||||
esp_mn_iface_op_get_det_phrase_id_t get_det_phrase_id;
|
||||
esp_mn_iface_op_detect_t detect;
|
||||
esp_mn_iface_op_destroy_t destroy;
|
||||
esp_mn_iface_op_reset_t reset;
|
||||
|
||||
Binary file not shown.
@ -1 +1 @@
|
||||
2a4b651c5cf88d88066f4eec3fc2d9f38b158988
|
||||
8fff2d659765a86c9095e967aca8d5c10f06d1a4
|
||||
Loading…
Reference in New Issue
Block a user