public class HTSEngineTest extends Object
Modifier and Type | Class and Description |
---|---|
class |
HTSEngineTest.PhonemeDuration |
Constructor and Description |
---|
HTSEngineTest() |
Modifier and Type | Method and Description |
---|---|
void |
generateParameters()
Stand alone testing using a TARGETFEATURES file as input.
|
void |
getSptkMfcc()
Calculate mfcc using SPTK, uses sox to convert wav→raw
|
void |
getSptkSnackLf0()
Calculate mfcc using SPTK, uses sox to convert wav→raw
|
float |
loadDurationsForAlignment(String fileName,
Vector<HTSEngineTest.PhonemeDuration> alignDur)
Load durations for phone alignment when the durations have been generated by EHMMs.
|
void |
loadF0contour(String lf0File,
int totalDurationFrames,
HTSParameterGeneration pdf2par)
Load logf0, in HTS format, create a voiced array and set this values in pdf2par This contour should be aligned with the
durations, so the total duration in frames should be the same as in the lf0 file
|
static void |
main(String[] args) |
void |
synthesisWithContinuousFeatureProcessors()
Generation of speech using external specification of duration: using ContinuousFeatureProcessors of TARGETFEATURES Input: a
TARGETFEATURES (.pfeats) file, this file should contain ContinuousFeatureProcessors: unit_duration float unit_logf0 float
unit_logf0delta float The features unit_duration and unit_logf0 are used as external prosody, unit_logf0Delta is not used.
|
void |
synthesisWithProsodySpecificationInExternalFiles()
Generation of speech using external specification of duration: duration and logf0 in external files Input: a TARGETFEATURES
(.pfeats) file
|
public void synthesisWithContinuousFeatureProcessors() throws Exception
Exception
- Exceptionpublic void synthesisWithProsodySpecificationInExternalFiles() throws Exception
Exception
- Exceptionpublic float loadDurationsForAlignment(String fileName, Vector<HTSEngineTest.PhonemeDuration> alignDur)
fileName
- the format is the same as for phonelab.alignDur
- alignDurpublic void loadF0contour(String lf0File, int totalDurationFrames, HTSParameterGeneration pdf2par) throws Exception
lf0File
- : in HTS formanttotalDurationFrames
- : the total duration in frames can be calculated as: totalDurationFrames = totalDurationInSeconds /
(framePeriodInSamples / SamplingFrequencyInHz)pdf2par
- : HTSParameterGeneration objectException
- If the number of frames in the lf0 file is not the same as represented in the total duration (in frames).public void generateParameters() throws IOException, InterruptedException, Exception
IOException
- IOExceptionInterruptedException
- InterruptedExceptionException
- Exceptionpublic void getSptkMfcc() throws IOException, InterruptedException, Exception
IOException
- IOExceptionInterruptedException
- InterruptedExceptionException
- Exceptionpublic void getSptkSnackLf0() throws IOException, InterruptedException, Exception
IOException
- IOExceptionInterruptedException
- InterruptedExceptionException
- ExceptionCopyright © 2000–2016 DFKI GmbH. All rights reserved.