Recognize any sound in android speech recognition

Viewed 37

I would like to use android's speechRecognizer to recognize sounds, which are not just words but any syllables (for example a baby saying "ba"/"ma").

This seems to be possible in python using the speech_recognition module, but I can't find a way to do so in java.

The code skeleton I have so far is as follows:

final Intent speechRecognizerIntent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);

speechRecognizerIntent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);
speechRecognizerIntent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, Locale.getDefault());

speechRecognizer.startListening(speechRecognizerIntent);

0 Answers
Related