mirror of
https://github.com/espressif/esp-sr.git
synced 2025-09-15 15:28:44 +08:00
add hi M Five model
This commit is contained in:
parent
360ecdbcc9
commit
37a7293607
@ -4,6 +4,12 @@
|
||||
- Available storage is less than the remaining flash space on IDF v5.0.
|
||||
If you can not map model partition successfully, please check the left free storage by `spi_flash_mmap_get_free_pages(ESP_PARTITION_MMAP_DATA)` or update IDF to v5.1 or later.
|
||||
|
||||
## unrelease
|
||||
- Add esp32c6 tts lib
|
||||
- Return the volume of wake word audio when one wake word is detected
|
||||
- Reduce MultiNet6 SRAM size from 48KB to 32 KB
|
||||
- Add "Hi M Five" wake word model from M5Stack
|
||||
|
||||
## 1.4.2
|
||||
- Reset timeout trigger of multinet6 when a new speech command is detected
|
||||
- Allocate all beams from PSRAM
|
||||
|
||||
@ -80,6 +80,10 @@ choice SR_WN_MODEL_LOAD
|
||||
config SR_WN_WN9_HIESP
|
||||
bool "Hi,ESP (wn9_hiesp)"
|
||||
depends on IDF_TARGET_ESP32S3
|
||||
|
||||
config SR_WN_WN9_HIMFIVE
|
||||
bool "Hi,M Five (wn9_himfive)"
|
||||
depends on IDF_TARGET_ESP32S3
|
||||
|
||||
config SR_WN_WN9_NIHAOXIAOZHI
|
||||
bool "nihaoxiaozhi (wn9_nihaoxiaozhi)"
|
||||
|
||||
@ -8,10 +8,4 @@ files:
|
||||
exclude:
|
||||
- ".github"
|
||||
- "docs/**/*"
|
||||
- "test_apps/**/*"
|
||||
targets:
|
||||
- esp32
|
||||
- esp32s2
|
||||
- esp32s3
|
||||
- esp32c3
|
||||
- esp32c6
|
||||
- "test_apps/**/*"
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -47,6 +47,28 @@ def copy_wakenet_from_sdkconfig(model_path, sdkconfig_path, target_path):
|
||||
models.append('wn9_alexa')
|
||||
if "CONFIG_SR_WN_WN9_HIESP" in models_string:
|
||||
models.append('wn9_hiesp')
|
||||
if "CONFIG_SR_WN_WN9_HIMFIVE" in models_string:
|
||||
models.append('wn9_himfive')
|
||||
if "CONFIG_SR_WN_WN9_NIHAOXIAOZHI" in models_string:
|
||||
models.append('wn9_nihaoxiaozhi')
|
||||
if "CONFIG_SR_WN_WN9_CUSTOMWORD" in models_string:
|
||||
models.append('wn9_customword')
|
||||
|
||||
for item in models:
|
||||
shutil.copytree(model_path + '/wakenet_model/' + item, target_path+'/'+item)
|
||||
|
||||
def copy_multinet_from_sdkconfig(model_path, sdkconfig_path, target_path):
|
||||
"""
|
||||
Copy multinet model from model_path to target_path based on sdkconfig
|
||||
"""
|
||||
with io.open(sdkconfig_path, "r") as f:
|
||||
models_string = ''
|
||||
for label in f:
|
||||
label = label.strip("\n")
|
||||
if 'CONFIG_SR_MN' in label and label[0] != '#':
|
||||
models_string += label
|
||||
|
||||
models = []
|
||||
if "CONFIG_SR_WN_WN9_NIHAOXIAOZHI" in models_string:
|
||||
models.append('wn9_nihaoxiaozhi')
|
||||
if "CONFIG_SR_WN_WN9_CUSTOMWORD" in models_string:
|
||||
|
||||
2
model/wakenet_model/wn9_himfive/_MODEL_INFO_
Normal file
2
model/wakenet_model/wn9_himfive/_MODEL_INFO_
Normal file
@ -0,0 +1,2 @@
|
||||
# (neural network type)_(model data version)_(lable1_detection windown length_threshold for 90%_threshold for 95%)_(lable2 ...)_...
|
||||
wakenet9l_v2h8_himfive_3_0.640_0.645
|
||||
BIN
model/wakenet_model/wn9_himfive/wn9_data
Normal file
BIN
model/wakenet_model/wn9_himfive/wn9_data
Normal file
Binary file not shown.
BIN
model/wakenet_model/wn9_himfive/wn9_index
Normal file
BIN
model/wakenet_model/wn9_himfive/wn9_index
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user