mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-08 23:47:27 +00:00
Remove the 'dictdialect' feature.
This commit is contained in:
@@ -106,7 +106,6 @@ enum {
|
||||
V_SPEED,
|
||||
V_DICTMIN,
|
||||
V_ALPHABET2,
|
||||
V_DICTDIALECT,
|
||||
|
||||
// these need a phoneme table to have been specified
|
||||
V_REPLACE,
|
||||
@@ -160,7 +159,6 @@ static MNEM_TAB keyword_tab[] = {
|
||||
{ "speed", V_SPEED },
|
||||
{ "dict_min", V_DICTMIN },
|
||||
{ "alphabet2", V_ALPHABET2 },
|
||||
{ "dictdialect", V_DICTDIALECT },
|
||||
|
||||
// these just set a value in langopts.param[]
|
||||
{ "l_dieresis", 0x100+LOPT_DIERESES },
|
||||
@@ -174,13 +172,6 @@ static MNEM_TAB keyword_tab[] = {
|
||||
{ NULL, 0 }
|
||||
};
|
||||
|
||||
static MNEM_TAB dict_dialects[] = {
|
||||
{ "en-us", DICTDIALECT_EN_US },
|
||||
{ "es-la", DICTDIALECT_ES_LA },
|
||||
|
||||
{ NULL, 0 }
|
||||
};
|
||||
|
||||
#define N_VOICE_VARIANTS 12
|
||||
const char variants_either[N_VOICE_VARIANTS] = { 1, 2, 12, 3, 13, 4, 14, 5, 11, 0 };
|
||||
const char variants_male[N_VOICE_VARIANTS] = { 1, 2, 3, 4, 5, 6, 0 };
|
||||
@@ -866,15 +857,6 @@ voice_t *LoadVoice(const char *vname, int control)
|
||||
fprintf(stderr, "alphabet name '%s' not found\n", name1);
|
||||
}
|
||||
break;
|
||||
case V_DICTDIALECT:
|
||||
// specify a dialect to use for foreign words, eg, en-us for _^_EN
|
||||
if (sscanf(p, "%s", name1) == 1) {
|
||||
if ((ix = LookupMnem(dict_dialects, name1)) > 0)
|
||||
langopts->dict_dialect |= (1 << ix);
|
||||
else
|
||||
fprintf(stderr, "dictdialect name '%s' not recognized\n", name1);
|
||||
}
|
||||
break;
|
||||
case V_MAINTAINER:
|
||||
case V_STATUS:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user