So I am working on a project where I have to record audio timing. The timings are as follows:
- t_0 - when I trigger the microphone device to start recording
- t_1 - when the microphone starts recording
- t_2 - the time when the computer receives the audio
I am using a Pettersson ultrasound microphone. I have read that audio is recorded as amplitude and time. I want to know where the time is recorded? When I trigger the microphone or after bring processed and sent to the computer. Also, I have no clue how to find t_1 and t_2...
I have tried writing a simple python program to get the time when I trigger the microphone. And the time the audio starts recording. I'm using pygame for it. To find the latency, I'm trying to search for formulas but I'm not very successful in it.