Click here to Skip to main content
13,000,017 members (46,180 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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 0:13am
Updated 12-Apr-13 0:14am

1 solution

Rate this: bad
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.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170624.1 | Last Updated 12 Apr 2013
Copyright © CodeProject, 1999-2017
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