|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sphinx.tools.audio.RawReader
Reads a raw audio file (i.e., a file that is just plain raw samples and nothing else) and converts it to signed data.
Constructor Summary | |
RawReader()
|
Method Summary | |
static short[] |
readAudioData(java.io.InputStream audioStream,
javax.sound.sampled.AudioFormat audioFormat)
Reads raw bytes from the given audioStream and returns big endian signed samples based on the audioFormat. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RawReader()
Method Detail |
public static short[] readAudioData(java.io.InputStream audioStream, javax.sound.sampled.AudioFormat audioFormat) throws java.io.IOException
audioStream
- the stream containing the raw bytesaudioFormat
- a hint of what to expect from the stream
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |