From 81e3e188cf46024df25a5cf2421f4077c8a5a9b1 Mon Sep 17 00:00:00 2001 From: jonsd Date: Sat, 1 Jun 2013 02:28:37 +0000 Subject: [PATCH] Update function prototype for espeak_TextToPhonemes() in speak_lib.h git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@362 d46cf337-b52f-0410-862d-fd96e6ae7743 --- src/speak_lib.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/speak_lib.h b/src/speak_lib.h index a5b2604c..65d153c1 100644 --- a/src/speak_lib.h +++ b/src/speak_lib.h @@ -484,13 +484,15 @@ ESPEAK_API void espeak_SetPhonemeTrace(int value, FILE *stream); #ifdef __cplusplus extern "C" #endif -ESPEAK_API void espeak_TextToPhonemes(const void *text, char *buffer, int size, int textmode, int phonememode); +ESPEAK_API const char *espeak_TextToPhonemes(const void **textptr, int textmode, int phonememode); /* Translates text into phonemes. Call espeak_SetVoiceByName() first, to select a language. - text: The text to translate, terminated by a zero character. - buffer: Output buffer for the phoneme translation. + It returns a pointer to a character string which contains the phonemes for the text up to + end of a sentence, or comma, semicolon, colon, or similar punctuation. - size: Size of the output buffer in bytes. + textptr: The address of a pointer to the input text which is terminated by a zero character. + On return, the pointer has been advanced past the text which has been translated, or else set + to NULL to indicate that the end of the text has been reached. textmode: Type of character codes, one of: espeakCHARS_UTF8 UTF8 encoding