ocvolume.wav
Class waveIO

java.lang.Object
  |
  +--ocvolume.wav.waveIO

public class waveIO
extends java.lang.Object

last modified: June 15, 2002
description: input and output to a wave file
calls: none
called: tarin
input: speech signal, path
output: none


Constructor Summary
waveIO()
           
 
Method Summary
static short[] readWave(java.lang.String path)
          loading wave file
calls: none
called by: train
static void writeWave(short[] sample, java.lang.String path)
          write to wave file
calls: none
called by: train
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

waveIO

public waveIO()
Method Detail

writeWave

public static void writeWave(short[] sample,
                             java.lang.String path)
write to wave file
calls: none
called by: train

Parameters:
sample - the data in 16bits integer (short) array
path - the save location

readWave

public static short[] readWave(java.lang.String path)
loading wave file
calls: none
called by: train

Parameters:
path - of the input wave file
Returns:
a short array of anysize containing the amplitudes in the wave file