PageRenderTime 22ms CodeModel.GetById 10ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 1ms

/native/external/espeak/src/speech.h

http://eyes-free.googlecode.com/
C++ Header | 80 lines | 38 code | 18 blank | 24 comment | 2 complexity | fe32c84e8b56f1c723a27b8a7b6b70fe MD5 | raw file
 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
25#if defined(BYTE_ORDER) && BYTE_ORDER == BIG_ENDIAN
26#define ARCH_BIG
27#endif
28
29#define PLATFORM_POSIX
30#define PATHSEP  '/'
31// USE_PORTAUDIO or USE_PULSEAUDIO are now defined in the makefile
32//#define USE_PORTAUDIO
33//#define USE_PULSEAUDIO
34#define USE_NANOSLEEP
35#define __cdecl 
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
54typedef unsigned short USHORT;
55typedef unsigned char  UCHAR;
56typedef double DOUBLEX;
57
58
59
60
61typedef struct {
62   const char *mnem;
63   int  value;
64} MNEM_TAB;
65int LookupMnem(MNEM_TAB *table, char *string);
66
67
68#ifdef PLATFORM_WINDOWS
69#define N_PATH_HOME  220
70#else
71#define N_PATH_HOME  150
72#endif
73
74extern char path_home[N_PATH_HOME];    // this is the espeak-data directory
75
76extern void strncpy0(char *to,const char *from, int size);
77int  GetFileLength(const char *filename);
78char *Alloc(int size);
79void Free(void *ptr);
80