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.

readclause.h 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*
  2. * Copyright (C) 2005 to 2015 by Jonathan Duddington
  3. * email: [email protected]
  4. * Copyright (C) 2015-2018 Reece H. Dunn
  5. * Copyright (C) 2018 Juho Hiltunen
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 3 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, see: <http://www.gnu.org/licenses/>.
  19. */
  20. #ifndef ESPEAK_NG_READCLAUSE_H
  21. #define ESPEAK_NG_READCLAUSE_H
  22. #include "translate.h"
  23. #ifdef __cplusplus
  24. extern "C"
  25. {
  26. #endif
  27. typedef struct {
  28. int type;
  29. int parameter[N_SPEECH_PARAM];
  30. } PARAM_STACK;
  31. extern PARAM_STACK param_stack[];
  32. // Tests if all bytes of str up to size are null
  33. int is_str_totally_null(const char* str, int size);
  34. int clause_type_from_codepoint(uint32_t c);
  35. int towlower2(unsigned int c, Translator *translator); // Supports Turkish I
  36. int Eof(void);
  37. const char *WordToString2(unsigned int word);
  38. int Read4Bytes(FILE *f);
  39. int AddNameData(const char *name,
  40. int wide);
  41. int ReadClause(Translator *tr,
  42. char *buf,
  43. short *charix,
  44. int *charix_top,
  45. int n_buf,
  46. int *tone_type,
  47. char *voice_change);
  48. #ifdef __cplusplus
  49. }
  50. #endif
  51. #endif