mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-12-01 06:27:54 +00:00
[1.38]
Lang: en-us pronunciation rule changes, adjust some phonemes. Lang: pl, fr phoneme adjustments. espeakedit: Fix generation of file "dict_phonemes" (.replace could cause phonemes to be missed). git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@189 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
+2
-2
@@ -35,8 +35,8 @@
|
||||
#include "translate.h"
|
||||
#include "wave.h"
|
||||
|
||||
const char *version_string = "1.38.03 01.Sep.08";
|
||||
const int version_phdata = 0x013800;
|
||||
const char *version_string = "1.39 08.Sep.08";
|
||||
const int version_phdata = 0x013900;
|
||||
|
||||
int option_device_number = -1;
|
||||
|
||||
|
||||
@@ -376,6 +376,7 @@ void FindPhonemesUsed(void)
|
||||
{//========================
|
||||
int hash;
|
||||
char *p;
|
||||
unsigned int *pw;
|
||||
char *start;
|
||||
char *next;
|
||||
unsigned char c;
|
||||
@@ -397,6 +398,18 @@ void FindPhonemesUsed(void)
|
||||
}
|
||||
if(*p == RULE_GROUP_START)
|
||||
{
|
||||
if(p[1] == RULE_REPLACEMENTS)
|
||||
{
|
||||
p++;
|
||||
pw = (unsigned int *)(((long)p+4) & ~3); // advance to next word boundary
|
||||
while(pw[0] != 0)
|
||||
{
|
||||
pw += 2; // find the end of the replacement list, each entry is 2 words.
|
||||
}
|
||||
p = (char *)(pw+1);
|
||||
continue;
|
||||
}
|
||||
|
||||
if(p[1] == RULE_LETTERGP2)
|
||||
{
|
||||
while(*p != RULE_GROUP_END) p++;
|
||||
|
||||
Reference in New Issue
Block a user