SO I want to get the following times:-
- t_0 = the time at which the microphone is triggered by the python code
- t_1 = the time at which the microphone starts recording
- t_2 = the time at which the system/computer recieves the audio from the microphone
I am doing all of this to get the exact latency.
Till now I have the following-
sounddevice to get the triggered time t_0
record_voice = sounddevice.rec(int( durations * samp ) , samplerate = samp , channels = 2 )
Thinking of using
usbrply
for t_1 but have no clue on how to.I want to use the callback function from
https://python-sounddevice.readthedocs.io/en/0.4.5/usage.html#recording
to get the time t_2 but I don't know how to get the time from it.
Can anyone help me with this?