mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-08 23:47:27 +00:00
[1.48.11]
Command-line: added options --sep --tie. API, changed the meaning of the "phonememode" parameter in espeak_SetPhonemeTrace() and espeak_TextToPhonemes(). Language changes to: en, eu, pt. git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@385 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
+3
-7
@@ -1980,14 +1980,10 @@ int SpeakNextClause(FILE *f_in, const void *text_in, int control)
|
||||
CalcPitches(translator, clause_tone);
|
||||
CalcLengths(translator);
|
||||
|
||||
if((option_phonemes > 0) || (phoneme_callback != NULL))
|
||||
if((option_phonemes & 0xf) || (phoneme_callback != NULL))
|
||||
{
|
||||
int phoneme_mode = 0;
|
||||
if(option_phonemes >= 3)
|
||||
phoneme_mode = 0x10 + option_phonemes-3; // 0x10=ipa, 0x11=ipa with tie, 0x12=ipa with ZWJ, 0x13=ipa with separators
|
||||
|
||||
phon_out = GetTranslatedPhonemeString(phoneme_mode);
|
||||
if(option_phonemes > 0)
|
||||
phon_out = GetTranslatedPhonemeString(option_phonemes);
|
||||
if(option_phonemes & 0xf)
|
||||
{
|
||||
fprintf(f_trans,"%s\n",phon_out);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user