#include <ctype.h> | #include <ctype.h> | ||||
#include <errno.h> | #include <errno.h> | ||||
#include <stdbool.h> | |||||
#include <stdint.h> | #include <stdint.h> | ||||
#include <stdio.h> | #include <stdio.h> | ||||
#include <stdlib.h> | #include <stdlib.h> |
#ifndef ESPEAK_NG_ERROR_API | #ifndef ESPEAK_NG_ERROR_API | ||||
#define ESPEAK_NG_ERROR_API | #define ESPEAK_NG_ERROR_API | ||||
#include <espeak-ng/espeak_ng.h> | |||||
#ifdef __cplusplus | #ifdef __cplusplus | ||||
extern "C" | extern "C" | ||||
{ | { |
* along with this program; if not, see: <http://www.gnu.org/licenses/>. | * along with this program; if not, see: <http://www.gnu.org/licenses/>. | ||||
*/ | */ | ||||
#ifndef ESPEAK_COMMAND_H | |||||
#define ESPEAK_COMMAND_H | |||||
#ifndef ESPEAK_NG_COMMAND_H | |||||
#define ESPEAK_NG_COMMAND_H | |||||
#include <espeak-ng/espeak_ng.h> | |||||
#ifdef __cplusplus | #ifdef __cplusplus | ||||
extern "C" | extern "C" |
* along with this program; if not, see: <http://www.gnu.org/licenses/>. | * along with this program; if not, see: <http://www.gnu.org/licenses/>. | ||||
*/ | */ | ||||
#ifndef EVENT_H | |||||
#define EVENT_H | |||||
/* | /* | ||||
Manage events (sentence, word, mark, end,...), is responsible of calling the external | Manage events (sentence, word, mark, end,...), is responsible of calling the external | ||||
callback as soon as the relevant audio sample is played. | callback as soon as the relevant audio sample is played. | ||||
*/ | */ | ||||
#ifndef ESPEAK_NG_EVENT_H | |||||
#define ESPEAK_NG_EVENT_H | |||||
#include <espeak-ng/espeak_ng.h> | |||||
#ifdef __cplusplus | #ifdef __cplusplus | ||||
extern "C" | extern "C" | ||||
{ | { |
* along with this program; if not, see: <http://www.gnu.org/licenses/>. | * along with this program; if not, see: <http://www.gnu.org/licenses/>. | ||||
*/ | */ | ||||
#ifndef FIFO_H | |||||
#define FIFO_H | |||||
// Helps to add espeak commands in a first-in first-out queue | // Helps to add espeak commands in a first-in first-out queue | ||||
// and run them asynchronously. | // and run them asynchronously. | ||||
#ifndef ESPEAK_NG_FIFO_H | |||||
#define ESPEAK_NG_FIFO_H | |||||
#include <espeak-ng/espeak_ng.h> | |||||
#include "espeak_command.h" | |||||
#ifdef __cplusplus | #ifdef __cplusplus | ||||
extern "C" | extern "C" | ||||
{ | { |
* conversions, and accommodated conversions involving +/- infinity, | * conversions, and accommodated conversions involving +/- infinity, | ||||
* NaN's, and denormalized numbers. | * NaN's, and denormalized numbers. | ||||
*/ | */ | ||||
#ifndef IEEE_H | #ifndef IEEE_H | ||||
#define IEEE_H | #define IEEE_H | ||||
* along with this program; if not, see: <http://www.gnu.org/licenses/>. | * along with this program; if not, see: <http://www.gnu.org/licenses/>. | ||||
*/ | */ | ||||
#ifndef ESPEAK_NG_KLATT_H | |||||
#define ESPEAK_NG_KLATT_H | |||||
#include "speech.h" | |||||
#include "synthesize.h" | |||||
#ifdef __cplusplus | #ifdef __cplusplus | ||||
extern "C" | extern "C" | ||||
{ | { | ||||
#ifdef __cplusplus | #ifdef __cplusplus | ||||
} | } | ||||
#endif | #endif | ||||
#endif |
* along with this program; if not, see: <http://www.gnu.org/licenses/>. | * along with this program; if not, see: <http://www.gnu.org/licenses/>. | ||||
*/ | */ | ||||
#ifndef ESPEAK_NG_PHONEME_H | |||||
#define ESPEAK_NG_PHONEME_H | |||||
#include <espeak-ng/espeak_ng.h> | |||||
#ifdef __cplusplus | #ifdef __cplusplus | ||||
extern "C" | extern "C" | ||||
{ | { | ||||
#ifdef __cplusplus | #ifdef __cplusplus | ||||
} | } | ||||
#endif | #endif | ||||
#endif |
* along with this program; if not, see: <http://www.gnu.org/licenses/>. | * along with this program; if not, see: <http://www.gnu.org/licenses/>. | ||||
*/ | */ | ||||
#ifndef ESPEAK_NG_SINTAB_H | |||||
#define ESPEAK_NG_SINTAB_H | |||||
#ifdef __cplusplus | #ifdef __cplusplus | ||||
extern "C" | extern "C" | ||||
{ | { | ||||
#ifdef __cplusplus | #ifdef __cplusplus | ||||
} | } | ||||
#endif | #endif | ||||
#endif |
* along with this program; if not, see: <http://www.gnu.org/licenses/>. | * along with this program; if not, see: <http://www.gnu.org/licenses/>. | ||||
*/ | */ | ||||
#ifndef ESPEAK_NG_SPECT_H | |||||
#define ESPEAK_NG_SPECT_H | |||||
#include <espeak-ng/espeak_ng.h> | |||||
#include "synthesize.h" | |||||
#include "speech.h" | |||||
#ifdef __cplusplus | #ifdef __cplusplus | ||||
extern "C" | extern "C" | ||||
{ | { | ||||
#ifdef __cplusplus | #ifdef __cplusplus | ||||
} | } | ||||
#endif | #endif | ||||
#endif |
* along with this program; if not, see: <http://www.gnu.org/licenses/>. | * along with this program; if not, see: <http://www.gnu.org/licenses/>. | ||||
*/ | */ | ||||
#ifndef SPEECH_H | |||||
#define SPEECH_H | |||||
#ifndef ESPEAK_NG_SPEECH_H | |||||
#define ESPEAK_NG_SPEECH_H | |||||
#include <espeak-ng/espeak_ng.h> | |||||
#ifdef __cplusplus | #ifdef __cplusplus | ||||
extern "C" | extern "C" |
#ifndef ESPEAK_NG_SSML_API | #ifndef ESPEAK_NG_SSML_API | ||||
#define ESPEAK_NG_SSML_API | #define ESPEAK_NG_SSML_API | ||||
#include <stdbool.h> | |||||
#include <wchar.h> | |||||
#include <espeak-ng/speak_lib.h> | |||||
#ifdef __cplusplus | #ifdef __cplusplus | ||||
extern "C" | extern "C" | ||||
{ | { |
* along with this program; if not, see: <http://www.gnu.org/licenses/>. | * along with this program; if not, see: <http://www.gnu.org/licenses/>. | ||||
*/ | */ | ||||
#include <stdbool.h> | |||||
#ifndef ESPEAK_NG_SYNTHESIZE_H | |||||
#define ESPEAK_NG_SYNTHESIZE_H | |||||
#include "speech.h" | |||||
#ifdef __cplusplus | #ifdef __cplusplus | ||||
extern "C" | extern "C" | ||||
{ | { | ||||
#endif | #endif | ||||
#include <stdint.h> | |||||
#include <stdbool.h> | |||||
#include <espeak-ng/espeak_ng.h> | |||||
#include "phoneme.h" | |||||
#include "voice.h" | |||||
#define espeakINITIALIZE_PHONEME_IPA 0x0002 // move this to speak_lib.h, after eSpeak version 1.46.02 | #define espeakINITIALIZE_PHONEME_IPA 0x0002 // move this to speak_lib.h, after eSpeak version 1.46.02 | ||||
#define N_PHONEME_LIST 1000 // enough for source[N_TR_SOURCE] full of text, else it will truncate | #define N_PHONEME_LIST 1000 // enough for source[N_TR_SOURCE] full of text, else it will truncate | ||||
#ifdef __cplusplus | #ifdef __cplusplus | ||||
} | } | ||||
#endif | #endif | ||||
#endif |
* along with this program; if not, see: <http://www.gnu.org/licenses/>. | * along with this program; if not, see: <http://www.gnu.org/licenses/>. | ||||
*/ | */ | ||||
#ifndef ESPEAK_NG_TRANSLATE_H | |||||
#define ESPEAK_NG_TRANSLATE_H | |||||
#include <stdbool.h> | |||||
#include <espeak-ng/espeak_ng.h> | |||||
#include <espeak-ng/encoding.h> | |||||
#include "synthesize.h" | |||||
#ifdef __cplusplus | #ifdef __cplusplus | ||||
extern "C" | extern "C" | ||||
{ | { | ||||
#ifdef __cplusplus | #ifdef __cplusplus | ||||
} | } | ||||
#endif | #endif | ||||
#endif |
* along with this program; if not, see: <http://www.gnu.org/licenses/>. | * along with this program; if not, see: <http://www.gnu.org/licenses/>. | ||||
*/ | */ | ||||
#ifndef ESPEAK_NG_VOICE_H | |||||
#define ESPEAK_NG_VOICE_H | |||||
#include <espeak-ng/espeak_ng.h> | |||||
#include "speech.h" | |||||
#ifdef __cplusplus | #ifdef __cplusplus | ||||
extern "C" | extern "C" | ||||
{ | { | ||||
#ifdef __cplusplus | #ifdef __cplusplus | ||||
} | } | ||||
#endif | #endif | ||||
#endif |
#include <espeak-ng/espeak_ng.h> | #include <espeak-ng/espeak_ng.h> | ||||
#include <espeak-ng/speak_lib.h> | #include <espeak-ng/speak_lib.h> | ||||
#include "synthesize.h" | |||||
#include "speech.h" | #include "speech.h" | ||||
#include "phoneme.h" | #include "phoneme.h" | ||||
#include "voice.h" | #include "voice.h" | ||||
#include "synthesize.h" | |||||
#ifdef INCLUDE_KLATT | #ifdef INCLUDE_KLATT | ||||
#include "klatt.h" | #include "klatt.h" |