ocvolume.audio
Class objFrame

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

public class objFrame
extends java.lang.Object

last modified: June 13, 2002
description: store 100ms of samples (1600 samples), and calculate the averge square mean
calls: none
called by: micInput
input: 100ms signal
output: 100ms signal, squared mean energy


Constructor Summary
objFrame(short[] bufferRead)
          constructor to calculate squared mean energy
calls: none
called by: volume
 
Method Summary
 double getAvgEnergy()
          return squared mean energy
calls: none
called by: volume
 short[] getSample()
          return 100ms speech 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

objFrame

public objFrame(short[] bufferRead)
constructor to calculate squared mean energy
calls: none
called by: volume

Parameters:
bufferRead - 100ms speech signal
Method Detail

getAvgEnergy

public double getAvgEnergy()
return squared mean energy
calls: none
called by: volume

Returns:
squared mean energy

getSample

public short[] getSample()
return 100ms speech signal
calls: none
called by: volume

Returns:
100ms speech signal