mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-24 04:23:44 +00:00
Merge branch 'upstream' into development
Conflicts: dictsource/dict_phonemes phsource/compile_report platforms/riscos/cpp/speak_riscos platforms/riscos/s/cmhgfile
This commit is contained in:
@@ -168,6 +168,9 @@ int GetFileLength(const char *filename)
|
||||
} /* end of GetFileLength */
|
||||
|
||||
|
||||
void MarkerEvent(int type, unsigned int char_position, int value, int value2, unsigned char *out_ptr)
|
||||
{
|
||||
}
|
||||
|
||||
void ReadVoiceNames2(char *directory)
|
||||
{//==================================
|
||||
@@ -222,10 +225,6 @@ void ReadVoiceNames2(char *directory)
|
||||
if(n_voice_files >= (N_VOICE_NAMES-1))
|
||||
continue;
|
||||
voice_names[n_voice_files++] = p;
|
||||
if(strcmp(p,"en")==0)
|
||||
{
|
||||
voice_names[n_voice_files++] = "en+f2";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -416,7 +415,7 @@ int initialise(void)
|
||||
|
||||
WavegenInit(22050,0);
|
||||
LoadPhData();
|
||||
SetVoiceStack(NULL);
|
||||
SetVoiceStack(NULL, "");
|
||||
SynthesizeInit();
|
||||
return(0);
|
||||
}
|
||||
@@ -644,8 +643,6 @@ _kernel_oserror *swi_handler(int swi_no, int *r, void *pw)
|
||||
{
|
||||
int value;
|
||||
int q_length;
|
||||
int speed;
|
||||
int amp;
|
||||
value = r[0];
|
||||
|
||||
switch(swi_no)
|
||||
@@ -699,8 +696,7 @@ _kernel_oserror *swi_handler(int swi_no, int *r, void *pw)
|
||||
break;
|
||||
|
||||
case 8: /* speed */
|
||||
speed = (value * 160)/140;
|
||||
SetParameter(espeakRATE,speed,0);
|
||||
SetParameter(espeakRATE,value,0);
|
||||
break;
|
||||
|
||||
case 9: /* word_gap */
|
||||
@@ -716,8 +712,7 @@ _kernel_oserror *swi_handler(int swi_no, int *r, void *pw)
|
||||
break;
|
||||
|
||||
case 13: /* volume */
|
||||
amp = (value*45)/100;
|
||||
SetParameter(espeakVOLUME,amp,0);
|
||||
SetParameter(espeakVOLUME,value,0);
|
||||
WavegenSetVoice(voice);
|
||||
break;
|
||||
}
|
||||
@@ -729,7 +724,7 @@ _kernel_oserror *swi_handler(int swi_no, int *r, void *pw)
|
||||
void PitchAdjust(int pitch_adjustment)
|
||||
{//===================================
|
||||
int ix, factor;
|
||||
|
||||
|
||||
extern unsigned char pitch_adjust_tab[MAX_PITCH_VALUE+1];
|
||||
|
||||
voice->pitch_base = (voice->pitch_base * pitch_adjust_tab[pitch_adjustment])/128;
|
||||
@@ -911,7 +906,7 @@ void command_line(char *arg_string, int wait)
|
||||
case 'm':
|
||||
option_ssml = 1;
|
||||
break;
|
||||
|
||||
|
||||
case 'p':
|
||||
pitch_adjustment = param_number(&p);
|
||||
break;
|
||||
@@ -942,7 +937,7 @@ void command_line(char *arg_string, int wait)
|
||||
wordgap = param_number(&p);
|
||||
SetParameter(espeakWORDGAP,wordgap,0);
|
||||
break;
|
||||
|
||||
|
||||
case 'v':
|
||||
strncpy0(voicename,param_string(&p),sizeof(voicename));
|
||||
break;
|
||||
@@ -1307,8 +1302,8 @@ _kernel_oserror *user_init(char *cmd_fail, int podule_base, void *pw)
|
||||
for(param=0; param<N_SPEECH_PARAM; param++)
|
||||
param_stack[0].parameter[param] = param_defaults[param];
|
||||
|
||||
SetParameter(espeakRATE,170,0);
|
||||
SetParameter(espeakVOLUME,65,0);
|
||||
SetParameter(espeakRATE,175,0);
|
||||
SetParameter(espeakVOLUME,70,0);
|
||||
|
||||
WavegenSetVoice(voice);
|
||||
atexit(terminate_module);
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
initialisation-code: user_init
|
||||
|
||||
title-string: Speak
|
||||
help-string: Speak 3.40 Text to Speech (32 bit)
|
||||
help-string: Speak 3.46 Text to Speech (32 bit)
|
||||
|
||||
swi-chunk-base-number: &4ad80
|
||||
swi-handler-code: swi_handler
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
//#define SPECT_EDITOR
|
||||
#define INCLUDE_KLATT
|
||||
#define INCLUDE_MBROLA
|
||||
#define INCLUDE_SONIC
|
||||
|
||||
#include <windows.h>
|
||||
#define PLATFORM_WINDOWS
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
//#define SPECT_EDITOR
|
||||
#define INCLUDE_KLATT
|
||||
#define INCLUDE_MBROLA
|
||||
#define INCLUDE_SONIC
|
||||
|
||||
#include <windows.h>
|
||||
#define PLATFORM_WINDOWS
|
||||
|
||||
@@ -36,6 +36,8 @@
|
||||
#define NO_VARIADIC_MACROS
|
||||
#define INCLUDE_KLATT
|
||||
#define INCLUDE_MBROLA
|
||||
#define INCLUDE_SONIC
|
||||
|
||||
|
||||
// will look for espeak_data directory here, and also in user's home directory
|
||||
#define PATH_ESPEAK_DATA "/usr/share/espeak-data"
|
||||
|
||||
@@ -39,6 +39,8 @@
|
||||
#define LIBRARY
|
||||
#define INCLUDE_KLATT
|
||||
#define INCLUDE_MBROLA
|
||||
#define INCLUDE_SONIC
|
||||
|
||||
|
||||
// will look for espeak_data directory here, and also in user's home directory
|
||||
#define PATH_ESPEAK_DATA "/usr/share/espeak-data"
|
||||
|
||||
@@ -41,6 +41,8 @@
|
||||
//#define USE_NANOSLEEP
|
||||
#define INCLUDE_KLATT
|
||||
#define INCLUDE_MBROLA
|
||||
#define INCLUDE_SONIC
|
||||
|
||||
|
||||
// will look for espeak_data directory here, and also in user's home directory
|
||||
#define PATH_ESPEAK_DATA "/usr/share/espeak-data"
|
||||
|
||||
Reference in New Issue
Block a user