Skip to content

Open-source speech recognition toolkit for training, inference, streaming ASR, VAD, punctuation, speaker diarization pipelines, and OpenAI-compatible/MCP serving.

onnxruntime

游雁5106a08d78c1
diff --git a/funasr/export/export_model.py b/funasr/export/export_model.py
index 972f92f24..3c73152be 100644
--- a/funasr/export/export_model.py
+++ b/funasr/export/export_model.py
@@ -86,9 +86,9 @@ class ASRModelExportParaformer:
with open(json_file, 'r') as f:
config_data = json.load(f)
mode = config_data['model']['model_config']['mode']
- if mode == 'paraformer':
+ if mode.startswith('paraformer'):
from funasr.tasks.asr import ASRTaskParaformer as ASRTask
- elif mode == 'uniasr':
+ elif mode.startswith('uniasr'):
from funasr.tasks.asr import ASRTaskUniASR as ASRTask
model, asr_train_args = ASRTask.build_model_from_file(