Page 1
Page 1
Started By
Message

How to make a specific audio detector, Like "okay google" or gun shot detector. Ideas?

Posted on 7/4/20 at 6:19 pm
Posted by Kujo
225-911-5736
Member since Dec 2015
6044 posts
Posted on 7/4/20 at 6:19 pm
This may not be a Tech for the tech board, but am looking for tech wording to help me find/search for DYI electronics guides to make one.

I would like to build a device that detects a certain "audio" queue. Kinda the way Alexa or Google just sit in the background looking for the audio "Okay Google" before triggering other aspects. Similar to the way police use "gun shot" audio to alert them when shots are fired.

I want to look into how these work and see if I could build just that aspect myself. Any ideas?
Posted by Korkstand
Member since Nov 2003
29134 posts
Posted on 7/4/20 at 8:13 pm to
It depends on what type of sound(s) you are listening for. If it's a simple and specific sound like gunshots, beeps, claps, etc., then you can probably do it with a cheap microcontroller, sound sensor, and some code. If it's something more complex like spoken words, then you will probably need more powerful hardware for speech recognition and processing.

When I have ideas like this, I usually start with a search something like "arduino sound detector" or "raspberry pi sound detector". An Arduino is a microcontroller with associated circuitry, while a Raspberry Pi is a small single board computer that can do things from embedded applications up to a full desktop computer. There are thousands of sensors, motors, etc. available for both. There are numerous alternatives to both of these as well, but they are the most popular so there are many more guides available for these.

Hope this helps.



Edit: And fyi you can even run an open source Alexa/Siri/Google Assistant alternative on a Raspberry Pi, such as Mycroft.
This post was edited on 7/4/20 at 8:17 pm
Posted by Kujo
225-911-5736
Member since Dec 2015
6044 posts
Posted on 7/4/20 at 8:30 pm to
Awesome thanks.
Posted by guedeaux
Member since Jan 2008
13895 posts
Posted on 7/4/20 at 9:35 pm to
What sound do you want to be the trigger? I would think the code to detect the sound would be the hardest part. Once it detects that sound, you can use one of the many smart home controllers to make that sound a "switch" that initiates any type of action, e.g. a text message, alexa notification, google home message.

If you are just looking for a voice assistant alternative that does not track you, there are a few such as Mycroft, which was posted, Hey Ada plus Almond, and Rhasspy.
Posted by Brisketeer
Texas
Member since Aug 2013
1781 posts
Posted on 7/5/20 at 12:23 am to
You can use speech to text software to capture the key word if you go that route. There are free libraries in probably most any language you want. I know there are for .Net at least.
Posted by Kujo
225-911-5736
Member since Dec 2015
6044 posts
Posted on 7/5/20 at 2:00 am to
Industry standard beeping like a truck backing up.
Posted by dakarx
Member since Sep 2018
8721 posts
Posted on 7/5/20 at 9:17 pm to
Might want to look at RASSPY an open source voice assistant for the Pi. There are also a number of other python based projects. That might give you a jumpstart.
first pageprev pagePage 1 of 1Next pagelast page
refresh

Back to top
logoFollow TigerDroppings for LSU Football News
Follow us on X, Facebook and Instagram to get the latest updates on LSU Football and Recruiting.

Facebook•X•Instagram