|
sherpa-onnx C API 1.0
Public C API and C++ wrapper for sherpa-onnx
|
RAII wrapper for spoken language identification. More...
#include <cxx-api.h>
Inheritance diagram for sherpa_onnx::cxx::SpokenLanguageIdentification:
Collaboration diagram for sherpa_onnx::cxx::SpokenLanguageIdentification:Public Member Functions | |
| void | Destroy (const SherpaOnnxSpokenLanguageIdentification *p) const |
| Destroy the wrapped C handle. | |
| OfflineStream | CreateStream () const |
| Create an offline stream for identification. | |
| SpokenLanguageIdentificationResult | Compute (const OfflineStream *s) const |
| Run spoken language identification on a stream. | |
Public Member Functions inherited from sherpa_onnx::cxx::MoveOnly< SpokenLanguageIdentification, SherpaOnnxSpokenLanguageIdentification > | |
| MoveOnly ()=default | |
| Construct an empty wrapper. | |
| MoveOnly (const SherpaOnnxSpokenLanguageIdentification *p) | |
| Construct a wrapper from a raw C handle. | |
| MoveOnly (const MoveOnly &)=delete | |
| MoveOnly (MoveOnly &&other) | |
| ~MoveOnly () | |
| Destroy the wrapped handle if present. | |
| MoveOnly & | operator= (const MoveOnly &)=delete |
| MoveOnly & | operator= (MoveOnly &&other) |
| const SherpaOnnxSpokenLanguageIdentification * | Get () const |
| Return the wrapped raw pointer without transferring ownership. | |
| const SherpaOnnxSpokenLanguageIdentification * | Release () |
| Release ownership of the wrapped raw pointer. | |
Static Public Member Functions | |
| static SpokenLanguageIdentification | Create (const SpokenLanguageIdentificationConfig &config) |
| Create a spoken language identifier. | |
Additional Inherited Members | |
Protected Attributes inherited from sherpa_onnx::cxx::MoveOnly< SpokenLanguageIdentification, SherpaOnnxSpokenLanguageIdentification > | |
| const SherpaOnnxSpokenLanguageIdentification * | p_ |
| SpokenLanguageIdentificationResult sherpa_onnx::cxx::SpokenLanguageIdentification::Compute | ( | const OfflineStream * | s | ) | const |
|
static |
| OfflineStream sherpa_onnx::cxx::SpokenLanguageIdentification::CreateStream | ( | ) | const |
| void sherpa_onnx::cxx::SpokenLanguageIdentification::Destroy | ( | const SherpaOnnxSpokenLanguageIdentification * | p | ) | const |