I'm trying to perform a real time sound analysis. Currently I'm able to get real time streaming of the spectrum but when I try to plot the spectrogram it introduces a delay of about 4 seconds even if I try to reduce calculations.
I would like to know if there is a way to perform a faster plot of the spectrogram (as for plotting data, updating axes rather than update plot).
At the moment I'm using an input buffer with 1024 samples:
Spectrogram(audio, 256, round(256/2), 256, 1800)
I tried to reduce the window size and NFFT
but the result is always the same.