Code example for SpeechRecognizer

Methods: cancel

0
    public void convert(String toFile) throws IOException {
		new AACToM4A().convert(context, aacFile, toFile);
    } 
 
    public void cancel() { 
    	sr.cancel();
    } 
 
    public void destroy() { 
    	sr.setRecognitionListener(null);
    	sr.destroy();
    } 
 
    // --- RecognitionListener methods --- // 
 
    private ByteArrayOutputStream baos = new ByteArrayOutputStream();
 
    @Override 
    public void onBeginningOfSpeech() { 
    } 
Stop searching for code, let great code find you!  Add Codota to your java IDE