Skip to content

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

update

嘉渊8f50a4cc490b
diff --git a/egs/aishell/paraformer/conf/train_asr_paraformer_conformer_12e_6d_2048_256.yaml b/egs/aishell/paraformer/conf/train_asr_paraformer_conformer_12e_6d_2048_256.yaml
index 34c6fb319..24b26206a 100644
--- a/egs/aishell/paraformer/conf/train_asr_paraformer_conformer_12e_6d_2048_256.yaml
+++ b/egs/aishell/paraformer/conf/train_asr_paraformer_conformer_12e_6d_2048_256.yaml
@@ -1,6 +1,4 @@
# network architecture
-# task related
-task_name: asr
# encoder related
encoder: conformer
encoder_conf:
diff --git a/egs/aishell/paraformer/run.sh b/egs/aishell/paraformer/run.sh
index ed6ddfe7c..b6ef733a3 100755
--- a/egs/aishell/paraformer/run.sh
+++ b/egs/aishell/paraformer/run.sh
@@ -162,6 +162,7 @@ if [ ${stage} -le 3 ] && [ ${stop_stage} -ge 3 ]; then
local_rank=$i
gpu_id=$(echo $CUDA_VISIBLE_DEVICES | cut -d',' -f$[$i+1])
train.py \
+ --task_name asr \
--gpu_id $gpu_id \
--use_preprocessor true \
--token_type char \
diff --git a/funasr/build_utils/build_args.py b/funasr/build_utils/build_args.py
index 7c86acdb6..b19030dae 100644
--- a/funasr/build_utils/build_args.py
+++ b/funasr/build_utils/build_args.py
@@ -88,5 +88,5 @@ def build_args(args, parser, extra_task_params):
if not any(action.dest == a.dest for a in task_parser._actions):
task_parser._add_action(action)
- task_args = parser.parse_args(extra_task_params)
+ task_args = task_parser.parse_args(extra_task_params)
return task_args