Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • $\begingroup$ Thanks for this very thorough answer. It was helpful in several ways already. I'm willing to accept, though still working through stuff. I added some additional info to my question in response to this answer. Not sure if you have thoughts. Thank you! $\endgroup$ Commented May 25, 2021 at 15:06
  • $\begingroup$ Oh... wow. I wonder if that "stuff" leading up to the beginning of the main signal is an audio compression artifact... That would explain so much. $\endgroup$ Commented May 25, 2021 at 16:42
  • $\begingroup$ @John Good that was of some use. I've added a few more notes to my original answer. $\endgroup$ Commented May 27, 2021 at 5:12
  • $\begingroup$ Thanks again! The use case here is measuring distance. Unfortunately, there is unavoidable, randomly varying delay in the audio stack - there's no way to know when sound arrives, even if clocks were synced. So I have both devices play a sound and record. The difference between A hearing A and B hearing A is clock offset + time of flight, the difference between A hearing B and B hearing B is clock offset - ToF. Two equations, two variables, solve for time of flight. I've seen this be highly accurate in certain conditions, so I know the math is right, but echos and reverb often kill it. $\endgroup$ Commented May 27, 2021 at 12:30
  • $\begingroup$ Went ahead and accepted this answer. It didn't magically solve all my problems, but it DID give me a ton of helpful information that's moved my project forward. Thank you. Also, thank you for your kindness in responding helpfully to this question. On many SE sites, I'm afraid this question would have been met with lots of downvoting and complaints that it was "too vague" or "didn't have one right answer." Thanks for the assistance and the warm welcome to somebody who's new to Signal Processing SE! $\endgroup$ Commented Jun 1, 2021 at 12:40