Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,730,629 Members 41,325 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Audio decode, recognize a keyword

Tip us?
 
walid_m
Old
#1  
Member - OP
Thanks Meter 2
Posts: 41
Join Date: Jan 2014
Default [Q] Audio decode, recognize a keyword

Hello,

Constantly-on speech recognition listening for just one keyword.
I am trying to do is making my app constantly listen for one keyword that will fire an intent whenever the keyword is recognized.
I know that this will use a lot of battery. and I don't want to use google's speech recognition.
For example - you are talking with a person. Normal conversation. The phone is actively listening and recognizing every single said word and listening for the keyword.
Let's say the keyword is "cheese" in this instance.
Whenever you say "cheese," the application fires an intent that starts up another part of the app.

I tried to record myself saying "cheese" into wav file
And then comparing it to every word that was spoken..

my problem is finding the right tool that can help me perform this signal comparison in the simplest way so it can work on any device..
tried musicg library with fingerprint function but it does not work so well..
tried some other fft/cross-corelation/ect.. functions but I didn't get the result I expected..

any help (examples or some library would be best) that you can give me will be very appreciated ..


Thanks.
 
marwan.kallal
Old
#2  
marwan.kallal's Avatar
Junior Member
Thanks Meter 2
Posts: 11
Join Date: Mar 2014
It looks like Java has its own speech recognition API (basic info about it here: http://en.wikipedia.org/wiki/Java_Speech_API).

I also found the official FAQ with instructions on how to download and use it etc. http://www.oracle.com/technetwork/ja...aq-135248.html


Hopefully, it's pretty high quality and works well. Good luck!
The Following User Says Thank You to marwan.kallal For This Useful Post: [ Click to Expand ]
 
walid_m
Old
#3  
Member - OP
Thanks Meter 2
Posts: 41
Join Date: Jan 2014
Quote:
Originally Posted by marwan.kallal View Post
It looks like Java has its own speech recognition API (basic info about it here: http://en.wikipedia.org/wiki/Java_Speech_API).

I also found the official FAQ with instructions on how to download and use it etc. http://www.oracle.com/technetwork/ja...aq-135248.html


Hopefully, it's pretty high quality and works well. Good luck!


Thank you!!! I'll try it
 
Sanjay
Old
#4  
Sanjay's Avatar
Senior Member
Thanks Meter 390
Posts: 1,079
Join Date: Aug 2012
Location: Bangalore

 
DONATE TO ME
Wow fantastic question,how about refering the sourse codes of google voice?So u can know what they have done....:thumbup:

.........................................
visit www.fb.com/softcrush

To add the users banner of Gladiator Rom copy the below and paste in sign URL..
PHP Code:
http://oi39.tinypic.com/20jsjme.jpg 
My Secrets
 
alobo
Old
#5  
Senior Member
Thanks Meter 210
Posts: 162
Join Date: Mar 2012
Location: Waterloo
Just FYI, speech recognition is some complex stuff. I believe that Google uses some really advanced techniques such as deep neural networks for their speech recognition.

Here are some links if anyone's interested:
Wired Article
Google Research (Theory Based)
Hit thanks if I helped!

My Work:

OA Digital
Tags
audio, keyword, signal, speech
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes