mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-02 22:07:12 +00:00
remove option_phoneme_variants that is never set and always evaluates true
This commit is contained in:
@@ -503,7 +503,7 @@ char *WritePhMnemonic(char *phon_out, PHONEME_TAB *ph, PHONEME_LIST *plist, int
|
||||
|
||||
first = true;
|
||||
for (mnem = ph->mnemonic; (c = mnem & 0xff) != 0; mnem = mnem >> 8) {
|
||||
if ((c == '/') && (option_phoneme_variants == 0))
|
||||
if (c == '/') // NOTE: this line used to be (c == '/') && (option_phoneme_variants == 0)) but always evaluated true
|
||||
break; // discard phoneme variant indicator
|
||||
|
||||
if (use_ipa) {
|
||||
|
||||
@@ -60,7 +60,6 @@ static int option_sayas2 = 0; // used in translate_clause()
|
||||
static int option_emphasis = 0; // 0=normal, 1=normal, 2=weak, 3=moderate, 4=strong
|
||||
int option_ssml = 0;
|
||||
int option_phoneme_input = 0; // allow [[phonemes]] in input
|
||||
int option_phoneme_variants = 0; // 0= don't display phoneme variant mnemonics
|
||||
int option_wordgap = 0;
|
||||
|
||||
static int count_sayas_digits;
|
||||
|
||||
@@ -650,7 +650,6 @@ extern int option_punctuation;
|
||||
extern int option_endpause;
|
||||
extern int option_ssml;
|
||||
extern int option_phoneme_input; // allow [[phonemes]] in input text
|
||||
extern int option_phoneme_variants;
|
||||
extern int option_sayas;
|
||||
extern int option_wordgap;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user