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.

encoding.h 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*
  2. * Copyright (C) 2017 Reece H. Dunn
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 3 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program; if not, see: <http://www.gnu.org/licenses/>.
  16. */
  17. #ifndef ESPEAK_NG_ENCODING_H
  18. #define ESPEAK_NG_ENCODING_H
  19. #ifdef __cplusplus
  20. extern "C"
  21. {
  22. #endif
  23. typedef struct espeak_ng_TEXT_DECODER_ espeak_ng_TEXT_DECODER;
  24. espeak_ng_TEXT_DECODER *
  25. create_text_decoder(void);
  26. void
  27. destroy_text_decoder(espeak_ng_TEXT_DECODER *decoder);
  28. espeak_ng_STATUS
  29. text_decoder_decode_string(espeak_ng_TEXT_DECODER *decoder,
  30. const char *string,
  31. int length,
  32. espeak_ng_ENCODING encoding);
  33. espeak_ng_STATUS
  34. text_decoder_decode_string_auto(espeak_ng_TEXT_DECODER *decoder,
  35. const char *string,
  36. int length,
  37. espeak_ng_ENCODING encoding);
  38. espeak_ng_STATUS
  39. text_decoder_decode_wstring(espeak_ng_TEXT_DECODER *decoder,
  40. const wchar_t *string,
  41. int length);
  42. int
  43. text_decoder_eof(espeak_ng_TEXT_DECODER *decoder);
  44. uint32_t
  45. text_decoder_getc(espeak_ng_TEXT_DECODER *decoder);
  46. const void *
  47. text_decoder_get_buffer(espeak_ng_TEXT_DECODER *decoder);
  48. #ifdef __cplusplus
  49. }
  50. #endif
  51. #endif