title: How to mute the beep sound for SpeechRecognizer?
body: <p>This has been asked before, but no one seemed to have a solution: <a href="https://stackoverflow.com/questions/24579197/muting-speechrecognizers-beep-sound">Muting SpeechRecognizer&#39;s beep sound</a></p>
  
  <p>Nevertheless, I still would like to know if anyone knows how to mute the beeping sound for SpeechRecognizer?</p>
  
  <p>I create speechRecognizer object: <em>private SpeechRecognizer sr = SpeechRecognizer.createSpeechRecognizer(this);</em></p>
  
  <p>And then in my class I instantiate the speechRecognizer like this</p>
  
  <pre><code>sr.setRecognitionListener(new listener());
  Intent i = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
  i.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,
          RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);             
  i.putExtra(RecognizerIntent.EXTRA_CALLING_PACKAGE, getApplication()
          .getClass().getName());
  i.putExtra(RecognizerIntent.EXTRA_MAX_RESULTS, 6);
  i.putExtra(RecognizerIntent.EXTRA_PROMPT, "");
  i.putExtra(RecognizerIntent.EXTRA_SPEECH_INPUT_MINIMUM_LENGTH_MILLIS, 7000);
  sr.startListening(i);
  </code></pre>
  
  <p>Anyone with any good ideas? I researched that I could create an object of AudioManager (<em>AudioManager mAudioManager</em>) and then using setStreamSolo(), I could mute the sound. But I am not sure how to implement this. I added it to my instantiation code for speechRecognizer and nothing happened. Is this something I should call from my main class?</p>
  
  <pre><code>mAudioManager.setStreamSolo(AudioManager.STREAM_VOICE_CALL, true);
  </code></pre>
  
  <p>Thank you in advance.</p>