mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-01 21:58:52 +00:00
[1.30] Add option for a pause between words: command option -g or espeak_SetParameter(espeak_WORDGAP)
Add different intonation styles (attribute "intonation" in voices files). git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@114 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
+10
-1
@@ -39,6 +39,8 @@ static const char *help_text =
|
||||
"spoken from stdin, each line separately.\n\n"
|
||||
"-a <integer>\n"
|
||||
"\t Amplitude, 0 to 200, default is 100\n"
|
||||
"-g <integer>\n"
|
||||
"\t Word gap. Pause between words, units of 10mS at the default speed\n"
|
||||
"-l <integer>\n"
|
||||
"\t Line length. If not zero (which is the default), consider\n"
|
||||
"\t lines less than this length as end-of-clause\n"
|
||||
@@ -297,6 +299,7 @@ int main (int argc, char **argv)
|
||||
int volume = -1;
|
||||
int speed = -1;
|
||||
int pitch = -1;
|
||||
int wordgap = -1;
|
||||
int option_capitals = -1;
|
||||
int option_punctuation = -1;
|
||||
int option_phonemes = -1;
|
||||
@@ -319,7 +322,7 @@ int main (int argc, char **argv)
|
||||
|
||||
while(true)
|
||||
{
|
||||
c = getopt_long (argc, argv, "a:bf:hk:l:mp:qs:v:w:xXz",
|
||||
c = getopt_long (argc, argv, "a:bf:g:hk:l:mp:qs:v:w:xXz",
|
||||
long_options, &option_index);
|
||||
|
||||
/* Detect the end of the options. */
|
||||
@@ -378,6 +381,10 @@ int main (int argc, char **argv)
|
||||
speed = atoi(optarg);
|
||||
break;
|
||||
|
||||
case 'g':
|
||||
wordgap = atoi(optarg);
|
||||
break;
|
||||
|
||||
case 'v':
|
||||
strncpy0(voicename,optarg,sizeof(voicename));
|
||||
break;
|
||||
@@ -474,6 +481,8 @@ int main (int argc, char **argv)
|
||||
espeak_SetParameter(espeakCAPITALS,option_capitals,0);
|
||||
if(option_punctuation >= 0)
|
||||
espeak_SetParameter(espeakPUNCTUATION,option_punctuation,0);
|
||||
if(wordgap >= 0)
|
||||
espeak_SetParameter(espeakWORDGAP,wordgap,0);
|
||||
if(option_linelength > 0)
|
||||
espeak_SetParameter(espeakLINELENGTH,option_linelength,0);
|
||||
if(option_punctuation == 2)
|
||||
|
||||
Reference in New Issue
Block a user