Fix voice attribute suffix ignored in voice name.

lang=cs   fix number not spoken after preposition with $alt1 attribute
lang=cs   Don't allow any thousands separator.


git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@12 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
jonsd
2007-05-17 00:58:01 +00:00
parent f4dab7edbf
commit 6d5a152841
16 changed files with 105 additions and 36 deletions
+10 -1
View File
@@ -1329,6 +1329,7 @@ espeak_ERROR SetVoiceByName(const char *name)
espeak_VOICE *v;
int variant=0;
char *p;
char variant_name[20];
static char buf[60];
strncpy0(buf,name,sizeof(buf));
@@ -1339,10 +1340,18 @@ espeak_ERROR SetVoiceByName(const char *name)
variant = atoi(p+1);
}
// first check for a voice with this filename
// first check for a voice with this filename
if(LoadVoice(buf,1) != NULL)
{
voice_selected = first_voice;
if(variant > 0)
{
// apply a voice variant
sprintf(variant_name,"!variant%d",variant);
LoadVoice(variant_name,2);
}
WavegenSetVoice(voice);
return(EE_OK);
}