public class HTSEngine extends InternalModule
logger, stateMODULE_OFFLINE, MODULE_RUNNING| Constructor and Description |
|---|
HTSEngine() |
| Modifier and Type | Method and Description |
|---|---|
Vector<HTSEngineTest.PhonemeDuration> |
getAlignDurations() |
double |
getNewStateDurationFactor() |
boolean |
getPhonemeAlignmentForDurations() |
String |
getRealisedDurations() |
boolean |
getStateAlignmentForDurations() |
static List<Target> |
getTargets(Scanner s,
HMMData htsData) |
static List<Target> |
getTargetsFromFile(String LabFile,
HMMData htsData)
Reads the Label file, the file which contains the Mary context features, creates an scanner object and calls getTargets
|
List<Target> |
getTargetsFromText(String LabText,
HMMData htsData)
Creates a scanner object with the Mary context features contained in Labtext and calls getTargets
|
static void |
main(String[] args)
Stand alone testing using a TARGETFEATURES file as input.
|
void |
powerOnSelfTest()
This module is actually tested as part of the HMMSynthesizer test, for which reason this method does nothing.
|
MaryData |
process(MaryData d,
List<Target> targetFeaturesList,
List<Element> segmentsAndBoundaries,
List<Element> tokensAndBoundaries)
This functions process directly the target features list: targetFeaturesList when using external prosody, duration and f0
are read from acoustparams: segmentsAndBoundaries realised durations and f0 are set in: tokensAndBoundaries when calling
this function HMMVoice must be initialised already, that is TreeSet and ModelSet must be loaded already.
|
protected HTSUttModel |
processTargetList(List<Target> targetFeaturesList,
List<Element> segmentsAndBoundaries,
HMMData htsData)
Process feature vectors in target list to generate a list of models for generation and realisation
|
HTSUttModel |
processUttFromFile(String feaFile,
HMMData htsData) |
void |
setAlignDurations(Vector<HTSEngineTest.PhonemeDuration> val) |
void |
setNewStateDurationFactor(double dval) |
void |
setPhonemeAlignmentForDurations(boolean bval) |
void |
setRealisedDurations(String str) |
static void |
setRealisedProsody(List<Element> tokensAndBoundaries,
HTSUttModel um) |
void |
setStateAlignmentForDurations(boolean bval) |
getInputType, getLocale, getOutputType, getState, inputType, name, outputType, process, shutdown, startuppublic String getRealisedDurations()
public boolean getPhonemeAlignmentForDurations()
public boolean getStateAlignmentForDurations()
public Vector<HTSEngineTest.PhonemeDuration> getAlignDurations()
public double getNewStateDurationFactor()
public void setRealisedDurations(String str)
public void setStateAlignmentForDurations(boolean bval)
public void setPhonemeAlignmentForDurations(boolean bval)
public void setAlignDurations(Vector<HTSEngineTest.PhonemeDuration> val)
public void setNewStateDurationFactor(double dval)
public void powerOnSelfTest()
throws Error
powerOnSelfTest in interface MaryModulepowerOnSelfTest in class InternalModuleError - Errorpublic MaryData process(MaryData d, List<Target> targetFeaturesList, List<Element> segmentsAndBoundaries, List<Element> tokensAndBoundaries) throws Exception
d - : to get the default voice and localetargetFeaturesList - : the actual input data to HTS based synthesissegmentsAndBoundaries - : to update segment timings that are influenced by HMM state selectiontokensAndBoundaries - :Exception - Exceptionpublic static void setRealisedProsody(List<Element> tokensAndBoundaries, HTSUttModel um) throws SynthesisException
SynthesisExceptionpublic HTSUttModel processUttFromFile(String feaFile, HMMData htsData) throws Exception
Exceptionpublic static List<Target> getTargetsFromFile(String LabFile, HMMData htsData) throws Exception
LabFile - LabFilehtsData - htsDataException - Exceptionpublic List<Target> getTargetsFromText(String LabText, HMMData htsData) throws Exception
LabText - LabTexthtsData - htsDataException - Exceptionprotected HTSUttModel processTargetList(List<Target> targetFeaturesList, List<Element> segmentsAndBoundaries, HMMData htsData) throws Exception
targetFeaturesList - : each target must contain the corresponding feature vectorsegmentsAndBoundaries - : if applying external prosody provide acoust params as a list of elementshtsData - : parameters and configuration of the voiceException - Exceptionpublic static void main(String[] args) throws IOException, InterruptedException, Exception
args - argsIOException - IOExceptionInterruptedException - InterruptedExceptionException - ExceptionCopyright © 2000–2016 DFKI GmbH. All rights reserved.