|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.speech.freetts.util.WaveUtils
Provides a set of utilities for prrocessing wave/audio data.
Constructor Summary | |
WaveUtils()
|
Method Summary | |
static short |
bytesToShort(byte hiByte,
byte loByte)
Reconstructs a short from its hi and low bytes. |
static void |
main(java.lang.String[] args)
Provides test program for method ulawToShort(). |
static byte |
shortToUlaw(short sampleData)
Converts a raw short to ulaw. |
static short |
ulawToShort(short uByte)
Converts from ulaw to 16 bit linear. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WaveUtils()
Method Detail |
public static final byte shortToUlaw(short sampleData)
sampleData
- signed 16-bit linear sample
public static final short ulawToShort(short uByte)
Craig Reese: IDA/Supercomputing Research Center
29 September 1989
References:
1) CCITT Recommendation G.711 (very difficult to follow)
2) MIL-STD-188-113,"Interoperability and Performance Standards
for Analog-to_Digital Conversion Techniques," 17 February 1987
uByte
- 8 bit ulaw sample
public static final short bytesToShort(byte hiByte, byte loByte)
hiByte
- the high byteloByte
- the low byte
public static void main(java.lang.String[] args)
args
- not used
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |