mirror of
https://github.com/espressif/esp-sr.git
synced 2025-09-15 15:28:44 +08:00
feat(wakenet):add API create_pinned_to_core to init wakenet6
This commit is contained in:
parent
332096ab79
commit
90d9e777c8
@ -27,9 +27,9 @@ add_prebuilt_library(multinet "${CMAKE_CURRENT_SOURCE_DIR}/lib/libmultinet.a" PR
|
||||
ENDIF (IDF_VER MATCHES "v4.")
|
||||
|
||||
target_link_libraries(${COMPONENT_TARGET} "-Wl,--start-group"
|
||||
wakenet
|
||||
dl_lib
|
||||
c_speech_features
|
||||
wakenet
|
||||
hilexin_wn3
|
||||
hilexin_wn4
|
||||
hilexin_wn5
|
||||
@ -49,4 +49,4 @@ target_link_libraries(${COMPONENT_TARGET} "-Wl,--start-group"
|
||||
esp_tts_chinese
|
||||
voice_set_xiaole
|
||||
voice_set_template
|
||||
esp_audio_processor "-Wl,--end-group")
|
||||
esp_audio_processor "-Wl,--end-group")
|
||||
|
||||
BIN
lib/libwakenet.a
BIN
lib/libwakenet.a
Binary file not shown.
@ -27,6 +27,17 @@ typedef struct {
|
||||
*/
|
||||
typedef model_iface_data_t* (*esp_wn_iface_op_create_t)(const model_coeff_getter_t *model_coeff, det_mode_t det_mode);
|
||||
|
||||
/**
|
||||
* @brief Function type to initialze a model instance with a detection mode and specified wake word coefficient
|
||||
*
|
||||
* Warning: Just wakeNet6 support this function to select which core to run neural network.
|
||||
*
|
||||
* @param det_mode The wake words detection mode to trigger wake words, DET_MODE_90 or DET_MODE_95
|
||||
* @param model_coeff The specified wake word model coefficient
|
||||
* @param core Core to run neural network
|
||||
* @returns Handle to the model data
|
||||
*/
|
||||
typedef model_iface_data_t* (*esp_wn_iface_op_create_pinned_to_core_t)(const model_coeff_getter_t *model_coeff, det_mode_t det_mode, int core);
|
||||
|
||||
/**
|
||||
* @brief Callback function type to fetch the amount of samples that need to be passed to the detect function
|
||||
@ -111,6 +122,7 @@ typedef void (*esp_wn_iface_op_destroy_t)(model_iface_data_t *model);
|
||||
*/
|
||||
typedef struct {
|
||||
esp_wn_iface_op_create_t create;
|
||||
esp_wn_iface_op_create_pinned_to_core_t create_pinned_to_core;
|
||||
esp_wn_iface_op_get_samp_chunksize_t get_samp_chunksize;
|
||||
esp_wn_iface_op_get_samp_rate_t get_samp_rate;
|
||||
esp_wn_iface_op_get_word_num_t get_word_num;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user