code cleanup: static phoneme_callback

This commit is contained in:
Yury Popov
2022-11-19 17:52:16 +03:00
parent fdc2984386
commit 25c4dc150a
3 changed files with 9 additions and 8 deletions
-6
View File
@@ -84,7 +84,6 @@ static int min_buffer_length = 60; // minimum buffer length in ms
static espeak_ng_STATUS err = ENS_OK;
static t_espeak_callback *synth_callback = NULL;
int (*phoneme_callback)(const char *) = NULL;
char path_home[N_PATH_HOME]; // this is the espeak-ng-data directory
extern int saved_parameters[N_SPEECH_PARAM]; // Parameters saved on synthesis start
@@ -653,11 +652,6 @@ ESPEAK_API void espeak_SetSynthCallback(t_espeak_callback *SynthCallback)
#endif
}
ESPEAK_API void espeak_SetPhonemeCallback(int (*PhonemeCallback)(const char *))
{
phoneme_callback = PhonemeCallback;
}
ESPEAK_NG_API espeak_ng_STATUS
espeak_ng_Synthesize(const void *text, size_t size,
unsigned int position,