[Subject Prev][Subject Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hts-users:01872] bug fix in HGen.c for model-level alignment

There's a small bug when using model-level alignments during synthesis.
 The model durations get floored rather than rounded, which can lead to
quite a difference in a long utterance (at least, noticeable enough that
I noticed it while graphing a short utterance!)

Diff follows:

./HTKLib/HGen.c 763
-            modeldur = (int) (label->end -
+            modeldur = (int) ((label->end -
label->start)/genInfo->frameRate + 0.5);

Matt Shannon

[hts-users:01873] Re: bug fix in HGen.c for model-level alignment, Heiga Zen (Byung Ha CHUN)