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
fix uniasr postprocess
lzr265946da830cb825ed
diff --git a/funasr/bin/asr_inference_uniasr.py b/funasr/bin/asr_inference_uniasr.pyindex ac71538a6..7961d5af3 100644--- a/funasr/bin/asr_inference_uniasr.py+++ b/funasr/bin/asr_inference_uniasr.py@@ -261,6 +261,7 @@ class Speech2Text:# Change integer-ids to tokenstoken = self.converter.ids2tokens(token_int)+ token = list(filter(lambda x: x != "<gbg>", token))if self.tokenizer is not None:text = self.tokenizer.tokens2text(token)@@ -512,7 +513,7 @@ def inference_modelscope(finish_count += 1asr_utils.print_progress(finish_count / file_count)if writer is not None:- ibest_writer["text"][key] = text+ ibest_writer["text"][key] = text_postprocessedreturn asr_result_listreturn _forwarddiff --git a/funasr/bin/asr_inference_uniasr_vad.py b/funasr/bin/asr_inference_uniasr_vad.pyindex 7cb889b7d..3164d0d24 100644--- a/funasr/bin/asr_inference_uniasr_vad.py+++ b/funasr/bin/asr_inference_uniasr_vad.py@@ -261,6 +261,7 @@ class Speech2Text:# Change integer-ids to tokenstoken = self.converter.ids2tokens(token_int)+ token = list(filter(lambda x: x != "<gbg>", token))if self.tokenizer is not None:text = self.tokenizer.tokens2text(token)@@ -512,7 +513,7 @@ def inference_modelscope(finish_count += 1asr_utils.print_progress(finish_count / file_count)if writer is not None:- ibest_writer["text"][key] = text+ ibest_writer["text"][key] = text_postprocessedreturn asr_result_listreturn _forward