YuanGongND / ast

Code for the Interspeech 2021 paper "AST: Audio Spectrogram Transformer".
BSD 3-Clause "New" or "Revised" License
1.17k stars 221 forks source link

How to convert fbank tensor back to waveform? #105

Open ebagdasa opened 1 year ago

ebagdasa commented 1 year ago

Thanks a lot for the code!

I want to convert the tensor that I get from the dataset back to waveform so I can play it. I am looking at code here: https://github.com/YuanGongND/ast/blob/31088be8a3f6ef96416145c4b8d43c81f99eba7a/src/dataloader.py#L98 but struggle to understand how to convert the fbank object back to waveform. Thanks!