代码:https://github.com/k2-fsa/sherpa-onnx/blob/master/python-api-examples/keyword-spotter.py
模型下载:https://k2-fsa.github.io/sherpa/onnx/kws/pretrained_models/index.html
安装:
pip install sherpa-onnx>=1.9.11
1、自定义唤醒词
参考:https://k2-fsa.github.io/sherpa/onnx/kws/pretrained_models/index.html
需要先编辑keywords_raw.txt文件,里面按规则自定义: