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 ()
 Destroy the wrapped handle if present.
MoveOnly & operator= (const MoveOnly &)=delete
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_

Detailed Description

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

Member Function Documentation

◆ Compute()

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

◆ Create()

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: