Skip to content

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

rtf benchmark

游雁602fe75a1f0a
diff --git a/funasr/runtime/python/utils/test_rtf.sh b/funasr/runtime/python/utils/test_rtf.sh
index 74b5c0610..dcce6c4f6 100644
--- a/funasr/runtime/python/utils/test_rtf.sh
+++ b/funasr/runtime/python/utils/test_rtf.sh
@@ -19,14 +19,14 @@ mkdir -p ${logs_outputs_dir}
echo ${logs_outputs_dir}
-if [ $stage == 0 ];then
+if [ ${stage} -le 0 ];then
python -m funasr.export.export_model --model-name ${model_name} --export-dir ${export_root} --type ${backend} --quantize ${quantize} --audio_in ${scp}
fi
-if [ $stage -ge 1 ];then
+if [ ${stage} -le 1 ];then
model_dir=${export_root}/${model_name}
split_scps=""