src/voices.cpp \ | src/voices.cpp \ | ||||
src/wavegen.cpp | src/wavegen.cpp | ||||
libespeak_FLAGS = | |||||
libespeak_SOURCE = \ | libespeak_SOURCE = \ | ||||
src/speak_lib.cpp \ | src/speak_lib.cpp \ | ||||
src/espeak_command.cpp \ | |||||
src/event.cpp \ | |||||
src/fifo.cpp \ | |||||
src/debug.cpp | src/debug.cpp | ||||
espeakedit_SOURCE = \ | espeakedit_SOURCE = \ | ||||
common_SOURCE += src/sonic.cpp | common_SOURCE += src/sonic.cpp | ||||
endif | endif | ||||
if OPT_ASYNC | |||||
libespeak_FLAGS += -DUSE_ASYNC | |||||
libespeak_SOURCE += \ | |||||
src/espeak_command.cpp \ | |||||
src/event.cpp \ | |||||
src/fifo.cpp | |||||
endif | |||||
if AUDIO_RUNTIME | if AUDIO_RUNTIME | ||||
wave_SOURCE = src/wave.cpp src/wave_pulse.cpp | wave_SOURCE = src/wave.cpp src/wave_pulse.cpp | ||||
wave_LIBS = -lpulse -lpulse-simple -lportaudio | wave_LIBS = -lpulse -lpulse-simple -lportaudio | ||||
lib_LTLIBRARIES += src/libespeak.la | lib_LTLIBRARIES += src/libespeak.la | ||||
src_libespeak_la_LDFLAGS = -version-info $(SHARED_VERSION) $(wave_LIBS) -lpthread | src_libespeak_la_LDFLAGS = -version-info $(SHARED_VERSION) $(wave_LIBS) -lpthread | ||||
src_libespeak_la_CXXFLAGS = $(common_FLAGS) $(wave_FLAGS) \ | |||||
src_libespeak_la_CXXFLAGS = $(common_FLAGS) $(libespeak_FLAGS) $(wave_FLAGS) \ | |||||
-fpic -fvisibility=hidden -D LIBRARY \ | -fpic -fvisibility=hidden -D LIBRARY \ | ||||
-pedantic -fno-exceptions -D PATH_ESPEAK_DATA=\"$(DATADIR)\" | -pedantic -fno-exceptions -D PATH_ESPEAK_DATA=\"$(DATADIR)\" | ||||
src_libespeak_la_SOURCES = $(common_SOURCE) $(libespeak_SOURCE) $(wave_SOURCE) | src_libespeak_la_SOURCES = $(common_SOURCE) $(libespeak_SOURCE) $(wave_SOURCE) | ||||
bin_PROGRAMS += src/espeakedit | bin_PROGRAMS += src/espeakedit | ||||
src_espeakedit_LDFLAGS = $(wave_LIBS) ${WX_LIBS} | src_espeakedit_LDFLAGS = $(wave_LIBS) ${WX_LIBS} | ||||
src_espeakedit_CXXFLAGS = ${WX_CXXFLAGS} $(common_FLAGS) $(wave_FLAGS) \ | |||||
src_espeakedit_CXXFLAGS = ${WX_CXXFLAGS} $(common_FLAGS) $(libespeak_FLAGS) $(wave_FLAGS) \ | |||||
-D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA -D_ESPEAKEDIT | -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA -D_ESPEAKEDIT | ||||
src_espeakedit_SOURCES = $(common_SOURCE) $(libespeak_SOURCE) $(espeakedit_SOURCE) $(wave_SOURCE) | src_espeakedit_SOURCES = $(common_SOURCE) $(libespeak_SOURCE) $(espeakedit_SOURCE) $(wave_SOURCE) | ||||
have_sonic=yes | have_sonic=yes | ||||
fi | fi | ||||
AC_ARG_WITH([async], | |||||
[AS_HELP_STRING([--with-async], [enable support for async command processing @<:@default=yes@:>@])], | |||||
[]) | |||||
if test "$with_async" = "no" ; then | |||||
have_async=no | |||||
else | |||||
have_async=yes | |||||
fi | |||||
AM_CONDITIONAL(OPT_KLATT, [test x"$have_klatt" = xyes]) | AM_CONDITIONAL(OPT_KLATT, [test x"$have_klatt" = xyes]) | ||||
AM_CONDITIONAL(OPT_MBROLA, [test x"$have_mbrola" = xyes]) | AM_CONDITIONAL(OPT_MBROLA, [test x"$have_mbrola" = xyes]) | ||||
AM_CONDITIONAL(OPT_SONIC, [test x"$have_sonic" = xyes]) | AM_CONDITIONAL(OPT_SONIC, [test x"$have_sonic" = xyes]) | ||||
AM_CONDITIONAL(OPT_ASYNC, [test x"$have_async" = xyes]) | |||||
dnl ================================================================ | dnl ================================================================ | ||||
dnl wxWidgets checks. | dnl wxWidgets checks. | ||||
Klatt: ${have_klatt} | Klatt: ${have_klatt} | ||||
MBROLA: ${have_mbrola} | MBROLA: ${have_mbrola} | ||||
Sonic: ${have_sonic} | Sonic: ${have_sonic} | ||||
Async: ${have_async} | |||||
]) | ]) |
/*************************************************************************** | /*************************************************************************** | ||||
* Copyright (C) 2007, Gilles Casse <[email protected]> * | * Copyright (C) 2007, Gilles Casse <[email protected]> * | ||||
* Copyright (C) 2013 Reece H. Dunn * | |||||
* * | * * | ||||
* This program is free software; you can redistribute it and/or modify * | * This program is free software; you can redistribute it and/or modify * | ||||
* it under the terms of the GNU General Public License as published by * | * it under the terms of the GNU General Public License as published by * | ||||
* Free Software Foundation, Inc., * | * Free Software Foundation, Inc., * | ||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * | ||||
***************************************************************************/ | ***************************************************************************/ | ||||
#include "speech.h" | |||||
#ifdef USE_ASYNC | |||||
// This source file is only used for asynchronious modes | // This source file is only used for asynchronious modes | ||||
#include "speech.h" | |||||
#include "espeak_command.h" | #include "espeak_command.h" | ||||
#include <stdlib.h> | #include <stdlib.h> | ||||
#include <string.h> | #include <string.h> | ||||
} | } | ||||
#endif | #endif | ||||
} | } | ||||
#endif | |||||
//> | //> |
/*************************************************************************** | /*************************************************************************** | ||||
* Copyright (C) 2007, Gilles Casse <[email protected]> * | * Copyright (C) 2007, Gilles Casse <[email protected]> * | ||||
* Copyright (C) 2013 Reece H. Dunn * | |||||
* * | * * | ||||
* This program is free software; you can redistribute it and/or modify * | * This program is free software; you can redistribute it and/or modify * | ||||
* it under the terms of the GNU General Public License as published by * | * it under the terms of the GNU General Public License as published by * | ||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * | ||||
***************************************************************************/ | ***************************************************************************/ | ||||
#include "speech.h" | |||||
#ifdef USE_ASYNC | |||||
// This source file is only used for asynchronious modes | // This source file is only used for asynchronious modes | ||||
#include <sys/time.h> | #include <sys/time.h> | ||||
#include <errno.h> | #include <errno.h> | ||||
#include "speech.h" | |||||
#include "speak_lib.h" | #include "speak_lib.h" | ||||
#include "event.h" | #include "event.h" | ||||
#include "wave.h" | #include "wave.h" | ||||
init(); // purge event | init(); // purge event | ||||
} | } | ||||
} | } | ||||
#endif | |||||
//> | //> | ||||
/*************************************************************************** | /*************************************************************************** | ||||
* Copyright (C) 2007, Gilles Casse <[email protected]> * | * Copyright (C) 2007, Gilles Casse <[email protected]> * | ||||
* Copyright (C) 2013 Reece H. Dunn * | |||||
* * | * * | ||||
* This program is free software; you can redistribute it and/or modify * | * This program is free software; you can redistribute it and/or modify * | ||||
* it under the terms of the GNU General Public License as published by * | * it under the terms of the GNU General Public License as published by * | ||||
* Free Software Foundation, Inc., * | * Free Software Foundation, Inc., * | ||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * | ||||
***************************************************************************/ | ***************************************************************************/ | ||||
#include "speech.h" | |||||
#ifdef USE_ASYNC | |||||
// This source file is only used for asynchronious modes | // This source file is only used for asynchronious modes | ||||
//<includes | //<includes | ||||
#include <unistd.h> | #include <unistd.h> | ||||
#include <sys/time.h> | #include <sys/time.h> | ||||
#include <time.h> | #include <time.h> | ||||
#include "speech.h" | |||||
#include "fifo.h" | #include "fifo.h" | ||||
#include "wave.h" | #include "wave.h" | ||||
#include "debug.h" | #include "debug.h" | ||||
init(0); // purge fifo | init(0); // purge fifo | ||||
} | } | ||||
#endif | |||||
//> | //> | ||||
#define __cdecl | #define __cdecl | ||||
//#define ESPEAK_API extern "C" | //#define ESPEAK_API extern "C" | ||||
#ifdef LIBRARY | |||||
#define USE_ASYNC | |||||
#endif | |||||
#ifdef _ESPEAKEDIT | #ifdef _ESPEAKEDIT | ||||
#define USE_ASYNC | |||||
#define LOG_FRAMES // write keyframe info to log-espeakedit | #define LOG_FRAMES // write keyframe info to log-espeakedit | ||||
#endif | #endif | ||||