I am currently processing speech signals while recording simultaneously. More specifically:
Record every 0.1s speech repeatedly.
Process
Try to find something in the matrix you get on using getaudiodata()
That must have some arrangement depending on time. (It should have some distribution of values according to time because plot()
plots the sound signal wrt time axis)
Iterate through the matrix according to that arrangement and call the process() function.
This way you can record the sound at once and then process for every 0.1 secs one by one by iterating.