| SynthesizeInit(); | SynthesizeInit(); | ||||
| InitNamedata(); | InitNamedata(); | ||||
| VoiceReset(0); | |||||
| for (param = 0; param < N_SPEECH_PARAM; param++) | for (param = 0; param < N_SPEECH_PARAM; param++) | ||||
| param_stack[0].parameter[param] = param_defaults[param]; | param_stack[0].parameter[param] = param_defaults[param]; | ||||
| return 0; | |||||
| SetParameter(espeakRATE, 175, 0); | |||||
| SetParameter(espeakVOLUME, 100, 0); | |||||
| SetParameter(espeakCAPITALS, option_capitals, 0); | |||||
| SetParameter(espeakPUNCTUATION, option_punctuation, 0); | |||||
| SetParameter(espeakWORDGAP, 0, 0); | |||||
| #ifdef USE_ASYNC | |||||
| fifo_init(); | |||||
| #endif | |||||
| return ENS_OK; | |||||
| } | } | ||||
| #pragma GCC visibility pop | #pragma GCC visibility pop | ||||
| option_phonemes = 0; | option_phonemes = 0; | ||||
| option_phoneme_events = (options & (espeakINITIALIZE_PHONEME_EVENTS | espeakINITIALIZE_PHONEME_IPA)); | option_phoneme_events = (options & (espeakINITIALIZE_PHONEME_EVENTS | espeakINITIALIZE_PHONEME_IPA)); | ||||
| VoiceReset(0); | |||||
| for (param = 0; param < N_SPEECH_PARAM; param++) | |||||
| param_stack[0].parameter[param] = saved_parameters[param] = param_defaults[param]; | |||||
| SetParameter(espeakRATE, 175, 0); | |||||
| SetParameter(espeakVOLUME, 100, 0); | |||||
| SetParameter(espeakCAPITALS, option_capitals, 0); | |||||
| SetParameter(espeakPUNCTUATION, option_punctuation, 0); | |||||
| SetParameter(espeakWORDGAP, 0, 0); | |||||
| #ifdef USE_ASYNC | |||||
| fifo_init(); | |||||
| #endif | |||||
| return samplerate; | return samplerate; | ||||
| } | } | ||||