Support CED models (#792)
This commit is contained in:
@@ -1223,6 +1223,7 @@ const SherpaOnnxAudioTagging *SherpaOnnxCreateAudioTagging(
|
||||
const SherpaOnnxAudioTaggingConfig *config) {
|
||||
sherpa_onnx::AudioTaggingConfig ac;
|
||||
ac.model.zipformer.model = SHERPA_ONNX_OR(config->model.zipformer.model, "");
|
||||
ac.model.ced = SHERPA_ONNX_OR(config->model.ced, "");
|
||||
ac.model.num_threads = SHERPA_ONNX_OR(config->model.num_threads, 1);
|
||||
ac.model.debug = config->model.debug;
|
||||
ac.model.provider = SHERPA_ONNX_OR(config->model.provider, "cpu");
|
||||
|
||||
@@ -1100,6 +1100,7 @@ SHERPA_ONNX_API typedef struct
|
||||
|
||||
SHERPA_ONNX_API typedef struct SherpaOnnxAudioTaggingModelConfig {
|
||||
SherpaOnnxOfflineZipformerAudioTaggingModelConfig zipformer;
|
||||
const char *ced;
|
||||
int32_t num_threads;
|
||||
int32_t debug; // true to print debug information of the model
|
||||
const char *provider;
|
||||
|
||||
Reference in New Issue
Block a user