mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-05 14:47:26 +00:00
[1.30.04] SSML <audio src=""> now works without using a UriCallback() function, and works with the command-line espeak.
Pitch changes for mbrola are now applied over the first 80% of the phoneme, not over the whole length of the phoneme. This seems to give better intonation for mbrola voices. git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@118 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
+4
-4
@@ -62,7 +62,7 @@ static int syllable_centre;
|
||||
|
||||
static voice_t *new_voice=NULL;
|
||||
|
||||
int n_soundicon_tab=0;
|
||||
int n_soundicon_tab=N_SOUNDICON_SLOTS;
|
||||
SOUND_ICON soundicon_tab[N_SOUNDICON_TAB];
|
||||
|
||||
#define RMS_GLOTTAL1 35 // vowel before glottal stop
|
||||
@@ -1041,13 +1041,13 @@ static void DoEmbedded(int &embix, int sourceix)
|
||||
case EMBED_I: // play dynamically loaded wav data (sound icon)
|
||||
if((int)value < n_soundicon_tab)
|
||||
{
|
||||
if((wcmdq[wcmdq_tail][1] = soundicon_tab[value].length) != 0)
|
||||
if(soundicon_tab[value].length != 0)
|
||||
{
|
||||
DoPause(10); // ensure a break in the speech
|
||||
wcmdq[wcmdq_tail][0] = WCMD_WAVE;
|
||||
wcmdq[wcmdq_tail][1] = soundicon_tab[value].length;
|
||||
wcmdq[wcmdq_tail][2] = (long)soundicon_tab[value].data;
|
||||
wcmdq[wcmdq_tail][3] = 0x1f00; // 16 bit data, amp=32
|
||||
wcmdq[wcmdq_tail][2] = (long)soundicon_tab[value].data + 44; // skip WAV header
|
||||
wcmdq[wcmdq_tail][3] = 0x1500; // 16 bit data, amp=21
|
||||
WcmdqInc();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user