Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Q] Audio decode, recognize a keyword

OP walid_m

18th March 2014, 03:46 PM   |  #1  
OP Member
Thanks Meter: 2
 
48 posts
Join Date:Joined: Jan 2014
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.
18th March 2014, 11:25 PM   |  #2  
marwan.kallal's Avatar
Junior Member
Thanks Meter: 2
 
11 posts
Join Date:Joined: 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: [ View ]
19th March 2014, 05:19 PM   |  #3  
OP Member
Thanks Meter: 2
 
48 posts
Join Date:Joined: Jan 2014
Quote:
Originally Posted by marwan.kallal

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
20th March 2014, 05:20 PM   |  #4  
Sanjay's Avatar
Senior Member
Flag Bangalore
Thanks Meter: 392
 
1,079 posts
Join Date:Joined: Aug 2012
Donate to Me
More
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
23rd March 2014, 09:18 PM   |  #5  
Senior Member
Flag Waterloo
Thanks Meter: 213
 
163 posts
Join Date:Joined: Mar 2012
More
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)
Post Reply Subscribe to Thread

Tags
audio, keyword, signal, speech
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes