espeakng_glue.idl 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*
  2. * Copyright (C) 2014-2017 Eitan Isaacson
  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. interface espeak_VOICE {
  18. [Const] attribute DOMString name;
  19. readonly attribute byte[] languages;
  20. [Const] attribute DOMString identifier;
  21. attribute octet gender;
  22. attribute octet age;
  23. attribute octet variant;
  24. attribute octet xx1;
  25. attribute long score;
  26. attribute any spare;
  27. };
  28. enum espeak_EVENT_TYPE {
  29. "espeakEVENT_LIST_TERMINATED",
  30. "espeakEVENT_WORD",
  31. "espeakEVENT_SENTENCE",
  32. "espeakEVENT_MARK",
  33. "espeakEVENT_PLAY",
  34. "espeakEVENT_END",
  35. "espeakEVENT_MSG_TERMINATED",
  36. "espeakEVENT_PHONEME",
  37. "espeakEVENT_SAMPLERATE"
  38. };
  39. interface espeak_EVENT {
  40. readonly attribute espeak_EVENT_TYPE type;
  41. readonly attribute unsigned long unique_identifier;
  42. readonly attribute long text_position;
  43. readonly attribute long length;
  44. readonly attribute long audio_position;
  45. readonly attribute long sample;
  46. readonly attribute any user_data;
  47. };
  48. interface eSpeakNGWorker {
  49. void eSpeakNGWorker();
  50. void synth_(DOMString aText, VoidPtr aCallback);
  51. long synth_ipa_(DOMString aText, DOMString virtualFileName);
  52. long getSizeOfEventStruct_();
  53. long set_voice(DOMString aName, DOMString aLang, optional octet gender=0, optional octet age=0, optional octet aVariant=0);
  54. [Const] attribute espeak_VOICE[] voices;
  55. readonly attribute long samplerate;
  56. attribute long rate;
  57. attribute long pitch;
  58. };