PageRenderTime 27ms CodeModel.GetById 18ms app.highlight 5ms RepoModel.GetById 2ms app.codeStats 0ms

/native/external/espeak/platforms/windows/windows_dll/src/speech.h

http://eyes-free.googlecode.com/
C++ Header | 61 lines | 22 code | 16 blank | 23 comment | 0 complexity | 110cad5ff6f0e7286270aa6e5fee0750 MD5 | raw file
 1/***************************************************************************
 2 *   Copyright (C) 2005,2006 by Jonathan Duddington                        *
 3 *   jsd@clara.co.uk                                                       *
 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 2 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 to the                         *
17 *   Free Software Foundation, Inc.,                                       *
18 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
19 ***************************************************************************/
20
21// Windows command-line version of eSpeak
22
23
24// conditional compilation options
25
26#define PLATFORM_WINDOWS
27#define __WIN32__
28#define NEED_WCSTOF
29#define NEED_GETOPT
30
31#define PATHSEP '\\'
32// #define USE_PORTAUDIO
33#define ESPEAK_API __declspec(dllexport)
34#define LIBRARY
35
36// will look for espeak_data directory here, and also in user's home directory
37#define PATH_ESPEAK_DATA  "/usr/share/espeak-data"
38
39typedef unsigned short USHORT;
40typedef unsigned char  UCHAR;
41typedef double DOUBLEX;
42
43
44
45
46typedef struct {
47   const char *mnem;
48   int  value;
49} MNEM_TAB;
50int LookupMnem(MNEM_TAB *table, char *string);
51
52
53
54#define N_PATH_HOME  120
55extern char path_home[N_PATH_HOME];    // this is the espeak-data directory
56
57extern void strncpy0(char *to,const char *from, int size);
58int  GetFileLength(const char *filename);
59char *Alloc(int size);
60void Free(void *ptr);
61