[1.30.05]

Fix an error where vowels start too loud (too strong attack).

Added command-line option  --compile-debug, which is like --compile but it includes source line information from the *_rules file, which is displayed with the -X option. 

espeakedit: Added  Compile->Compile_dictionary(debug),

Fixed <emphasis> which was broken in the previous version(s).
<emphasis> now reduces the previous stressed syllable to secondary stress.


git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@119 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
jonsd
2008-01-11 00:36:01 +00:00
parent af575bc1db
commit dd9fd5f27a
22 changed files with 125 additions and 44 deletions
+13 -1
View File
@@ -910,7 +910,7 @@ void Translator::CalcPitches(int clause_type)
option = langopts.intonation_group;
if(option > INTONATION_TYPES)
if(option >= INTONATION_TYPES)
option = 0;
group_tone = punct_to_tone[option][clause_type];
@@ -952,6 +952,18 @@ void Translator::CalcPitches(int clause_type)
if(syl->stress == 6)
{
// reduce the stress of the previous stressed syllable
for(ix=st_ix-1; ix>=st_start && ix>=(st_ix-3); ix--)
{
if(syllable_tab[ix].stress == 6)
break;
if(syllable_tab[ix].stress == 4)
{
syllable_tab[ix].stress = 3;
break;
}
}
// are the next primary syllables also emphasized ?
for(ix=st_ix+1; ix<n_st; ix++)
{