By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,946 Members | 712 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,946 IT Pros & Developers. It's quick & easy.

Live audio peak detection from microphone

P: 1

I'm a new programmer and I'm looking for some help.

Here is my problem. I need to detect peaks in a live audio from a pickup microphone and output the exact time to milliseconds or preferably nanoseconds of the peak in a .txt file.

I have been looking at two possible solutions. The first one was to set up a shell script in linux to record audio increments of 5 seconds via the nohup function and then analyze them in matlab, but the problem here is that the endings and the beginnings of the recorded files are not exactly 5 seconds apart. There is a delay of 50-150 milliseconds when a new file starts recording.

The second option was to do something similar to what they use for clap light switches, but I have no idea how I would extract the exact time from that. And I also don't know if that would work with a pickup microphone or does it just work with a sound sensor (for Arduino...) like it is shown here.

I want to know if there is a better solution out there. Can I do this in C++ or java, perhaps? Remember, I need to output the exact time in milli- or nanoseconds.

Thank you guys, much help is appreciated.
Jan 18 '16 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.