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.

synthdata.h 1.7KB

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_SYNTHDATA_H
  21. #define ESPEAK_NG_SYNTHDATA_H
  22. #include "synthesize.h"
  23. #include "translate.h"
  24. #ifdef __cplusplus
  25. extern "C"
  26. {
  27. #endif
  28. void InterpretPhoneme(Translator *tr,
  29. int control,
  30. PHONEME_LIST *plist,
  31. PHONEME_DATA *phdata,
  32. WORD_PH_DATA *worddata);
  33. void InterpretPhoneme2(int phcode,
  34. PHONEME_DATA *phdata);
  35. void FreePhData(void);
  36. unsigned char *GetEnvelope(int index);
  37. espeak_ng_STATUS LoadPhData(int *srate, espeak_ng_ERROR_CONTEXT *context);
  38. void LoadConfig(void);
  39. int LookupPhonemeString(const char *string);
  40. int LookupPhonemeTable(const char *name);
  41. frameref_t *LookupSpect(PHONEME_TAB *this_ph,
  42. int which,
  43. FMT_PARAMS *fmt_params,
  44. int *n_frames,
  45. PHONEME_LIST *plist);
  46. int NumInstnWords(unsigned short *prog);
  47. int PhonemeCode(unsigned int mnem);
  48. int SelectPhonemeTable(int number);
  49. int SelectPhonemeTableName(const char *name);
  50. #ifdef __cplusplus
  51. }
  52. #endif
  53. #endif