#ifndef ESPEAK_COMMAND_H | #ifndef ESPEAK_COMMAND_H | ||||
#define ESPEAK_COMMAND_H | #define ESPEAK_COMMAND_H | ||||
#include <unistd.h> | |||||
#ifdef __cplusplus | #ifdef __cplusplus | ||||
extern "C" | extern "C" | ||||
{ | { |
#include <pthread.h> | #include <pthread.h> | ||||
#include <semaphore.h> | #include <semaphore.h> | ||||
#include <stdbool.h> | #include <stdbool.h> | ||||
#include <stdint.h> | |||||
#include <stdlib.h> | #include <stdlib.h> | ||||
#include <string.h> | #include <string.h> | ||||
#include <sys/time.h> | #include <sys/time.h> |
#include <errno.h> | #include <errno.h> | ||||
#include <pthread.h> | #include <pthread.h> | ||||
#include <semaphore.h> | #include <semaphore.h> | ||||
#include <stdint.h> | |||||
#include <stdlib.h> | #include <stdlib.h> | ||||
#include <string.h> | #include <string.h> | ||||
#include <sys/time.h> | #include <sys/time.h> | ||||
#include <espeak-ng/espeak_ng.h> | #include <espeak-ng/espeak_ng.h> | ||||
#include "speech.h" | #include "speech.h" | ||||
#include "espeak_command.h" | |||||
#include "fifo.h" | #include "fifo.h" | ||||
#include "wave.h" | #include "wave.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. | ||||
#include "espeak_command.h" | |||||
#ifdef __cplusplus | #ifdef __cplusplus | ||||
extern "C" | extern "C" | ||||
{ | { |
#include <ctype.h> | #include <ctype.h> | ||||
#include <errno.h> | #include <errno.h> | ||||
#include <locale.h> | #include <locale.h> | ||||
#include <stdint.h> | |||||
#include <stdio.h> | #include <stdio.h> | ||||
#include <stdlib.h> | #include <stdlib.h> | ||||
#include <string.h> | #include <string.h> | ||||
#include "synthesize.h" | #include "synthesize.h" | ||||
#include "voice.h" | #include "voice.h" | ||||
#include "translate.h" | #include "translate.h" | ||||
#include "espeak_command.h" | |||||
#include "fifo.h" | #include "fifo.h" | ||||
#include "event.h" | #include "event.h" | ||||
#include "wave.h" | #include "wave.h" |
#ifndef SPEECH_H | #ifndef SPEECH_H | ||||
#define SPEECH_H | #define SPEECH_H | ||||
#include <sys/types.h> | |||||
#ifdef __cplusplus | #ifdef __cplusplus | ||||
extern "C" | extern "C" | ||||
{ | { |
#include <assert.h> | #include <assert.h> | ||||
#include <math.h> | #include <math.h> | ||||
#include <stdbool.h> | #include <stdbool.h> | ||||
#include <stdint.h> | |||||
#include <stdio.h> | #include <stdio.h> | ||||
#include <stdlib.h> | #include <stdlib.h> | ||||
#include <string.h> | #include <string.h> |
/* | /* | ||||
* Copyright (C) 2007, Gilles Casse <[email protected]> | * Copyright (C) 2007, Gilles Casse <[email protected]> | ||||
* Copyright (C) 2015 Reece H. Dunn | |||||
* Copyright (C) 2015-2016 Reece H. Dunn | |||||
* based on AudioIO.cc (Audacity-1.2.4b) and wavegen.cpp | * based on AudioIO.cc (Audacity-1.2.4b) and wavegen.cpp | ||||
* | * | ||||
* This program is free software; you can redistribute it and/or modify | * This program is free software; you can redistribute it and/or modify | ||||
#ifndef WAVE_H | #ifndef WAVE_H | ||||
#define WAVE_H | #define WAVE_H | ||||
#ifndef PLATFORM_DOS | |||||
#include "stdint.h" | |||||
#endif | |||||
#ifdef __cplusplus | #ifdef __cplusplus | ||||
extern "C" | extern "C" | ||||
{ | { |