From d14ed197560bd8148ab63f21778be835ea56acaa Mon Sep 17 00:00:00 2001 From: xysun Date: Sat, 6 May 2023 10:33:05 +0800 Subject: [PATCH] Update change log --- CHANGELOG.md | 5 +++-- include/esp32s3/esp_mn_iface.h | 7 ++++++- src/include/esp_mn_speech_commands.h | 5 +---- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index da313c6..1ce8132 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,8 +6,9 @@ If you can not map model partition successfully, please check the left free stor ## unreleased - Bugfix: remove all cxx11:string -- Bugfix: remove esp-partition require for esp32s2 & esp32c3 on idf v4.4 -- Add more loader option for multinet to blance CPU and memory consumption +- Bugfix: remove esp-partition for esp32s2 & esp32c3 on idf v4.4 +- Add more loader option for multinet to blance CPU and memory consumption (doing) +- Update multinet API to add/modify/check new commands in the code ## 1.3.0 - Update the partition APIs to keep compatible with both IDF v4.4 and IDF v5.0 diff --git a/include/esp32s3/esp_mn_iface.h b/include/esp32s3/esp_mn_iface.h index fc76e89..faccea1 100644 --- a/include/esp32s3/esp_mn_iface.h +++ b/include/esp32s3/esp_mn_iface.h @@ -188,7 +188,12 @@ typedef esp_mn_error_t* (*esp_wn_iface_op_set_speech_commands)(model_iface_data_ */ typedef void (*esp_mn_iface_op_print_active_speech_commands)(model_iface_data_t *model_data); - +/** + * @brief Check if input string can be tokenized + * + * @param model_data The model object to query + * @param str The input string +*/ typedef int (*esp_mn_iface_op_check_speech_command)(model_iface_data_t *model_data, char *str); typedef struct { diff --git a/src/include/esp_mn_speech_commands.h b/src/include/esp_mn_speech_commands.h index 3c0ae78..ba99c55 100644 --- a/src/include/esp_mn_speech_commands.h +++ b/src/include/esp_mn_speech_commands.h @@ -109,10 +109,7 @@ esp_mn_phrase_t *esp_mn_commands_get_from_string(const char *string); * * @Warning: Must be used after [add/remove/modify/clear] function, * otherwise the language model of multinet can not be updated. - * - * @param multinet The multinet handle - * @param model_data The model object to query - * + * * @return * - NULL Success * - others The list of error phrase which can not be parsed by multinet.