mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 21:39:47 +00:00
[1.43.52]
espeakedit --compile also compiles the intonation data Added feature to produce phonemes as International Phonetic Alphabet. phoneme definitions: Added "ipa" instruction to specify IPA phoneme name. When spelling as individual characters, calculate the stress position for each character name. git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@249 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
+10
-4
@@ -360,14 +360,14 @@ void SetParameter(int parameter, int value, int relative)
|
||||
|
||||
|
||||
|
||||
static void DoEmbedded2(int &embix)
|
||||
static void DoEmbedded2(int *embix)
|
||||
{//================================
|
||||
// There were embedded commands in the text at this point
|
||||
|
||||
unsigned int word;
|
||||
|
||||
do {
|
||||
word = embedded_list[embix++];
|
||||
word = embedded_list[(*embix)++];
|
||||
|
||||
if((word & 0x1f) == EMBED_S)
|
||||
{
|
||||
@@ -420,7 +420,7 @@ void CalcLengths(Translator *tr)
|
||||
|
||||
if(p->synthflags & SFLAG_EMBEDDED)
|
||||
{
|
||||
DoEmbedded2(embedded_ix);
|
||||
DoEmbedded2(&embedded_ix);
|
||||
}
|
||||
|
||||
type = p->type;
|
||||
@@ -734,6 +734,12 @@ if(p->type != phVOWEL)
|
||||
}
|
||||
p->length = length_mod;
|
||||
|
||||
if(p->env >= (N_ENVELOPE_DATA-1))
|
||||
{
|
||||
fprintf(stderr,"espeak: Bad intonation data\n");
|
||||
p->env = 0;
|
||||
}
|
||||
|
||||
// pre-vocalic part
|
||||
// set last-pitch
|
||||
env2 = p->env + 1; // version for use with preceding semi-vowel
|
||||
@@ -741,7 +747,7 @@ if(p->type != phVOWEL)
|
||||
if(p->tone_ph != 0)
|
||||
{
|
||||
InterpretPhoneme2(p->tone_ph, &phdata_tone);
|
||||
pitch_env = LookupEnvelope(phdata_tone.pitch_env);
|
||||
pitch_env = GetEnvelope(phdata_tone.pitch_env);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user