ocvolume.audio
Class objSound

java.lang.Object
  |
  +--ocvolume.audio.objSound

public class objSound
extends java.lang.Object

last modified: June 13, 2002
description: combine several 100ms frames
calls: none
called by: micInput
input: speech signal
output: speech signal


Constructor Summary
objSound(int totalSample)
          constructor to create a new short array calls: none called by: volume
 
Method Summary
 void addSound(short[] sample, int sampleLength)
          combining samples calls: none called by: volume
 short[] getSound()
          return speech signal calls: none called by: volume
 short getSoundAt(int IndexNum)
          return speech signal with a given time(index) calls: none called by: volume
 int getSoundSize()
          return the signal calls: none called by: volume
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

objSound

public objSound(int totalSample)
constructor to create a new short array calls: none called by: volume

Parameters:
totalSample - length of short array
Method Detail

addSound

public void addSound(short[] sample,
                     int sampleLength)
combining samples calls: none called by: volume

Parameters:
sample - speech signal
sampleLength - speech signal length

getSoundAt

public short getSoundAt(int IndexNum)
return speech signal with a given time(index) calls: none called by: volume

Parameters:
IndexNum - time/index
Returns:
amplitude for a specified time

getSoundSize

public int getSoundSize()
return the signal calls: none called by: volume

Returns:
signal

getSound

public short[] getSound()
return speech signal calls: none called by: volume

Returns:
speech signal