@Override
            public void onResults(Bundle results) {
                super.onResults(results);
                onStopRecognizing();
            }
Fragment with visualization of speech recognition.
app/src/main/java/com/cleveroad/example/SpeechRecognitionFragment.java