mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-03 06:12:55 +00:00
[1.26.01 Add "options" parameter to espeak_Initialize.
Add callback event: espeakEVENT_PHONEME git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@39 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
+3
-3
@@ -418,7 +418,7 @@ int main (int argc, char **argv)
|
||||
break;
|
||||
|
||||
case 0x104: // --voices
|
||||
espeak_Initialize(AUDIO_OUTPUT_SYNCHRONOUS,0,NULL);
|
||||
espeak_Initialize(AUDIO_OUTPUT_SYNCHRONOUS,0,NULL,0);
|
||||
DisplayVoices(stdout,optarg);
|
||||
exit(0);
|
||||
|
||||
@@ -431,7 +431,7 @@ int main (int argc, char **argv)
|
||||
if(option_waveout || quiet)
|
||||
{
|
||||
// writing to a file (or no output), we can use synchronous mode
|
||||
samplerate = espeak_Initialize(AUDIO_OUTPUT_SYNCHRONOUS,0,NULL);
|
||||
samplerate = espeak_Initialize(AUDIO_OUTPUT_SYNCHRONOUS,0,NULL,0);
|
||||
|
||||
espeak_SetSynthCallback(SynthCallback);
|
||||
if(option_waveout)
|
||||
@@ -443,7 +443,7 @@ int main (int argc, char **argv)
|
||||
else
|
||||
{
|
||||
// play the sound output
|
||||
samplerate = espeak_Initialize(AUDIO_OUTPUT_PLAYBACK,0,NULL);
|
||||
samplerate = espeak_Initialize(AUDIO_OUTPUT_PLAYBACK,0,NULL,0);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user