Have you tried with sockets to grab few seconds of data like pyaudio example ?
This example was for julia 0.6, but it may still work: How to read from socket in non-blocking mode - #6 by Keno
Instead of while !eof(socket)
You can use size of received data…