Open-source speech recognition toolkit for training, inference, streaming ASR, VAD, punctuation, speaker diarization pipelines, and OpenAI-compatible/MCP serving.
Python asraudiochineseemotion-recognitionfunasrmcp-servermultilingual-asropenai-compatible-apiparaformerpunctuationpytorchreal-time-asrspeaker-diarizationspeech-recognitionspeech-to-textstreaming-asrtranscriptionvllmvoice-activity-detectionwhisper-alternative
infer.sh
游雁ffdc7ac460a4
diff --git a/egs_modelscope/asr/TEMPLATE/infer.sh b/egs_modelscope/asr/TEMPLATE/infer.shindex 134a8adce..cbbe5e67f 100644--- a/egs_modelscope/asr/TEMPLATE/infer.sh+++ b/egs_modelscope/asr/TEMPLATE/infer.sh@@ -36,7 +36,7 @@ for JOB in $(seq ${nj}); dodoneperl utils/split_scp.pl ${data_dir}/wav.scp ${split_scps}-if ${checkpoint_dir}; then+if -n ${checkpoint_dir}; thenpython utils/prepare_checkpoint.py ${model} ${checkpoint_dir} ${checkpoint_name}model=${checkpoint_dir}/${model}fidiff --git a/egs_modelscope/vad/TEMPLATE/infer.sh b/egs_modelscope/vad/TEMPLATE/infer.shindex 261b5e66b..8252fea76 100644--- a/egs_modelscope/vad/TEMPLATE/infer.sh+++ b/egs_modelscope/vad/TEMPLATE/infer.sh@@ -36,7 +36,7 @@ for JOB in $(seq ${nj}); dodoneperl utils/split_scp.pl ${data_dir}/wav.scp ${split_scps}-if ${checkpoint_dir}; then+if -n ${checkpoint_dir}; thenpython utils/prepare_checkpoint.py ${model} ${checkpoint_dir} ${checkpoint_name}model=${checkpoint_dir}/${model}fi