Code example for SpeechRecognizer

Methods: destroy

0
	 */ 
	public void stopVoiceRecognition() 
	{ 
		speechTimeout.cancel();
		if (speech != null) {
			speech.destroy();
 
			speech = null;
		} 
		 
		buttonChangeState(0); 
	} 
 
	/* RecognitionListener interface implementation */ 
	 
	@Override 
	public void onReadyForSpeech(Bundle params) {
		Log.d(TAG,"onReadyForSpeech");
		// create and schedule the input speech timeout 
		speechTimeout = new Timer();
		speechTimeout.schedule(new SilenceTimer(), 3000);