Sounddevice in python, time vector of input and output signal synchronized
In Python, with sounddevice, I am trying to simultaneously play on an output and record on an input, then to plot the signals on top of each other in a way to represent what is happening in the real world.
I’m using the Stream class and currently my callback function looks like this: