Keyword Spotting in Speech on Android?

I need to use speech input to insert text. How can I identify a keyword when I speak?

Can I do this using Android Speech Input or do I need an external library? Any ideas?

thank

+2
android speech-recognition speech-to-text
Mar 02 2018-12-12T00:
source share
3 answers

The task of finding keywords is different from the task of speech recognition. While the second tries to understand the text spoken and checks all possible combinations of words, the definition of keywords usually tests two hypotheses: the word is here or the garbage is here. Its method is more effective for checking for keywords, but it requires its own algorithm. You can implement it with open source speech recognition tools such as CMUSphinx.

http://cmusphinx.sourceforge.net

What works on Android, you can check

Android Voice Command Key Listener

to learn how to integrate it.

+2
Mar 03 '12 at 17:09
source share

That's right.

See this for some code that detects a magic word.

Just run Intent with ACTION_RECOGNIZE_SPEECH and then check the results for your keyword. Testing a keyword can be tricky, but this code should get you started.

https://github.com/gmilette/Say-the-Magic-Word-

+2
02 Mar 2018-12-12T00:
source share

I used the Snowboy library for this task
Website: https://snowboy.kitt.ai
Github: https://github.com/kitt-ai/snowboy

This is a C library, but it can be included in Android code using JNI. The only drawback is that you have to train it with audio samples if you want to use a different keyword than the ones that come with the library.

+1
Mar 08 '17 at 11:08
source share



All Articles