Skip to content

Commit a674665

Browse files
author
LittleMouse
committed
[update] kws supported custom 'hi m5' keywords
1 parent e96fcf4 commit a674665

File tree

6 files changed

+386
-919
lines changed

6 files changed

+386
-919
lines changed

projects/llm_framework/main_kws/SConstruct

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,14 @@ LDFLAGS+=['-Wl,-rpath=/opt/m5stack/lib', '-Wl,-rpath=/usr/local/m5stack/lib', '-
2323
LINK_SEARCH_PATH += [ADir('../static_lib')]
2424

2525
INCLUDE += [ADir('../static_lib/include/sherpa'),
26+
ADir('../static_lib/include/sherpa/fbank'),
2627
ADir('../static_lib/include/sherpa/sherpa-onnx'),
2728
ADir('../static_lib/include/sherpa/sherpa-onnx/onnxruntime-src'),
2829
ADir('../static_lib/include/sherpa/sherpa-onnx/openfst-src')
2930
]
3031

3132
LINK_SEARCH_PATH += [ADir('../static_lib/sherpa/onnx')]
32-
REQUIREMENTS += ['onnxruntime', 'cargs']
33+
REQUIREMENTS += ['onnxruntime']
3334

3435
LDFLAGS += ['-l:libsherpa-onnx-core.a', '-l:libkaldi-native-fbank-core.a','-l:libkissfft-float.a',
3536
'-l:libkaldi-decoder-core.a', '-l:libssentencepiece_core.a']

projects/llm_framework/main_kws_new/mode_kws.json renamed to projects/llm_framework/main_kws/mode_kws.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
],
1616
"mode_param": {
1717
"model": "kws.onnx",
18+
"model_type": "onnx",
1819
"wake_wav_file": "/opt/m5stack/data/audio/wakeup_zh_cn.wav",
1920
"chunk_size": 32,
2021
"threshold": 0.9,

0 commit comments

Comments
 (0)