2023-02-19 19:36:03 +08:00
|
|
|
// sherpa-onnx/python/csrc/sherpa-onnx.cc
|
|
|
|
|
//
|
|
|
|
|
// Copyright (c) 2023 Xiaomi Corporation
|
|
|
|
|
|
|
|
|
|
#include "sherpa-onnx/python/csrc/sherpa-onnx.h"
|
|
|
|
|
|
2023-09-17 14:54:38 +08:00
|
|
|
#include "sherpa-onnx/python/csrc/circular-buffer.h"
|
2023-03-03 12:10:59 +08:00
|
|
|
#include "sherpa-onnx/python/csrc/display.h"
|
2023-02-22 15:35:55 +08:00
|
|
|
#include "sherpa-onnx/python/csrc/endpoint.h"
|
2023-02-19 19:36:03 +08:00
|
|
|
#include "sherpa-onnx/python/csrc/features.h"
|
2023-10-08 11:32:39 +08:00
|
|
|
#include "sherpa-onnx/python/csrc/offline-ctc-fst-decoder-config.h"
|
2023-04-23 17:15:18 +08:00
|
|
|
#include "sherpa-onnx/python/csrc/offline-lm-config.h"
|
2023-04-02 13:17:43 +08:00
|
|
|
#include "sherpa-onnx/python/csrc/offline-model-config.h"
|
|
|
|
|
#include "sherpa-onnx/python/csrc/offline-recognizer.h"
|
|
|
|
|
#include "sherpa-onnx/python/csrc/offline-stream.h"
|
2023-10-14 14:21:53 +08:00
|
|
|
#include "sherpa-onnx/python/csrc/offline-tts.h"
|
2023-05-05 21:23:54 +08:00
|
|
|
#include "sherpa-onnx/python/csrc/online-lm-config.h"
|
2023-08-09 20:27:31 +08:00
|
|
|
#include "sherpa-onnx/python/csrc/online-model-config.h"
|
2023-04-07 23:11:34 +08:00
|
|
|
#include "sherpa-onnx/python/csrc/online-recognizer.h"
|
|
|
|
|
#include "sherpa-onnx/python/csrc/online-stream.h"
|
2023-09-17 14:54:38 +08:00
|
|
|
#include "sherpa-onnx/python/csrc/vad-model-config.h"
|
|
|
|
|
#include "sherpa-onnx/python/csrc/vad-model.h"
|
|
|
|
|
#include "sherpa-onnx/python/csrc/voice-activity-detector.h"
|
2023-04-02 13:17:43 +08:00
|
|
|
|
2023-02-19 19:36:03 +08:00
|
|
|
namespace sherpa_onnx {
|
|
|
|
|
|
|
|
|
|
PYBIND11_MODULE(_sherpa_onnx, m) {
|
|
|
|
|
m.doc() = "pybind11 binding of sherpa-onnx";
|
2023-04-02 13:17:43 +08:00
|
|
|
|
2023-02-19 19:36:03 +08:00
|
|
|
PybindFeatures(&m);
|
2023-08-09 20:27:31 +08:00
|
|
|
PybindOnlineModelConfig(&m);
|
2023-05-05 21:23:54 +08:00
|
|
|
PybindOnlineLMConfig(&m);
|
2023-02-19 19:36:03 +08:00
|
|
|
PybindOnlineStream(&m);
|
2023-02-22 15:35:55 +08:00
|
|
|
PybindEndpoint(&m);
|
2023-02-19 19:36:03 +08:00
|
|
|
PybindOnlineRecognizer(&m);
|
2023-03-03 12:10:59 +08:00
|
|
|
|
|
|
|
|
PybindDisplay(&m);
|
2023-04-02 13:17:43 +08:00
|
|
|
|
|
|
|
|
PybindOfflineStream(&m);
|
2023-04-23 17:15:18 +08:00
|
|
|
PybindOfflineLMConfig(&m);
|
2023-04-02 13:17:43 +08:00
|
|
|
PybindOfflineModelConfig(&m);
|
2023-10-08 11:32:39 +08:00
|
|
|
PybindOfflineCtcFstDecoderConfig(&m);
|
2023-04-02 13:17:43 +08:00
|
|
|
PybindOfflineRecognizer(&m);
|
2023-09-17 14:54:38 +08:00
|
|
|
|
|
|
|
|
PybindVadModelConfig(&m);
|
|
|
|
|
PybindVadModel(&m);
|
|
|
|
|
PybindCircularBuffer(&m);
|
|
|
|
|
PybindVoiceActivityDetector(&m);
|
2023-10-14 14:21:53 +08:00
|
|
|
|
|
|
|
|
PybindOfflineTts(&m);
|
2023-02-19 19:36:03 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} // namespace sherpa_onnx
|