sherpa-onnx C API 1.0
Public C API and C++ wrapper for sherpa-onnx
Loading...
Searching...
No Matches
sherpa_onnx::cxx::SpokenLanguageIdentification Class Reference

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.
 
MoveOnlyoperator= (const MoveOnly &)=delete
 
MoveOnlyoperator= (MoveOnly &&other)
 
const SherpaOnnxSpokenLanguageIdentificationGet () const
 Return the wrapped raw pointer without transferring ownership.
 
const SherpaOnnxSpokenLanguageIdentificationRelease ()
 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 SherpaOnnxSpokenLanguageIdentificationp_
 

Detailed Description

Definition at line 1777 of file cxx-api.h.

Member Function Documentation

◆ Compute()

SpokenLanguageIdentificationResult sherpa_onnx::cxx::SpokenLanguageIdentification::Compute ( const OfflineStream s) const

◆ Create()

static SpokenLanguageIdentification sherpa_onnx::cxx::SpokenLanguageIdentification::Create ( const SpokenLanguageIdentificationConfig config)
static

◆ CreateStream()

OfflineStream sherpa_onnx::cxx::SpokenLanguageIdentification::CreateStream ( ) const

◆ Destroy()

void sherpa_onnx::cxx::SpokenLanguageIdentification::Destroy ( const SherpaOnnxSpokenLanguageIdentification p) const

The documentation for this class was generated from the following file: