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.

ssml.h 1.3KB

12345678910111213141516171819202122232425262728293031323334
  1. // stack for language and voice properties
  2. // frame 0 is for the defaults, before any ssml tags.
  3. typedef struct {
  4. int tag_type;
  5. int voice_variant_number;
  6. int voice_gender;
  7. int voice_age;
  8. char voice_name[40];
  9. char language[20];
  10. } SSML_STACK;
  11. #define N_PARAM_STACK 20
  12. #define SSML_SPEAK 1
  13. #define SSML_VOICE 2
  14. #define SSML_PROSODY 3
  15. #define SSML_SAYAS 4
  16. #define SSML_MARK 5
  17. #define SSML_SENTENCE 6
  18. #define SSML_PARAGRAPH 7
  19. #define SSML_PHONEME 8
  20. #define SSML_SUB 9
  21. #define SSML_STYLE 10
  22. #define SSML_AUDIO 11
  23. #define SSML_EMPHASIS 12
  24. #define SSML_BREAK 13
  25. #define SSML_IGNORE_TEXT 14
  26. #define HTML_BREAK 15
  27. #define HTML_NOSPACE 16 // don't insert a space for this element, so it doesn't break a word
  28. #define SSML_CLOSE 0x20 // for a closing tag, OR this with the tag type
  29. int LoadSoundFile2(const char *fname);
  30. int AddNameData(const char *name, int wide);
  31. int ProcessSsmlTag(wchar_t *xml_buf, char *outbuf, int *outix, int n_outbuf, bool self_closing, const char *xmlbase, bool *audio_text, char *current_voice_id, espeak_VOICE *base_voice, char *base_voice_variant_name, bool *ignore_text, bool *clear_skipping_text, int *sayas_mode, int *sayas_start, SSML_STACK *ssml_stack, int *n_ssml_stack, int *n_param_stack, int *speech_parameters);