mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-06 23:16:21 +00:00
Phoneme definitions. New keyword "prevoice", always add murmer before a voiced stop, not only after a vowel. Fixed bug in nextVowel() condition. Fixed bug is condition "isRhotic". Command line options. On Windows, -- means don't treat following arguments as options. --help output now should the espeak-data path. Tools->Lexicon. Redesign Lexicon processing for Russian and Bulgarian. Numbers. Fixes for Hungarian ordinal numbers. Fixed bug where double .. was ignored. Fixed bug in reporting word event lengths in callbacks. Fixed bug in reporting marker event positions in callbacks, when non-ascii text. SSML. Allow single as well as double quotes around strings. Fix bugs in SSML "prosody rate". Speed. Only use Sonic speedups greater than x2. Use custom eSpeak speed settings when Sonic speedup is used. Mbrola. Look for Mbrola voice also at /usr/share/mbrola/xx/xx espeakedit. Try "aplay" and then "play" to play sound. Languages: Kannada (kn) now in official release. Esperanto (eo) change prosody. git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@257 d46cf337-b52f-0410-862d-fd96e6ae7743
91 lines
2.7 KiB
C
91 lines
2.7 KiB
C
/***************************************************************************
|
|
* Copyright (C) 2005 to 2007 by Jonathan Duddington *
|
|
* email: jonsd@users.sourceforge.net *
|
|
* *
|
|
* 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 *
|
|
* the Free Software Foundation; either version 3 of the License, or *
|
|
* (at your option) any later version. *
|
|
* *
|
|
* This program is distributed in the hope that it will be useful, *
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
* GNU General Public License for more details. *
|
|
* *
|
|
* You should have received a copy of the GNU General Public License *
|
|
* along with this program; if not, write see: *
|
|
* <http://www.gnu.org/licenses/>. *
|
|
***************************************************************************/
|
|
|
|
#ifndef SPEECH_H
|
|
#define SPEECH_H
|
|
|
|
#include <sys/types.h>
|
|
|
|
// conditional compilation options
|
|
#define INCLUDE_KLATT
|
|
#define INCLUDE_MBROLA
|
|
|
|
#if defined(BYTE_ORDER) && BYTE_ORDER == BIG_ENDIAN
|
|
#define ARCH_BIG
|
|
#endif
|
|
|
|
#ifdef __QNX__
|
|
#define NEED_GETOPT
|
|
#define NO_VARIADIC_MACROS
|
|
#endif
|
|
|
|
|
|
#define PLATFORM_POSIX
|
|
#define PATHSEP '/'
|
|
// USE_PORTAUDIO or USE_PULSEAUDIO are now defined in the makefile
|
|
//#define USE_PORTAUDIO
|
|
//#define USE_PULSEAUDIO
|
|
#define USE_NANOSLEEP
|
|
#define __cdecl
|
|
//#define ESPEAK_API extern "C"
|
|
|
|
#ifdef LIBRARY
|
|
#define USE_ASYNC
|
|
#endif
|
|
|
|
#ifdef _ESPEAKEDIT
|
|
#define USE_PORTAUDIO
|
|
#define USE_ASYNC
|
|
#define LOG_FRAMES // write keyframe info to log-espeakedit
|
|
#endif
|
|
|
|
// will look for espeak_data directory here, and also in user's home directory
|
|
#ifndef PATH_ESPEAK_DATA
|
|
#define PATH_ESPEAK_DATA "/usr/share/espeak-data"
|
|
#endif
|
|
|
|
typedef unsigned short USHORT;
|
|
typedef unsigned char UCHAR;
|
|
typedef double DOUBLEX;
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
|
const char *mnem;
|
|
int value;
|
|
} MNEM_TAB;
|
|
int LookupMnem(MNEM_TAB *table, const char *string);
|
|
|
|
|
|
#ifdef PLATFORM_WINDOWS
|
|
#define N_PATH_HOME 220
|
|
#else
|
|
#define N_PATH_HOME 150
|
|
#endif
|
|
|
|
extern char path_home[N_PATH_HOME]; // this is the espeak-data directory
|
|
|
|
extern void strncpy0(char *to,const char *from, int size);
|
|
int GetFileLength(const char *filename);
|
|
char *Alloc(int size);
|
|
void Free(void *ptr);
|
|
|
|
#endif // SPEECH_H
|