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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. int clause_type_from_codepoint(uint32_t c);
  33. int Eof(void);
  34. const char *WordToString2(char buf[5], unsigned int word);
  35. int AddNameData(const char *name,
  36. int wide);
  37. int ReadClause(Translator *tr,
  38. char *buf,
  39. short *charix,
  40. int *charix_top,
  41. int n_buf,
  42. int *tone_type,
  43. char *voice_change);
  44. #ifdef __cplusplus
  45. }
  46. #endif
  47. #endif