From d1a3a7ad90ce9deb7fb4940970bca0abb9409181 Mon Sep 17 00:00:00 2001
From: Lizerui9926 <110582652+Lizerui9926@users.noreply.github.com>
Date: 星期四, 09 二月 2023 20:44:30 +0800
Subject: [PATCH] Merge pull request #89 from alibaba-damo-academy/dev_lzr

---
 funasr/utils/wav_utils.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/funasr/utils/wav_utils.py b/funasr/utils/wav_utils.py
index c86c7d2..8325ad3 100644
--- a/funasr/utils/wav_utils.py
+++ b/funasr/utils/wav_utils.py
@@ -204,6 +204,7 @@
                 write_flag = False
             if 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):

--
Gitblit v1.9.1