Skip to content

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

Remove unused imports (#3731)

Jingguo Yao2d4566d4a4c8
diff --git a/funasr/auto/auto_frontend.py b/funasr/auto/auto_frontend.py
index ed7ba0444..2a1aa125b 100644
--- a/funasr/auto/auto_frontend.py
+++ b/funasr/auto/auto_frontend.py
@@ -20,7 +20,6 @@ from funasr.download.file import download_from_url
from funasr.auto.auto_model import prepare_data_iterator
from funasr.utils.timestamp_tools import timestamp_sentence
from funasr.download.download_model_from_hub import download_model
-from funasr.utils.vad_utils import slice_padding_audio_samples
from funasr.train_utils.set_all_random_seed import set_all_random_seed
from funasr.train_utils.load_pretrained_model import load_pretrained_model
from funasr.utils.load_utils import load_audio_text_image_video, extract_fbank
diff --git a/funasr/models/fun_asr_nano/inference_vllm_pipeline.py b/funasr/models/fun_asr_nano/inference_vllm_pipeline.py
index 468e10e7d..591c4da79 100644
--- a/funasr/models/fun_asr_nano/inference_vllm_pipeline.py
+++ b/funasr/models/fun_asr_nano/inference_vllm_pipeline.py
@@ -163,7 +163,6 @@ class FunASRNanoVLLMPipeline:
def _process_one(self, audio_path, **kwargs):
"""Process a single audio file through the full pipeline."""
from funasr.utils.load_utils import load_audio_text_image_video
- from funasr.utils.vad_utils import slice_padding_audio_samples
key = os.path.splitext(os.path.basename(audio_path))[0]