mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 13:38:47 +00:00
[1.47.03c]
Phoneme definition files: added prev2PhW() and next3PhW(). Added language: ms (Malay). git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@332 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
+17
-1
@@ -35,7 +35,7 @@
|
||||
#include "translate.h"
|
||||
#include "wave.h"
|
||||
|
||||
const char *version_string = "1.47.03b 22.Mar.13";
|
||||
const char *version_string = "1.47.03c 23.Mar.13";
|
||||
const int version_phdata = 0x014701;
|
||||
|
||||
int option_device_number = -1;
|
||||
@@ -615,6 +615,7 @@ static int CountVowelPosition(PHONEME_LIST *plist)
|
||||
static bool InterpretCondition(Translator *tr, int control, PHONEME_LIST *plist, USHORT *p_prog, WORD_PH_DATA *worddata)
|
||||
{//========================================================================================================================
|
||||
int which;
|
||||
int ix;
|
||||
unsigned int data;
|
||||
int instn;
|
||||
int instn2;
|
||||
@@ -705,6 +706,21 @@ static bool InterpretCondition(Translator *tr, int control, PHONEME_LIST *plist,
|
||||
return(false); // no previous vowel
|
||||
plist = &(worddata->prev_vowel);
|
||||
break;
|
||||
|
||||
case 9: // next3PhW
|
||||
for(ix=1; ix<=3; ix++)
|
||||
{
|
||||
if(plist[ix].sourceix)
|
||||
return(false);
|
||||
}
|
||||
plist = &plist[3];
|
||||
break;
|
||||
|
||||
case 10: // prev2PhW
|
||||
if((plist[0].sourceix) || (plist[-1].sourceix))
|
||||
return(false);
|
||||
plist-=2;
|
||||
break;
|
||||
}
|
||||
|
||||
if((which == 0) || (which == 5))
|
||||
|
||||
Reference in New Issue
Block a user