Add Python API for keyword spotting (#576)
* Add alsa & microphone support for keyword spotting * Add python wrapper
This commit is contained in:
16
sherpa-onnx/python/csrc/keyword-spotter.h
Normal file
16
sherpa-onnx/python/csrc/keyword-spotter.h
Normal file
@@ -0,0 +1,16 @@
|
||||
// sherpa-onnx/python/csrc/keyword-spotter.h
|
||||
//
|
||||
// Copyright (c) 2024 Xiaomi Corporation
|
||||
|
||||
#ifndef SHERPA_ONNX_PYTHON_CSRC_KEYWORD_SPOTTER_H_
|
||||
#define SHERPA_ONNX_PYTHON_CSRC_KEYWORD_SPOTTER_H_
|
||||
|
||||
#include "sherpa-onnx/python/csrc/sherpa-onnx.h"
|
||||
|
||||
namespace sherpa_onnx {
|
||||
|
||||
void PybindKeywordSpotter(py::module *m);
|
||||
|
||||
}
|
||||
|
||||
#endif // SHERPA_ONNX_PYTHON_CSRC_KEYWORD_SPOTTER_H_
|
||||
Reference in New Issue
Block a user