Module 'torch' has no attribute 'hann_window' when importing torchaudio

I have installed torchaudio on top of pytorch 0.3.1 for python3.5.
But When I try to import torchaudioI get the following error:

AttributeError: module ‘torch’ has no attribute ‘hann_window’

Please help.

Pytorch 0.3.1 does not have the audio related functions. You should install 0.4, that has those required functions :slight_smile: