@Override
    public void onDestroyView() {
        audioVisualization.release();
        super.onDestroyView();
    }
Fragment with visualization of speech recognition.
app/src/main/java/com/cleveroad/example/SpeechRecognitionFragment.java