sherpa-onnx C API 1.0
Public C API and C++ wrapper for sherpa-onnx
Loading...
Searching...
No Matches
SherpaOnnxSpokenLanguageIdentificationConfig Struct Reference

Configuration for spoken language identification. More...

#include <c-api.h>

+ Collaboration diagram for SherpaOnnxSpokenLanguageIdentificationConfig:

Public Attributes

SherpaOnnxSpokenLanguageIdentificationWhisperConfig whisper
 
int32_t num_threads
 
int32_t debug
 
const char * provider
 

Detailed Description

The current implementation uses Whisper-based models.

Example using sherpa-onnx-whisper-tiny:

memset(&config, 0, sizeof(config));
config.whisper.encoder = "./sherpa-onnx-whisper-tiny/tiny-encoder.int8.onnx";
config.whisper.decoder = "./sherpa-onnx-whisper-tiny/tiny-decoder.int8.onnx";
config.num_threads = 1;
config.provider = "cpu";
Configuration for spoken language identification.
Definition c-api.h:2924
SherpaOnnxSpokenLanguageIdentificationWhisperConfig whisper
Definition c-api.h:2926

Definition at line 2924 of file c-api.h.

Member Data Documentation

◆ debug

int32_t SherpaOnnxSpokenLanguageIdentificationConfig::debug

Non-zero to print debug information.

Definition at line 2930 of file c-api.h.

◆ num_threads

int32_t SherpaOnnxSpokenLanguageIdentificationConfig::num_threads

Number of inference threads.

Definition at line 2928 of file c-api.h.

◆ provider

const char* SherpaOnnxSpokenLanguageIdentificationConfig::provider

Execution provider such as "cpu".

Definition at line 2932 of file c-api.h.

◆ whisper

SherpaOnnxSpokenLanguageIdentificationWhisperConfig SherpaOnnxSpokenLanguageIdentificationConfig::whisper

Whisper model configuration.

Definition at line 2926 of file c-api.h.


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