/[zanavi_public1]/navit/navit/support/espeak/speech.h
ZANavi

Contents of /navit/navit/support/espeak/speech.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations) (download)
Fri Oct 28 21:19:04 2011 UTC (12 years, 5 months ago) by zoff99
File MIME type: text/plain
File size: 2699 byte(s)
import files
1 /***************************************************************************
2 * Copyright (C) 2005 to 2007 by Jonathan Duddington *
3 * email: jonsd@users.sourceforge.net *
4 * *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 3 of the License, or *
8 * (at your option) any later version. *
9 * *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write see: *
17 * <http://www.gnu.org/licenses/>. *
18 ***************************************************************************/
19
20
21 #include <sys/types.h>
22
23 // conditional compilation options
24 #define INCLUDE_KLATT
25
26 #if defined(BYTE_ORDER) && BYTE_ORDER == BIG_ENDIAN
27 #define ARCH_BIG
28 #endif
29
30 /* #define PLATFORM_POSIX */
31 #define PATHSEP '/'
32 // USE_PORTAUDIO or USE_PULSEAUDIO are now defined in the makefile
33 //#define USE_PORTAUDIO
34 //#define USE_PULSEAUDIO
35 #define USE_NANOSLEEP
36 //#define ESPEAK_API extern "C"
37
38 #ifdef LIBRARY
39 #define USE_ASYNC
40 //#define USE_MBROLA_LIB
41 #endif
42
43 #ifdef _ESPEAKEDIT
44 #define USE_PORTAUDIO
45 #define USE_ASYNC
46 #define LOG_FRAMES // write keyframe info to log-espeakedit
47 #endif
48
49 // will look for espeak_data directory here, and also in user's home directory
50 #ifndef PATH_ESPEAK_DATA
51 #define PATH_ESPEAK_DATA "/usr/share/espeak-data"
52 #endif
53
54 typedef unsigned short USHORT;
55 typedef unsigned char UCHAR;
56 typedef double DOUBLEX;
57
58
59
60
61 typedef struct {
62 const char *mnem;
63 int value;
64 } MNEM_TAB;
65 int LookupMnem(MNEM_TAB *table, char *string);
66
67
68 #ifdef PLATFORM_WINDOWS
69 #define N_PATH_HOME 220
70 #define ESPEAK_API
71 #else
72 #define N_PATH_HOME 150
73 #define ESPEAK_API extern "C"
74 #endif
75
76 extern char path_home[N_PATH_HOME]; // this is the espeak-data directory
77
78 extern void strncpy0(char *to,const char *from, int size);
79 int GetFileLength(const char *filename);
80 char *Alloc(int size);
81 void Free(void *ptr);
82

Properties

Name Value
svn:executable *

   
Visit the ZANavi Wiki