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.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. #define N_PEAKS 9
  22. #define N_MARKERS 7
  23. // comment this out when compiling the "speak" process
  24. //#define SPECT_EDITOR
  25. #define PATHSEP '.'
  26. #define USE_ASSEMBLER_1
  27. #define PLATFORM_RISCOS
  28. #define NEED_WCHAR_FUNCTIONS
  29. #define __cdecl // define as null, needed for Borland compiler
  30. #define ESPEAK_API
  31. typedef unsigned short USHORT;
  32. typedef unsigned char UCHAR;
  33. typedef int DOUBLEX;
  34. typedef struct {
  35. const char *mnem;
  36. int value;
  37. } MNEM_TAB;
  38. int LookupMnem(MNEM_TAB *table, char *string);
  39. typedef struct {
  40. short pkfreq;
  41. short pkheight;
  42. short pkwidth;
  43. short pkright;
  44. } peak_t;
  45. typedef struct {
  46. short frflags;
  47. unsigned char length;
  48. unsigned char rms;
  49. short ffreq[9];
  50. unsigned char fheight[9];
  51. unsigned char fwidth[6]; // width/4
  52. unsigned char fright[6]; // width/4
  53. } frame_t;
  54. extern int GetFileLength(const char *filename);
  55. extern char *Alloc(int size);
  56. extern void Free(void *ptr);
  57. extern void strncpy0(char *to,const char *from, int size);
  58. extern char path_home[];
  59. extern const char *version_string;
  60. extern const int version_phdata;
  61. const int wcslen(const wchar_t *str);
  62. extern "C" {
  63. // optional assembler routine to speed-up Wavegen()
  64. int AddSineWaves(int waveph, int h_switch_sign, int maxh, int *harmspect);
  65. }
  66. #define strcasecmp(a,b) strcmp(a,b)