0

So I am working on a project where I have to record audio timing. The timings are as follows:

  1. t_0 - when I trigger the microphone device to start recording
  2. t_1 - when the microphone starts recording
  3. 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.

Scott Stensland
  • 26,870
  • 12
  • 93
  • 104
  • The time is not explicitly recorded and transmitted, the time must be derived from the signal itself. The only way you can determine the mic trigger point is by the presence of sound being received at the microphone input to the computer, unless you have an independent input of this event. This, also, holds for the time the microphone starts recording. Finally, use of pygame for timing these events, seems to be a lot of superfluous overhead. – itprorh66 Dec 20 '22 at 14:37

0 Answers0