Torchaudio onlinje streaming

Is there a way how to do online audio streaming with torch audio?
I would like to get chunks of audio recorded from my microphone and calculate stft on the fly on the received chunks. Librosa has similar functionality but I was wondering if anything like this is also possible with torchaudio?