|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.speech.recognition.DeviceSpeaker
public abstract class DeviceSpeaker
A device for transforming electric signals into audible sound, most frequently used to reproduce speech and music.
| Constructor Summary | |
|---|---|
DeviceSpeaker()
|
|
| Method Summary | |
|---|---|
static DeviceSpeaker |
getInstance()
Returns the device speaker instance. |
abstract void |
setCodec(Codec playbackCodec)
Sets the playback codec. |
abstract void |
setListener(DeviceSpeakerListener listener)
Sets the microphone listener. |
abstract void |
start(AudioStream source)
Starts the audio playback. |
abstract void |
stop()
Stops audio playback. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DeviceSpeaker()
| Method Detail |
|---|
public static DeviceSpeaker getInstance()
public abstract void start(AudioStream source)
throws IllegalStateException,
IllegalArgumentException
source - the audio to play
IllegalStateException - if the component is already started
IllegalArgumentException - if source audio is null, in-use by
another component or is empty.public abstract void stop()
public abstract void setCodec(Codec playbackCodec)
throws IllegalStateException,
IllegalArgumentException
playbackCodec - the codec to use for the playback operation.
IllegalStateException - if the component is already stopped
IllegalArgumentException - if the specified codec is not supported
public abstract void setListener(DeviceSpeakerListener listener)
throws IllegalStateException
listener - the device speaker listener.
IllegalStateException - if the component is started
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||