FileDocCategorySizeDatePackage
IRecognitionListener.javaAPI DocAndroid 5.1 API10925Sat Mar 14 05:48:08 GMT 2015android.speech

IRecognitionListener

public interface IRecognitionListener implements android.os.IInterface
Listener for speech recognition events, used with RecognitionService. This gives you both the final recognition results, as well as various intermediate events that can be used to show visual feedback to the user. {@hide}

Fields Summary
Constructors Summary
Methods Summary
public voidonBeginningOfSpeech()
The user has started to speak.

public voidonBufferReceived(byte[] buffer)
More sound has been received.

param
buffer the byte buffer containing a sequence of 16-bit shorts.

public voidonEndOfSpeech()
Called after the user stops speaking.

public voidonError(int error)
A network or recognition error occurred.

param
error code is defined in {@link SpeechRecognizer}

public voidonEvent(int eventType, android.os.Bundle params)
Reserved for adding future events.

param
eventType the type of the occurred event
param
params a Bundle containing the passed parameters

public voidonPartialResults(android.os.Bundle results)
Called when recognition partial results are ready.

param
results a Bundle containing the current most likely result.

public voidonReadyForSpeech(android.os.Bundle params)
Called when the endpointer is ready for the user to start speaking.

param
params parameters set by the recognition service. Reserved for future use.

public voidonResults(android.os.Bundle results)
Called when recognition results are ready.

param
results a Bundle containing the most likely results (N-best list).

public voidonRmsChanged(float rmsdB)
The sound level in the audio stream has changed.

param
rmsdB the new RMS dB value