voices: support a maintainer annotation in voice files

This commit is contained in:
Reece H. Dunn
2016-05-21 21:16:55 +01:00
parent 91779563dd
commit 7e3e2c3854
3 changed files with 20 additions and 0 deletions
+6
View File
@@ -71,6 +71,8 @@ enum {
V_PHONEMES,
V_DICTIONARY,
V_MAINTAINER,
// these affect voice quality, are independent of language
V_FORMANT,
V_PITCH,
@@ -121,6 +123,8 @@ static MNEM_TAB keyword_tab[] = {
{ "language", V_LANGUAGE },
{ "gender", V_GENDER },
{ "maintainer", V_MAINTAINER },
{ "formant", V_FORMANT },
{ "pitch", V_PITCH },
{ "phonemes", V_PHONEMES },
@@ -880,6 +884,8 @@ voice_t *LoadVoice(const char *vname, int control)
fprintf(stderr, "dictdialect name '%s' not recognized\n", name1);
}
break;
case V_MAINTAINER:
break;
default:
if ((key & 0xff00) == 0x100)
sscanf(p, "%d", &langopts->param[key &0xff]);