0

SO I want to get the following times:-

  1. t_0 = the time at which the microphone is triggered by the python code
  2. t_1 = the time at which the microphone starts recording
  3. 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-

  1. sounddevice to get the triggered time t_0

    record_voice = sounddevice.rec(int( durations * samp ) , samplerate = samp , channels = 2 )
    
  2. Thinking of using usbrply for t_1 but have no clue on how to.

  3. 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?

shafee
  • 15,566
  • 3
  • 19
  • 47

0 Answers0