Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# time audio
I have a C# project that takes multiple (2 at the moment) microphones as an audio devices, detects sound from them, processes their audio frames with Fourier Transform and displays them. It also prints them in three colors: red is for microphone that has stronger input, green is for microphone that has weaker input and grey is for frames that arent strong enough to be of any interest.
 
Next step of my project is to calculate the time difference of sound samples that arrive at each microphone. For example if i speak directly to one microphone and the other is 3 feet away, the difference should be about 3 ms (assuming sound speed at 1feet/ms). This is of course just an example.
 
Can anyone help me with this? I've made my project based on this: Sound visualizer in C#
Posted 12-Apr-13 1:13am
Edited 12-Apr-13 1:14am
v2

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Roughly speaking, I would first normalize the amplitude of the two graphs and then time-translate one of them until best superposition is reached.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 195
1 Afzaal Ahmad Zeeshan 132
2 ProgramFOX 130
3 Maciej Los 115
4 Sergey Alexandrovich Kryukov 75
0 OriginalGriff 6,564
1 Sergey Alexandrovich Kryukov 6,048
2 DamithSL 5,228
3 Manas Bhardwaj 4,657
4 Maciej Los 4,150


Advertise | Privacy | Mobile
Web01 | 2.8.1411022.1 | Last Updated 12 Apr 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100