Build 1.0_r1(from source)

android.speech.recognition
Interface AudioSource

All Known Implementing Classes:
MediaFileReader, MediaFileReaderImpl, Microphone, MicrophoneImpl

public interface AudioSource

Generates audio data.


Method Summary
 AudioStream createAudio()
          Returns an object that contains the audio samples.
 void start()
          Tells the audio source to start collecting audio samples.
 void stop()
          Tells the audio source to stop collecting audio samples.
 

Method Detail

createAudio

AudioStream createAudio()
Returns an object that contains the audio samples. This object is passed to other components that consumes it, such a Recognizer or a DeviceSpeaker.

Returns:
an AudioStream instance

start

void start()
Tells the audio source to start collecting audio samples.


stop

void stop()
Tells the audio source to stop collecting audio samples.


Build 1.0_r1(from source)

Please submit a feedback, bug or feature