eSpeak NG is an open source speech synthesizer that supports more than hundred languages and accents.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

speech.h 2.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /***************************************************************************
  2. * Copyright (C) 2005,2006 by Jonathan Duddington *
  3. * [email protected] *
  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. // Windows command-line version of eSpeak
  21. #ifndef SPEECH_H
  22. #define SPEECH_H
  23. // conditional compilation options
  24. #define PLATFORM_WINDOWS
  25. #define __WIN32__
  26. #define NEED_WCSTOF
  27. #define NEED_GETOPT
  28. #define USE_MBROLA_LIB
  29. #define PATHSEP '\\'
  30. #define USE_PORTAUDIO
  31. #define NO_VARIADIC_MACROS
  32. #define INCLUDE_KLATT
  33. #define INCLUDE_MBROLA
  34. #define INCLUDE_SONIC
  35. // will look for espeak_data directory here, and also in user's home directory
  36. #define PATH_ESPEAK_DATA "/usr/share/espeak-data"
  37. typedef unsigned short USHORT;
  38. typedef unsigned char UCHAR;
  39. typedef double DOUBLEX;
  40. #ifdef __WIN64__
  41. typedef uint64_t long64; // use this for conversion between pointers and integers
  42. #else
  43. typedef unsigned long long64;
  44. #endif
  45. typedef struct {
  46. const char *mnem;
  47. int value;
  48. } MNEM_TAB;
  49. int LookupMnem(MNEM_TAB *table, const char *string);
  50. #define N_PATH_HOME 230
  51. extern char path_home[N_PATH_HOME]; // this is the espeak-data directory
  52. extern void strncpy0(char *to,const char *from, int size);
  53. int GetFileLength(const char *filename);
  54. char *Alloc(int size);
  55. void Free(void *ptr);
  56. #endif // SPEECH_H