Android SpeechRecognizer Enable Formatting / Punctuation

113 Views Asked by At

Has anybody tried to implement the automatic text formatting (punctuation) of recognitation results from Android SpeechRecognizer? It is decribed here.

According to the documentation it should be activated via putExtra:

recognizerIntent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
recognizerIntent.putExtra(RecognizerIntent.EXTRA_ENABLE_FORMATTING, true);

The documentation says: "Depending on the recognizer implementation, this value may have no effect."

But how to get the effect of formatting? With this basic approach of "putExtra" it doesnt work for me. I have tested it in several apps but I dont get any formatted result.

Thank you!

0

There are 0 best solutions below