Debian Codegraph @

emscripten/espeakng_glue.idl

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