|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmarytts.tools.voiceimport.VoiceImportComponent
marytts.tools.voiceimport.SnackVoiceQualityProcessor
public class SnackVoiceQualityProcessor
| Field Summary | |
|---|---|
protected DatabaseLayout |
db
|
java.lang.String |
FFTSIZE
|
java.lang.String |
FRAMELENGTH
|
java.lang.String |
LPCORDER
|
java.lang.String |
MAXPITCH
|
java.lang.String |
MINPITCH
|
java.lang.String |
NUMFORMANTS
|
java.lang.String |
SAMPLINGRATE
|
protected java.lang.String |
scriptFileName
|
protected java.lang.String |
snackExtension
|
protected java.lang.String |
voiceQualityExtension
|
java.lang.String |
VQDIR
|
java.lang.String |
WINDOWLENGTH
|
| Fields inherited from class marytts.tools.voiceimport.VoiceImportComponent |
|---|
bnl, logger, props, props2Help |
| Constructor Summary | |
|---|---|
SnackVoiceQualityProcessor()
|
|
| Method Summary | |
|---|---|
void |
calculateVoiceQuality(double[][] snack,
int samplingRate,
int frameLength,
int windowLength,
WavReader sound,
Window hammWin,
double[][] barkMatrix,
int fftSize,
VoiceQuality vq,
boolean debug)
|
boolean |
compute()
The standard compute() method of the VoiceImportComponent interface. |
int |
findClosestHarmonicPeak(double[] peaks,
double f,
int maxFreqIndex)
returns the index where the closset harmonic peak to f is found |
java.util.SortedMap |
getDefaultProps(DatabaseLayout db)
Get the map of properties2values containing the default values |
java.lang.String |
getName()
Get the name of this component |
int |
getProgress()
Provide the progress of computation, in percent, or -1 if that feature is not implemented. |
void |
initialiseComp()
Initialise a voice import component: component specific initialisation; to be overwritten by subclasses |
static void |
main(java.lang.String[] args)
|
static void |
main1(java.lang.String[] args)
|
static void |
main2(java.lang.String[] args)
|
static void |
main3(java.lang.String[] args)
|
static void |
main4(java.lang.String[] args)
|
static void |
main5(java.lang.String[] args)
|
protected void |
setupHelp()
|
double |
vocalTractCompensation(double freq,
double formant,
double bandWidth)
Compensation of the vocal tract influence |
| Methods inherited from class marytts.tools.voiceimport.VoiceImportComponent |
|---|
getHelpText, getHelpTextForProp, getProp, initialise, setProp |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected DatabaseLayout db
protected java.lang.String snackExtension
protected java.lang.String voiceQualityExtension
protected java.lang.String scriptFileName
public final java.lang.String SAMPLINGRATE
public final java.lang.String MINPITCH
public final java.lang.String MAXPITCH
public final java.lang.String FRAMELENGTH
public final java.lang.String WINDOWLENGTH
public final java.lang.String NUMFORMANTS
public final java.lang.String LPCORDER
public final java.lang.String FFTSIZE
public final java.lang.String VQDIR
| Constructor Detail |
|---|
public SnackVoiceQualityProcessor()
| Method Detail |
|---|
protected void setupHelp()
setupHelp in class VoiceImportComponentpublic final java.lang.String getName()
VoiceImportComponent
getName in class VoiceImportComponentpublic void initialiseComp()
VoiceImportComponent
initialiseComp in class VoiceImportComponentpublic java.util.SortedMap getDefaultProps(DatabaseLayout db)
VoiceImportComponent
getDefaultProps in class VoiceImportComponent
public boolean compute()
throws java.lang.Exception
compute in class VoiceImportComponentjava.lang.Exception
public void calculateVoiceQuality(double[][] snack,
int samplingRate,
int frameLength,
int windowLength,
WavReader sound,
Window hammWin,
double[][] barkMatrix,
int fftSize,
VoiceQuality vq,
boolean debug)
throws java.lang.Exception
snack: - array containing f0+formants+band widthsframeLength: - in sampleswindowLength: - in samplessound -
java.lang.Exception
public int findClosestHarmonicPeak(double[] peaks,
double f,
int maxFreqIndex)
public double vocalTractCompensation(double freq,
double formant,
double bandWidth)
freq - formant - bandWidth -
public int getProgress()
getProgress in class VoiceImportComponent
public static void main3(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
public static void main2(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
public static void main1(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
public static void main4(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
public static void main5(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||