|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sphinx.tools.audio.RawRecorder
Grabs audio from the microphone and returns an array of samples.
Constructor Summary | |
RawRecorder(javax.sound.sampled.AudioFormat audioFormat)
Create a new RawRecorder. |
Method Summary | |
void |
start()
Start recording. |
short[] |
stop()
Stop recording and give us the clip. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RawRecorder(javax.sound.sampled.AudioFormat audioFormat) throws javax.sound.sampled.LineUnavailableException
audioFormat
- the desired output
javax.sound.sampled.LineUnavailableException
- if the audioFormat is not supportedMethod Detail |
public void start()
stop()
public short[] stop()
start()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |