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 2.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. // Header file for RISCOS build
  21. // comment this out when compiling the "speak" process
  22. //#define SPECT_EDITOR
  23. #define PATHSEP '.'
  24. #define USE_ASSEMBLER_1
  25. #define PLATFORM_RISCOS
  26. #define NEED_WCHAR_FUNCTIONS
  27. #define __cdecl // define as null, needed for Borland compiler
  28. #define ESPEAK_API
  29. typedef unsigned short USHORT;
  30. typedef unsigned char UCHAR;
  31. typedef int DOUBLEX;
  32. typedef struct {
  33. const char *mnem;
  34. int value;
  35. } MNEM_TAB;
  36. int LookupMnem(MNEM_TAB *table, char *string);
  37. #ifdef PLATFORM_WINDOWS
  38. #define N_PATH_HOME 220
  39. #else
  40. #define N_PATH_HOME 150
  41. #endif
  42. extern char path_home[N_PATH_HOME]; // this is the espeak-data directory
  43. extern void strncpy0(char *to,const char *from, int size);
  44. extern int GetFileLength(const char *filename);
  45. extern char *Alloc(int size);
  46. extern void Free(void *ptr);
  47. const int wcslen(const wchar_t *str);
  48. extern "C" {
  49. // optional assembler routine to speed-up Wavegen()
  50. int AddSineWaves(int waveph, int h_switch_sign, int maxh, int *harmspect);
  51. }
  52. #define strcasecmp(a,b) strcmp(a,b)