Skip to content

Commit

Permalink
avoid unnatural durations with m001 speaker
Browse files Browse the repository at this point in the history
  • Loading branch information
nishimotz committed Mar 7, 2011
1 parent 48574be commit 976bbf9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jpcommon/jpcommon_label.c
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ static int index_accent_phrase_in_breath_group(JPCommonLabelAccentPhrase * a)
if (index == a)
break;
}
if (i > 3) i = 3; /* nishimoto */
return i;
}

Expand Down Expand Up @@ -369,6 +370,7 @@ static int count_mora_in_utterance(JPCommonLabelMora * m)

for (i = 0, index = m->next; index != NULL; index = index->next)
i++;
if (i > 10) i = 10; /* nishimoto */
return index_mora_in_utterance(m) + i;
}

Expand Down

1 comment on commit 976bbf9

@nishimotz
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in Japanese http://d.nishimotz.com/archives/744
I am not sure the values "3" and "10" are optimal.

Please sign in to comment.