|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ocvolume.dsp.endPt
last modified: June 15, 2002
description: this is the detection of the noise and search for the spot where the acutal word is being sounded,
and remove the noise from the sample.
calls: none
called by: volume, train
input: speech signal
output: modified speech signal
Constructor Summary | |
endPt()
|
Method Summary | |
static short[] |
absCut(short[] sample)
a method to use this class calls: zeroCrossingBoolean, avgEnergy, zeroCrossing, chopping called by: volume |
static int[] |
avgEnergy(short[] sample)
5ms frame (80 samples / frame) determent the noise location base on the energy calls: none called by: absCut |
static short[] |
chopping(short[] sample,
int[] cut)
cut the sample into smaller part calls: none called by: absCut |
static int[] |
zeroCrossing(short[] sample,
int[] energy,
boolean[] crossing)
search for the end points based on zero-crossing and result from avgEnergy calls: none called by: absCut |
static boolean[] |
zeroCrossingBoolean(short[] sample)
Simply mark off the location of Zero-Crossing calls: none called by: absCut |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public endPt()
Method Detail |
public static short[] absCut(short[] sample)
sample
- the sample that's going to be modified
public static short[] chopping(short[] sample, int[] cut)
sample
- the sample that's going to be choppedcut
- the location that were returned from zeroCrossing or avgEnergy
public static int[] avgEnergy(short[] sample)
sample
- the sample which is being analyze
public static boolean[] zeroCrossingBoolean(short[] sample)
sample
- speech signal
public static int[] zeroCrossing(short[] sample, int[] energy, boolean[] crossing)
sample
- speech signalenergy
- result from avgEnergy, which is used as the starting pointcrossing
- result from zeroCrossingBoolean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |