Build 1.0_r1(from source)

android.speech.recognition
Interface AudioSourceListener

All Known Subinterfaces:
MediaFileReaderListener, MicrophoneListener

public interface AudioSourceListener

Listens for Microphone events.


Method Summary
 void onError(Exception e)
          Invoked when an unexpected error occurs.
 void onStarted()
          Invoked after the microphone starts recording.
 void onStopped()
          Invoked after the microphone stops recording.
 

Method Detail

onStarted

void onStarted()
Invoked after the microphone starts recording.


onStopped

void onStopped()
Invoked after the microphone stops recording.


onError

void onError(Exception e)
Invoked when an unexpected error occurs. This is normally followed by onStopped() if the component shuts down successfully.

Parameters:
e - the cause of the failure

Build 1.0_r1(from source)

Please submit a feedback, bug or feature