mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-30 14:22:29 +00:00
Use the place of articulation constants to specify the place-based conditions.
This commit is contained in:
@@ -631,13 +631,10 @@ static bool InterpretCondition(Translator *tr, int control, PHONEME_LIST *plist,
|
||||
switch (instn & 0xe0)
|
||||
{
|
||||
case CONDITION_IS_PHONEME_TYPE:
|
||||
// phoneme type, vowel, nasal, fricative, etc
|
||||
return ph->type == data;
|
||||
case 0x20:
|
||||
// place of articulation
|
||||
case CONDITION_IS_PLACE_OF_ARTICULATION:
|
||||
return ((ph->phflags >> 16) & 0xf) == data;
|
||||
case CONDITION_IS_PHFLAG_SET:
|
||||
// is a bit set in phoneme flags
|
||||
return (ph->phflags & (1 << data)) != 0;
|
||||
case 0x80:
|
||||
switch (data)
|
||||
|
||||
Reference in New Issue
Block a user