Fix samplerate for ufric/xx, ufric/sx_sv, x/g2.

Don't read all the voice files on start, wait until they are needed.
Added 'W' code to _rules files to mean: further letters follow while spelling a word.
Lang=fr replace [r] with [R],  shorten [R] slightly


git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@4 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
jonsd
2007-05-06 23:58:57 +00:00
parent 8e912fceae
commit 9099061844
19 changed files with 455 additions and 382 deletions
+6 -1
View File
@@ -45,6 +45,7 @@ int Translator::TranslateLetter(char *word, char *phonemes, int control)
int n_bytes;
int letter;
int len;
int next;
unsigned char *p;
char ph_stress[2];
char capital[20];
@@ -69,7 +70,11 @@ int Translator::TranslateLetter(char *word, char *phonemes, int control)
len = utf8_out(letter,&single_letter[2]);
single_letter[2+len] = ' ';
memcpy(&single_letter[3+len],&word[n_bytes],3); // include the next letter, after a space, in case it affects the translation rules
next = 0x31;
if(word[n_bytes] == ' ')
next = ' ';
single_letter[3+len] = next; // follow by space-space if the end of the word, or space-0x31
single_letter[1] = '_';
if(Lookup(&single_letter[1],ph_buf) == 0)