|
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.Microphone
public abstract class Microphone
Records live audio.
| Constructor Summary | |
|---|---|
Microphone()
|
|
| Method Summary | |
|---|---|
abstract AudioStream |
createAudio()
Creates an audio source |
static Microphone |
getInstance()
Returns the microphone instance |
abstract void |
setCodec(Codec recordingCodec)
Sets the recording codec. |
abstract void |
setListener(AudioSourceListener listener)
Sets the microphone listener. |
abstract void |
start()
Start recording audio. |
abstract void |
stop()
Stops recording audio. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Microphone()
| Method Detail |
|---|
public static Microphone getInstance()
public abstract void setCodec(Codec recordingCodec)
throws IllegalStateException,
IllegalArgumentException
recordingCodec - the codec in which the samples will be recorded.
IllegalStateException - if Microphone is started
IllegalArgumentException - if codec is not supported
public abstract void setListener(AudioSourceListener listener)
throws IllegalStateException
listener - the microphone listener.
IllegalStateException - if Microphone is startedpublic abstract AudioStream createAudio()
createAudio in interface AudioSource
public abstract void start()
throws IllegalStateException
start in interface AudioSourceIllegalStateException - if Microphone is already startedpublic abstract void stop()
stop in interface AudioSource
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||