private void onStopRecognizing() {
        recognizing = false;
        btnRecognize.setText(R.string.start_recognition);
        btnRecognize.setEnabled(true);
    }
Fragment with visualization of speech recognition.
app/src/main/java/com/cleveroad/example/SpeechRecognitionFragment.java