improved memory efficiency of melspectrogram