mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-02 14:04:27 +00:00
[1.25.14] Added feature to define collections of letter sequences in *_rules files for use in rules.
lang=pt Reduce phoneme [&~] to [&] in unstressed syllables. git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@30 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
+6
-2
@@ -378,7 +378,6 @@ void FindPhonemesUsed(void)
|
||||
int hash;
|
||||
char *p;
|
||||
char *start;
|
||||
char *group;
|
||||
char *next;
|
||||
unsigned char c;
|
||||
int count = 0;
|
||||
@@ -397,7 +396,12 @@ void FindPhonemesUsed(void)
|
||||
}
|
||||
if(*p == RULE_GROUP_START)
|
||||
{
|
||||
group = p;
|
||||
if(p[1] == RULE_LETTERGP2)
|
||||
{
|
||||
while(*p != RULE_GROUP_END) p++;
|
||||
continue;
|
||||
}
|
||||
|
||||
p += (strlen(p)+1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user