|
sherpa-onnx C API 1.0
Public C API and C++ wrapper for sherpa-onnx
|
Model configuration shared by streaming ASR recognizers. More...
#include <c-api.h>
Collaboration diagram for SherpaOnnxOnlineModelConfig:Public Attributes | |
| SherpaOnnxOnlineTransducerModelConfig | transducer |
| SherpaOnnxOnlineParaformerModelConfig | paraformer |
| SherpaOnnxOnlineZipformer2CtcModelConfig | zipformer2_ctc |
| const char * | tokens |
| int32_t | num_threads |
| const char * | provider |
| int32_t | debug |
| const char * | model_type |
| const char * | modeling_unit |
| const char * | bpe_vocab |
| const char * | tokens_buf |
| int32_t | tokens_buf_size |
| SherpaOnnxOnlineNemoCtcModelConfig | nemo_ctc |
| SherpaOnnxOnlineToneCtcModelConfig | t_one_ctc |
Zero-initialize this struct before use, then fill in the sub-config for the model family you want to use together with the shared fields such as tokens, provider, and num_threads.
Exactly one model family should be configured for each recognizer. For example, set only one of transducer, paraformer, zipformer2_ctc, nemo_ctc, or t_one_ctc.
If multiple model families are configured at the same time, the implementation will choose one of them, and which one is used is implementation-defined. Do not rely on any precedence rule.
| const char* SherpaOnnxOnlineModelConfig::bpe_vocab |
| int32_t SherpaOnnxOnlineModelConfig::debug |
| const char* SherpaOnnxOnlineModelConfig::model_type |
| const char* SherpaOnnxOnlineModelConfig::modeling_unit |
| SherpaOnnxOnlineNemoCtcModelConfig SherpaOnnxOnlineModelConfig::nemo_ctc |
| int32_t SherpaOnnxOnlineModelConfig::num_threads |
| SherpaOnnxOnlineParaformerModelConfig SherpaOnnxOnlineModelConfig::paraformer |
| const char* SherpaOnnxOnlineModelConfig::provider |
| SherpaOnnxOnlineToneCtcModelConfig SherpaOnnxOnlineModelConfig::t_one_ctc |
| const char* SherpaOnnxOnlineModelConfig::tokens |
| const char* SherpaOnnxOnlineModelConfig::tokens_buf |
| int32_t SherpaOnnxOnlineModelConfig::tokens_buf_size |
| SherpaOnnxOnlineTransducerModelConfig SherpaOnnxOnlineModelConfig::transducer |
| SherpaOnnxOnlineZipformer2CtcModelConfig SherpaOnnxOnlineModelConfig::zipformer2_ctc |