mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-12-04 23:56:14 +00:00
autotools: add support for disabling MBROLA (--without-mbrola/--with-mbrola=no)
This commit is contained in:
+5
-1
@@ -60,7 +60,6 @@ common_SOURCE = \
|
|||||||
src/compiledict.cpp \
|
src/compiledict.cpp \
|
||||||
src/dictionary.cpp \
|
src/dictionary.cpp \
|
||||||
src/intonation.cpp \
|
src/intonation.cpp \
|
||||||
src/mbrowrap.cpp \
|
|
||||||
src/numbers.cpp \
|
src/numbers.cpp \
|
||||||
src/readclause.cpp \
|
src/readclause.cpp \
|
||||||
src/phonemelist.cpp \
|
src/phonemelist.cpp \
|
||||||
@@ -101,6 +100,11 @@ common_FLAGS += -DINCLUDE_KLATT
|
|||||||
common_SOURCE += src/klatt.cpp
|
common_SOURCE += src/klatt.cpp
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if OPT_MBROLA
|
||||||
|
common_FLAGS += -DINCLUDE_MBROLA
|
||||||
|
common_SOURCE += src/mbrowrap.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
|
||||||
|
|||||||
+13
-1
@@ -138,7 +138,18 @@ else
|
|||||||
have_klatt=yes
|
have_klatt=yes
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AM_CONDITIONAL(OPT_KLATT, [test x"$have_klatt" = xyes])
|
AC_ARG_WITH([mbrola],
|
||||||
|
[AS_HELP_STRING([--with-mbrola], [enable the MBROLA speech synthesizer @<:@default=yes@:>@])],
|
||||||
|
[])
|
||||||
|
|
||||||
|
if test "$with_mbrola" = "no" ; then
|
||||||
|
have_mbrola=no
|
||||||
|
else
|
||||||
|
have_mbrola=yes
|
||||||
|
fi
|
||||||
|
|
||||||
|
AM_CONDITIONAL(OPT_KLATT, [test x"$have_klatt" = xyes])
|
||||||
|
AM_CONDITIONAL(OPT_MBROLA, [test x"$have_mbrola" = xyes])
|
||||||
|
|
||||||
dnl ================================================================
|
dnl ================================================================
|
||||||
dnl wxWidgets checks.
|
dnl wxWidgets checks.
|
||||||
@@ -179,4 +190,5 @@ AC_MSG_NOTICE([
|
|||||||
audio configuration: ${AUDIO}
|
audio configuration: ${AUDIO}
|
||||||
|
|
||||||
Klatt: ${have_klatt}
|
Klatt: ${have_klatt}
|
||||||
|
MBROLA: ${have_mbrola}
|
||||||
])
|
])
|
||||||
|
|||||||
+1
-3
@@ -3,6 +3,7 @@
|
|||||||
* providing a subset of the API from the Windows mbrola DLL.
|
* providing a subset of the API from the Windows mbrola DLL.
|
||||||
*
|
*
|
||||||
* Copyright (C) 2010 by Nicolas Pitre <nico@fluxnic.net>
|
* Copyright (C) 2010 by Nicolas Pitre <nico@fluxnic.net>
|
||||||
|
* 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
|
||||||
@@ -16,7 +17,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "speech.h"
|
#include "speech.h"
|
||||||
#ifdef INCLUDE_MBROLA
|
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@@ -609,5 +609,3 @@ void resetError_MBR(void)
|
|||||||
{
|
{
|
||||||
mbr_errorbuf[0] = 0;
|
mbr_errorbuf[0] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // INCLUDE_MBROLA
|
|
||||||
|
|||||||
@@ -24,7 +24,6 @@
|
|||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
// conditional compilation options
|
// conditional compilation options
|
||||||
#define INCLUDE_MBROLA
|
|
||||||
#define INCLUDE_SONIC
|
#define INCLUDE_SONIC
|
||||||
|
|
||||||
#if defined(BYTE_ORDER) && BYTE_ORDER == BIG_ENDIAN
|
#if defined(BYTE_ORDER) && BYTE_ORDER == BIG_ENDIAN
|
||||||
|
|||||||
Reference in New Issue
Block a user