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
add file flush
speech_asrcced441e5fe0
diff --git a/funasr/utils/wav_utils.py b/funasr/utils/wav_utils.pyindex c86c7d2e8..8325ad399 100644--- a/funasr/utils/wav_utils.py+++ b/funasr/utils/wav_utils.py@@ -204,6 +204,7 @@ def calc_shape_core(root_path, frontend_conf, speech_length_min, speech_length_mwrite_flag = Falseif write_flag:f.write("{} {},{}\n".format(sample_name, str(int(np.ceil(n_frames))), str(int(feature_dim))))+ f.flush()def calc_shape(data_dir, dataset, frontend_conf, speech_length_min=-1, speech_length_max=-1, nj=32):