Support streaming zipformer CTC (#496)
* Support streaming zipformer CTC * test online zipformer2 CTC * Update doc of sherpa-onnx.cc * Add Python APIs for streaming zipformer2 ctc * Add Python API examples for streaming zipformer2 ctc * Swift API for streaming zipformer2 CTC * NodeJS API for streaming zipformer2 CTC * Kotlin API for streaming zipformer2 CTC * Golang API for streaming zipformer2 CTC * C# API for streaming zipformer2 CTC * Release v1.9.6
This commit is contained in:
@@ -66,9 +66,17 @@ SHERPA_ONNX_API typedef struct SherpaOnnxOnlineParaformerModelConfig {
|
||||
const char *decoder;
|
||||
} SherpaOnnxOnlineParaformerModelConfig;
|
||||
|
||||
SHERPA_ONNX_API typedef struct SherpaOnnxModelConfig {
|
||||
// Please visit
|
||||
// https://k2-fsa.github.io/sherpa/onnx/pretrained_models/online-ctc/zipformer-ctc-models.html#
|
||||
// to download pre-trained streaming zipformer2 ctc models
|
||||
SHERPA_ONNX_API typedef struct SherpaOnnxOnlineZipformer2CtcModelConfig {
|
||||
const char *model;
|
||||
} SherpaOnnxOnlineZipformer2CtcModelConfig;
|
||||
|
||||
SHERPA_ONNX_API typedef struct SherpaOnnxOnlineModelConfig {
|
||||
SherpaOnnxOnlineTransducerModelConfig transducer;
|
||||
SherpaOnnxOnlineParaformerModelConfig paraformer;
|
||||
SherpaOnnxOnlineZipformer2CtcModelConfig zipformer2_ctc;
|
||||
const char *tokens;
|
||||
int32_t num_threads;
|
||||
const char *provider;
|
||||
|
||||
Reference in New Issue
Block a user