Add Python binding for online punctuation models (#1312)

This commit is contained in:
Lim Yao Chong
2024-09-09 10:26:53 +08:00
committed by GitHub
parent 857cb5075c
commit 3bffc24d64
8 changed files with 133 additions and 0 deletions

View File

@@ -20,6 +20,7 @@
#include "sherpa-onnx/python/csrc/online-ctc-fst-decoder-config.h"
#include "sherpa-onnx/python/csrc/online-lm-config.h"
#include "sherpa-onnx/python/csrc/online-model-config.h"
#include "sherpa-onnx/python/csrc/online-punctuation.h"
#include "sherpa-onnx/python/csrc/online-recognizer.h"
#include "sherpa-onnx/python/csrc/online-stream.h"
#include "sherpa-onnx/python/csrc/speaker-embedding-extractor.h"
@@ -42,6 +43,7 @@ PYBIND11_MODULE(_sherpa_onnx, m) {
PybindWaveWriter(&m);
PybindAudioTagging(&m);
PybindOfflinePunctuation(&m);
PybindOnlinePunctuation(&m);
PybindFeatures(&m);
PybindOnlineCtcFstDecoderConfig(&m);