|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinpro.incremental.unit.IU
inpro.incremental.unit.SegmentIU
inpro.incremental.unit.SysSegmentIU
public class SysSegmentIU
Nested Class Summary |
---|
Nested classes/interfaces inherited from class inpro.incremental.unit.SegmentIU |
---|
SegmentIU.SegmentType |
Nested classes/interfaces inherited from class inpro.incremental.unit.IU |
---|
IU.IUUpdateListener, IU.Progress |
Field Summary | |
---|---|
(package private) boolean |
awaitContinuation
|
(package private) java.util.List<FullPFeatureFrame> |
hmmSynthesisFeatures
|
(package private) marytts.htsengine.HTSModel |
htsModel
|
private static org.apache.log4j.Logger |
logger
|
(package private) Label |
originalLabel
the label that was originally planned by TTS, before any stretching has been done |
private static PHTSParameterGeneration |
paramGen
|
(package private) java.util.List<PitchMark> |
pitchMarks
|
double |
pitchShiftInCent
|
(package private) Label |
plannedLabel
|
(package private) IU.Progress |
progress
the state of delivery that this unit is in |
(package private) int |
realizedDurationInSynFrames
the number of frames that this segment has already been going on |
Fields inherited from class inpro.incremental.unit.SegmentIU |
---|
CONSONANTS, l, TYPE_MAPPING, VOWELS |
Fields inherited from class inpro.incremental.unit.IU |
---|
creationTime, FIRST_IU, groundedIn, grounds, nextSameLevelLinks, previousSameLevelLink, updateListeners |
Constructor Summary | |
---|---|
SysSegmentIU(Label l,
java.util.List<PitchMark> pitchMarks)
|
|
SysSegmentIU(Label l,
java.util.List<PitchMark> pitchMarks,
java.util.List<FullPFeatureFrame> featureFrames)
|
Method Summary | |
---|---|
void |
addNextSameLevelLink(IU iu)
adds fSLL, and allows continuation of synthesis |
void |
appendMaryXML(java.lang.StringBuilder sb)
|
private static int |
appendSllHtsModel(java.util.List<marytts.htsengine.HTSModel> hmms,
IU sll)
helper, append HMM if possible, return emission length |
void |
attainPitch(double finalPitch)
TODO: must be reworked to use PitchMarks change the synthesis frames' pitch curve to attain the given pitch in the final pitch in a smooth manner |
private void |
awaitContinuation()
|
void |
copySynData(SysSegmentIU newSeg)
copy all data necessary for synthesis -- i.e. the htsModel and pitchmarks |
int |
durationInSynFrames()
the duration of this segment in multiples of 5 ms |
private void |
generateParameterFrames()
|
FullPFeatureFrame |
getHMMSynthesisFrame(int req)
|
IU.Progress |
getProgress()
by default, an IU - is complete if the last grounding unit is complete, - is upcoming if the first grounding unit is upcoming, - is ongoing if inbetween those two states - is null if there are no grounding units. |
boolean |
isVoiced()
|
double |
originalDuration()
|
boolean |
setAwaitContinuation(boolean b)
tell this segment that it will be followed by more input later on |
void |
setHmmSynthesisFrames(java.util.List<FullPFeatureFrame> hmmSynthesisFeatures)
|
void |
setHTSModel(marytts.htsengine.HTSModel hmm)
|
double |
setNewDuration(double d)
set a new duration of this segment; if this segment is already ongoing, the resulting duration cannot be shortend to less than what has already been going on (obviously, we can't revert the past) |
private void |
setProgress(IU.Progress p)
|
void |
shiftBy(double offset,
boolean recurse)
shift the start and end times of this (and possibly all following SysSegmentIUs |
double |
stretch(double factor)
stretch the current segment by a given factor. |
double |
stretchFromOriginal(double factor)
|
java.lang.String |
toLabelLine()
SysSegmentIUs may have a granularity finer than 10 ms (5ms) |
java.lang.StringBuilder |
toMbrolaLine()
this segment represented as an mbrola line |
Methods inherited from class inpro.incremental.unit.SegmentIU |
---|
endTime, isSilence, isVowel, startTime, toPayLoad, type, updateLabel |
Methods inherited from class inpro.incremental.unit.IU |
---|
addUpdateListener, commit, compareTo, connectSLL, deepToString, duration, equals, getAge, getAmongNextSameLevelLinks, getCreationTime, getID, getNextSameLevelLink, getNextSameLevelLinks, getOngoingGroundedIU, getSameLevelLink, ground, groundedIn, groundIn, groundIn, grounds, hashCode, isCommitted, isCompleted, isOngoing, isRevoked, isUpcoming, notifyListeners, payloadEquals, removeAllNextSameLevelLinks, removeGrin, removeGrin, reorderNextSameLevelLink, revoke, setAsTopNextSameLevelLink, setSameLevelLink, toString, toTEDviewXML, updateOnGrinUpdates |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static org.apache.log4j.Logger logger
Label plannedLabel
Label originalLabel
java.util.List<PitchMark> pitchMarks
marytts.htsengine.HTSModel htsModel
java.util.List<FullPFeatureFrame> hmmSynthesisFeatures
public double pitchShiftInCent
IU.Progress progress
int realizedDurationInSynFrames
boolean awaitContinuation
private static PHTSParameterGeneration paramGen
Constructor Detail |
---|
public SysSegmentIU(Label l, java.util.List<PitchMark> pitchMarks, java.util.List<FullPFeatureFrame> featureFrames)
public SysSegmentIU(Label l, java.util.List<PitchMark> pitchMarks)
Method Detail |
---|
public java.lang.StringBuilder toMbrolaLine()
SegmentIU
toMbrolaLine
in class SegmentIU
public void appendMaryXML(java.lang.StringBuilder sb)
appendMaryXML
in class SegmentIU
public void setHmmSynthesisFrames(java.util.List<FullPFeatureFrame> hmmSynthesisFeatures)
public int durationInSynFrames()
public double originalDuration()
public void addNextSameLevelLink(IU iu)
addNextSameLevelLink
in class IU
public boolean setAwaitContinuation(boolean b)
private void awaitContinuation()
private static int appendSllHtsModel(java.util.List<marytts.htsengine.HTSModel> hmms, IU sll)
private void generateParameterFrames()
public FullPFeatureFrame getHMMSynthesisFrame(int req)
private void setProgress(IU.Progress p)
public double stretch(double factor)
factor
- larger than 1 to lengthen, smaller than 1 to shorten; must be larger than 0
public double stretchFromOriginal(double factor)
public void attainPitch(double finalPitch)
finalPitch
- the log pitch to be reached in the final synthesis framepublic double setNewDuration(double d)
public void shiftBy(double offset, boolean recurse)
shiftBy
in class SegmentIU
public IU.Progress getProgress()
IU
getProgress
in class IU
public java.lang.String toLabelLine()
toLabelLine
in class IU
public boolean isVoiced()
public void setHTSModel(marytts.htsengine.HTSModel hmm)
public void copySynData(SysSegmentIU newSeg)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |