public class ProsodyAnalyzer extends Object
Constructor and Description |
---|
ProsodyAnalyzer(List<SelectedUnit> units,
int sampleRate)
Main constructor
|
Modifier and Type | Method and Description |
---|---|
List<Double> |
getDurationFactors()
Get duration factors representing ratio of predicted and realized halfphone Unit durations.
|
double[] |
getDurationFactorsFramewise() |
double[] |
getF0Factors() |
double[] |
getFrameMidTimes() |
List<Phone> |
getPhones()
Get the List of Phones
|
List<Phone> |
getRealizedPhones()
Get the List of Phones that have a predicted duration greater than zero
|
void |
writePraatDurationTier(String fileName)
For debugging, generate Praat DurationTier, which can be used for PSOLA-based manipulation in Praat.
|
void |
writePraatPitchTier(String fileName)
For debugging, generate Praat PitchTier, which can be used for PSOLA-based manipulation in Praat.
|
public ProsodyAnalyzer(List<SelectedUnit> units, int sampleRate) throws Exception
Note that the units are first parsed into phones (and the F0 target values assigned), before any distinction is made
between those with and without a realized duration (e.g. getRealizedPhones()
).
units
- whose predicted and realized prosody to analyzesampleRate
- of the unit database, in HzException
- if the units cannot be parsed into phonespublic List<Phone> getRealizedPhones()
public List<Double> getDurationFactors()
public double[] getDurationFactorsFramewise()
public double[] getFrameMidTimes()
public double[] getF0Factors()
public void writePraatDurationTier(String fileName) throws IOException
Notes:
MIN_SKIP
; this workaround allows one constant factor per unit.fileName
- of the DurationTier to be generatedIOException
- IOExceptionpublic void writePraatPitchTier(String fileName) throws IOException
fileName
- of the PitchTier to be generatedIOException
- IOExceptionCopyright © 2000–2016 DFKI GmbH. All rights reserved.