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

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