IRecognitionServicepublic interface IRecognitionService implements android.os.IInterfaceA Service interface to speech recognition. Call startListening when
you want to begin capturing audio; RecognitionService will automatically
determine when the user has finished speaking, stream the audio to the
recognition servers, and notify you when results are ready. In most of the cases,
this class should not be used directly, instead use {@link SpeechRecognizer} for
accessing recognition service.
{@hide} |
Methods Summary |
---|
public void | cancel(android.speech.IRecognitionListener listener)Cancels the speech recognition.
| public void | startListening(android.content.Intent recognizerIntent, android.speech.IRecognitionListener listener)Starts listening for speech. Please note that the recognition service supports
one listener only, therefore, if this function is called from two different threads,
only the latest one will get the notifications
| public void | stopListening(android.speech.IRecognitionListener listener)Stops listening for speech. Speech captured so far will be recognized as
if the user had stopped speaking at this point. The function has no effect unless it
is called during the speech capturing.
|
|