ports/audio/espeak-ng/files/patch-src_include_espeak-ng_speak__lib.h
Kenneth Raplee e54088787f audio/espeak-ng: import upstream patch for support of "Piper"
This patch imports the upstream pull request #2127 that has been
accepted on 2025-03-04.

It adds the espeak_TextToPhonemesWithTerminator() function to the
library, which is required by the Piper text to speech software.

PR:		287241
2025-06-03 08:57:49 +02:00

16 lines
725 B
C

--- src/include/espeak-ng/speak_lib.h.orig 2024-12-12 13:28:01 UTC
+++ src/include/espeak-ng/speak_lib.h
@@ -544,6 +544,12 @@ extern "C"
#ifdef __cplusplus
extern "C"
#endif
+ESPEAK_API const char *espeak_TextToPhonemesWithTerminator(const void **textptr, int textmode, int phonememode, int *terminator);
+/* Version of espeak_TextToPhonemes that also returns the clause terminator (e.g., CLAUSE_INTONATION_FULL_STOP) */
+
+#ifdef __cplusplus
+extern "C"
+#endif
ESPEAK_API void espeak_CompileDictionary(const char *path, FILE *log, int flags);
/* Compile pronunciation dictionary for a language which corresponds to the currently
selected voice. The required voice should be selected before calling this function.