mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-25 12:46:13 +00:00
[1.37.07]
Support for mbrola Brazilian voices, br1, br3. Included epenthetic vowel [i] in Brazilian. Languages changes: fr, af. git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@179 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
+10
-1
@@ -1170,7 +1170,16 @@ void Translator::SetWordStress(char *output, unsigned int dictionary_flags, int
|
||||
stressed_syllable = vowel_count - 1;
|
||||
if(max_stress == 0)
|
||||
{
|
||||
vowel_stress[stressed_syllable] = 4;
|
||||
while(stressed_syllable > 0)
|
||||
{
|
||||
if(vowel_stress[stressed_syllable] == 0)
|
||||
{
|
||||
vowel_stress[stressed_syllable] = 4;
|
||||
break;
|
||||
}
|
||||
else
|
||||
stressed_syllable--;
|
||||
}
|
||||
}
|
||||
max_stress = 4;
|
||||
}
|
||||
|
||||
+1
-1
@@ -35,7 +35,7 @@
|
||||
#include "translate.h"
|
||||
#include "wave.h"
|
||||
|
||||
const char *version_string = "1.37.04 27.Jun.08";
|
||||
const char *version_string = "1.37.07 19.Jul.08";
|
||||
const int version_phdata = 0x013400;
|
||||
|
||||
int option_device_number = -1;
|
||||
|
||||
@@ -599,6 +599,7 @@ SetLengthMods(tr,3); // all equal
|
||||
tr->langopts.stress_flags = 0x6 | 0x10 | 0x20000;
|
||||
tr->langopts.numbers = 0x269 + 0x2000 + NUM_ROMAN;
|
||||
SetLetterVowel(tr,'y');
|
||||
SetLetterBits(tr,1,"bcdfgjkmnpqstvxz"); // B hard consonants, excluding h,l,r,w,y
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
@@ -373,6 +373,9 @@ int IsAlpha(unsigned int c)
|
||||
if((c >= 0x1100) && (c <= 0x11ff))
|
||||
return(1); //Korean jamo
|
||||
|
||||
if((c > 0x3040) && (c <= 0xa700))
|
||||
return(1); // Chinese/Japanese. Should never get here, but Mac OS 10.4's iswalpha seems to be broken, so just make sure
|
||||
|
||||
return(0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user