speech_asr
2023-02-09 cced441e5fe032730e8080cc08800e76fd90f029
add file flush
1个文件已修改
1 ■■■■ 已修改文件
funasr/utils/wav_utils.py 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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):