~ubuntu-branches/ubuntu/oneiric/espeak/oneiric

« back to all changes in this revision

Viewing changes to platforms/windows/windows_cmd/src/.svn/text-base/speech.h.svn-base

  • Committer: Bazaar Package Importer
  • Author(s): Luke Yelavich
  • Date: 2011-05-04 11:25:46 UTC
  • mfrom: (1.1.24 upstream) (5.1.10 sid)
  • Revision ID: james.westby@ubuntu.com-20110504112546-ykijzihgc7ybgzn2
Tags: 1.45.04-1ubuntu1
* Merge from debian unstable, remaining changes:
  - Add gbp.conf for use with git buildpackage
  - Update the explanation of the -b command-line flag in the espeak manpage

Show diffs side-by-side

added added

removed removed

Lines of Context:
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 NO_VARIADIC_MACROS
34
 
#define ESPEAK_API
35
 
#define INCLUDE_KLATT
36
 
 
37
 
// will look for espeak_data directory here, and also in user's home directory
38
 
#define PATH_ESPEAK_DATA  "/usr/share/espeak-data"
39
 
 
40
 
typedef unsigned short USHORT;
41
 
typedef unsigned char  UCHAR;
42
 
typedef double DOUBLEX;
43
 
 
44
 
 
45
 
 
46
 
 
47
 
typedef struct {
48
 
   const char *mnem;
49
 
   int  value;
50
 
} MNEM_TAB;
51
 
int LookupMnem(MNEM_TAB *table, char *string);
52
 
 
53
 
 
54
 
 
55
 
#define N_PATH_HOME  220
56
 
extern char path_home[N_PATH_HOME];    // this is the espeak-data directory
57
 
 
58
 
extern void strncpy0(char *to,const char *from, int size);
59
 
int  GetFileLength(const char *filename);
60
 
char *Alloc(int size);
61
 
void Free(void *ptr);
62