Time stamp information in Audacity
Posted: Thu Nov 11, 2010 7:02 am
Dear all
I'm a newbie to Audacity and have a problem in audio synchronization. My project is using distributed PCs/laptops deployed in a certain area to detect the sound's arrival time and triangulate its origin. To do this all PCs/laptops (I would call sensor nodes) must be synchronized (around 0.1 millisecond is fine). I have a clock server to synchronize all sensors using NTP. Every sensor has Audacity software installed and ready to use. I have a script broadcast to every sensor node to order Audacity to record, stop and export files into a server (basically a command 'R' and 'S'). However, when I tested the system by placing all sensor nodes closed to each other, there's a time shift among files recorded from different sensor nodes. I suspect that even though the CPU clock are synchronized, the time each sensor takes to process the command 'R' and 'S' are different. My idea is to edit the Audacity source code by, after receiving 'R', saving the time stamp in each sensor before the sound is sampled and saved in the memory and export this time together with the wave file to the server. Can anybody suggest me how to do this? or where in the source code that I should check it? Also, any other ideas to synchronize recording audio files are welcome
.
I use m-Audio sound card. The sensors that I use are 2 Fujitsu laptops and 2 PCs with Intel Core2Duo.
Audacity 1.2.6
Cheers and thanks a lot
-Jim
I'm a newbie to Audacity and have a problem in audio synchronization. My project is using distributed PCs/laptops deployed in a certain area to detect the sound's arrival time and triangulate its origin. To do this all PCs/laptops (I would call sensor nodes) must be synchronized (around 0.1 millisecond is fine). I have a clock server to synchronize all sensors using NTP. Every sensor has Audacity software installed and ready to use. I have a script broadcast to every sensor node to order Audacity to record, stop and export files into a server (basically a command 'R' and 'S'). However, when I tested the system by placing all sensor nodes closed to each other, there's a time shift among files recorded from different sensor nodes. I suspect that even though the CPU clock are synchronized, the time each sensor takes to process the command 'R' and 'S' are different. My idea is to edit the Audacity source code by, after receiving 'R', saving the time stamp in each sensor before the sound is sampled and saved in the memory and export this time together with the wave file to the server. Can anybody suggest me how to do this? or where in the source code that I should check it? Also, any other ideas to synchronize recording audio files are welcome
I use m-Audio sound card. The sensors that I use are 2 Fujitsu laptops and 2 PCs with Intel Core2Duo.
Audacity 1.2.6
Cheers and thanks a lot
-Jim