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

http://eyes-free.googlecode.com/ · C Header · 65 lines · 22 code · 17 blank · 26 comment · 0 complexity · 4a01168b27ad9394df019ce4e723b386 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. // speech.h file for the Windows SAPI5 version of eSpeak
  21. // conditional compilation options
  22. #define PLATFORM_WINDOWS
  23. #define __WIN32__
  24. #define NEED_WCSTOF
  25. #define NEED_GETOPT
  26. #define USE_MBROLA_LIB
  27. #define ESPEAK_API
  28. #define PATHSEP '\\'
  29. //#define PLATFORM_POSIX
  30. //#define __cdecl // define as null, needed for Borland compiler ?
  31. //#define USE_PORTAUDIO
  32. //#define USE_NANOSLEEP
  33. // will look for espeak_data directory here, and also in user's home directory
  34. #define PATH_ESPEAK_DATA "/usr/share/espeak-data"
  35. typedef unsigned short USHORT;
  36. typedef unsigned char UCHAR;
  37. typedef double DOUBLEX;
  38. typedef struct {
  39. const char *mnem;
  40. int value;
  41. } MNEM_TAB;
  42. int LookupMnem(MNEM_TAB *table, char *string);
  43. #define N_PATH_HOME 120
  44. extern char path_home[N_PATH_HOME]; // this is the espeak-data directory
  45. extern void strncpy0(char *to,const char *from, int size);
  46. int GetFileLength(const char *filename);
  47. char *Alloc(int size);
  48. void Free(void *ptr);