public final class WaveUtils
extends java.lang.Object
TextToSpeech service.| Modifier and Type | Method and Description | 
|---|---|
| static java.io.InputStream | reWriteWaveHeader(java.io.InputStream is)Re-writes the data size in the header(bytes 4-8) of the WAVE(.wav) input stream. It needs to be read in order to calculate the size. | 
| static byte[] | toByteArray(java.io.InputStream is)Converts an  InputStreamto byte array. | 
public static java.io.InputStream reWriteWaveHeader(java.io.InputStream is)
                                             throws java.io.IOException
is - the input streamjava.io.IOException - Signals that an I/O exception has occurred.public static byte[] toByteArray(java.io.InputStream is)
                          throws java.io.IOException
InputStream to byte array.is - the input streamjava.io.IOException - If the first byte cannot be read for any reason other than end of file, or if the input stream
           has been closed, or if some other I/O error occurs.