speech_asr
2023-03-15 36e9d36997a7ed21080997d99c13ffbc5bdda279
funasr/runtime/python/onnxruntime/rapid_paraformer/utils/frontend.py
@@ -181,8 +181,9 @@
        cmvn_file=cmvn_file,
        **config['frontend_conf'],
    )
    speech, _ = frontend.fbank_online(waveform)
    feat, feat_len = frontend.lfr_cmvn(speech)
    speech, _ = frontend.fbank_online(waveform)  #1d, (sample,), numpy
    feat, feat_len = frontend.lfr_cmvn(speech) # 2d, (frame, 450), np.float32 -> torch, torch.from_numpy(), dtype, (1, frame, 450)
    frontend.reset_status() # clear cache
    return feat, feat_len