feat: Add Jarvis and Computer wakenet trained by TTS samples

This commit is contained in:
xysun 2023-11-27 14:28:48 +08:00
parent a3e00ed3e6
commit 2e7e10514f
9 changed files with 17 additions and 20 deletions

View File

@ -7,6 +7,7 @@ If you can not map model partition successfully, please check the left free stor
## unreleased
- Add Chinese MultiNet7 models
- Add first Noise Suppression model: nsnet1
- Add wakenet model trained by TTS samples: Jarvis and Computer
## 1.5.1
- Reduce Internal RAM of multinet7

View File

@ -107,6 +107,14 @@ choice SR_WN_MODEL_LOAD
config SR_WN_WN9_NIHAOXIAOZHI
bool "nihaoxiaozhi (wn9_nihaoxiaozhi)"
depends on IDF_TARGET_ESP32S3
config SR_WN_WN9_JARVIS_TTS
bool "jarvis (wn9_jarvis_tts)"
depends on IDF_TARGET_ESP32S3
config SR_WN_WN9_COMPUTER_TTS
bool "computer (wn9_computer_tts)"
depends on IDF_TARGET_ESP32S3
config SR_WN_WN9_CUSTOMWORD
bool "customized word (wn9_customword)"

View File

@ -51,26 +51,10 @@ def copy_wakenet_from_sdkconfig(model_path, sdkconfig_path, target_path):
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_JARVIS_TTS" in models_string:
models.append('wn9_jarvis_tts')
if "CONFIG_SR_WN_WN9_COMPUTER_TTS" in models_string:
models.append('wn9_computer_tts')
if "CONFIG_SR_WN_WN9_CUSTOMWORD" in models_string:
models.append('wn9_customword')

View File

@ -0,0 +1,2 @@
# (neural network type)_(model data version)_(lable1_detection windown length_threshold for 90%_threshold for 95%)_(lable2 ...)_...
wakenet9l_tts1h8_computer_3_0.648_0.650

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,2 @@
# (neural network type)_(model data version)_(lable1_detection windown length_threshold for 90%_threshold for 95%)_(lable2 ...)_...
wakenet9l_tts1h8_jarvis_3_0.627_0.632

Binary file not shown.

Binary file not shown.