1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = SpeechSynthesisUtterance , typescript_type = "SpeechSynthesisUtterance")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `SpeechSynthesisUtterance` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"]
14 pub type SpeechSynthesisUtterance;
15 # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = text)]
16 #[doc = "Getter for the `text` field of this object."]
17 #[doc = ""]
18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/text)"]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"]
21 pub fn text(this: &SpeechSynthesisUtterance) -> ::alloc::string::String;
22 # [wasm_bindgen (structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = text)]
23 #[doc = "Setter for the `text` field of this object."]
24 #[doc = ""]
25 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/text)"]
26 #[doc = ""]
27 #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"]
28 pub fn set_text(this: &SpeechSynthesisUtterance, value: &str);
29 # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = lang)]
30 #[doc = "Getter for the `lang` field of this object."]
31 #[doc = ""]
32 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/lang)"]
33 #[doc = ""]
34 #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"]
35 pub fn lang(this: &SpeechSynthesisUtterance) -> ::alloc::string::String;
36 # [wasm_bindgen (structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = lang)]
37 #[doc = "Setter for the `lang` field of this object."]
38 #[doc = ""]
39 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/lang)"]
40 #[doc = ""]
41 #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"]
42 pub fn set_lang(this: &SpeechSynthesisUtterance, value: &str);
43 #[cfg(feature = "SpeechSynthesisVoice")]
44 # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = voice)]
45 #[doc = "Getter for the `voice` field of this object."]
46 #[doc = ""]
47 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/voice)"]
48 #[doc = ""]
49 #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`, `SpeechSynthesisVoice`*"]
50 pub fn voice(this: &SpeechSynthesisUtterance) -> Option<SpeechSynthesisVoice>;
51 #[cfg(feature = "SpeechSynthesisVoice")]
52 # [wasm_bindgen (structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = voice)]
53 #[doc = "Setter for the `voice` field of this object."]
54 #[doc = ""]
55 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/voice)"]
56 #[doc = ""]
57 #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`, `SpeechSynthesisVoice`*"]
58 pub fn set_voice(this: &SpeechSynthesisUtterance, value: Option<&SpeechSynthesisVoice>);
59 # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = volume)]
60 #[doc = "Getter for the `volume` field of this object."]
61 #[doc = ""]
62 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/volume)"]
63 #[doc = ""]
64 #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"]
65 pub fn volume(this: &SpeechSynthesisUtterance) -> f32;
66 # [wasm_bindgen (structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = volume)]
67 #[doc = "Setter for the `volume` field of this object."]
68 #[doc = ""]
69 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/volume)"]
70 #[doc = ""]
71 #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"]
72 pub fn set_volume(this: &SpeechSynthesisUtterance, value: f32);
73 # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = rate)]
74 #[doc = "Getter for the `rate` field of this object."]
75 #[doc = ""]
76 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/rate)"]
77 #[doc = ""]
78 #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"]
79 pub fn rate(this: &SpeechSynthesisUtterance) -> f32;
80 # [wasm_bindgen (structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = rate)]
81 #[doc = "Setter for the `rate` field of this object."]
82 #[doc = ""]
83 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/rate)"]
84 #[doc = ""]
85 #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"]
86 pub fn set_rate(this: &SpeechSynthesisUtterance, value: f32);
87 # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = pitch)]
88 #[doc = "Getter for the `pitch` field of this object."]
89 #[doc = ""]
90 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/pitch)"]
91 #[doc = ""]
92 #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"]
93 pub fn pitch(this: &SpeechSynthesisUtterance) -> f32;
94 # [wasm_bindgen (structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = pitch)]
95 #[doc = "Setter for the `pitch` field of this object."]
96 #[doc = ""]
97 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/pitch)"]
98 #[doc = ""]
99 #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"]
100 pub fn set_pitch(this: &SpeechSynthesisUtterance, value: f32);
101 # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = onstart)]
102 #[doc = "Getter for the `onstart` field of this object."]
103 #[doc = ""]
104 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onstart)"]
105 #[doc = ""]
106 #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"]
107 pub fn onstart(this: &SpeechSynthesisUtterance) -> Option<::js_sys::Function>;
108 # [wasm_bindgen (structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = onstart)]
109 #[doc = "Setter for the `onstart` field of this object."]
110 #[doc = ""]
111 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onstart)"]
112 #[doc = ""]
113 #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"]
114 pub fn set_onstart(this: &SpeechSynthesisUtterance, value: Option<&::js_sys::Function>);
115 # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = onend)]
116 #[doc = "Getter for the `onend` field of this object."]
117 #[doc = ""]
118 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onend)"]
119 #[doc = ""]
120 #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"]
121 pub fn onend(this: &SpeechSynthesisUtterance) -> Option<::js_sys::Function>;
122 # [wasm_bindgen (structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = onend)]
123 #[doc = "Setter for the `onend` field of this object."]
124 #[doc = ""]
125 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onend)"]
126 #[doc = ""]
127 #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"]
128 pub fn set_onend(this: &SpeechSynthesisUtterance, value: Option<&::js_sys::Function>);
129 # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = onerror)]
130 #[doc = "Getter for the `onerror` field of this object."]
131 #[doc = ""]
132 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onerror)"]
133 #[doc = ""]
134 #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"]
135 pub fn onerror(this: &SpeechSynthesisUtterance) -> Option<::js_sys::Function>;
136 # [wasm_bindgen (structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = onerror)]
137 #[doc = "Setter for the `onerror` field of this object."]
138 #[doc = ""]
139 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onerror)"]
140 #[doc = ""]
141 #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"]
142 pub fn set_onerror(this: &SpeechSynthesisUtterance, value: Option<&::js_sys::Function>);
143 # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = onpause)]
144 #[doc = "Getter for the `onpause` field of this object."]
145 #[doc = ""]
146 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onpause)"]
147 #[doc = ""]
148 #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"]
149 pub fn onpause(this: &SpeechSynthesisUtterance) -> Option<::js_sys::Function>;
150 # [wasm_bindgen (structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = onpause)]
151 #[doc = "Setter for the `onpause` field of this object."]
152 #[doc = ""]
153 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onpause)"]
154 #[doc = ""]
155 #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"]
156 pub fn set_onpause(this: &SpeechSynthesisUtterance, value: Option<&::js_sys::Function>);
157 # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = onresume)]
158 #[doc = "Getter for the `onresume` field of this object."]
159 #[doc = ""]
160 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onresume)"]
161 #[doc = ""]
162 #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"]
163 pub fn onresume(this: &SpeechSynthesisUtterance) -> Option<::js_sys::Function>;
164 # [wasm_bindgen (structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = onresume)]
165 #[doc = "Setter for the `onresume` field of this object."]
166 #[doc = ""]
167 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onresume)"]
168 #[doc = ""]
169 #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"]
170 pub fn set_onresume(this: &SpeechSynthesisUtterance, value: Option<&::js_sys::Function>);
171 # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = onmark)]
172 #[doc = "Getter for the `onmark` field of this object."]
173 #[doc = ""]
174 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onmark)"]
175 #[doc = ""]
176 #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"]
177 pub fn onmark(this: &SpeechSynthesisUtterance) -> Option<::js_sys::Function>;
178 # [wasm_bindgen (structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = onmark)]
179 #[doc = "Setter for the `onmark` field of this object."]
180 #[doc = ""]
181 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onmark)"]
182 #[doc = ""]
183 #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"]
184 pub fn set_onmark(this: &SpeechSynthesisUtterance, value: Option<&::js_sys::Function>);
185 # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = onboundary)]
186 #[doc = "Getter for the `onboundary` field of this object."]
187 #[doc = ""]
188 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onboundary)"]
189 #[doc = ""]
190 #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"]
191 pub fn onboundary(this: &SpeechSynthesisUtterance) -> Option<::js_sys::Function>;
192 # [wasm_bindgen (structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = onboundary)]
193 #[doc = "Setter for the `onboundary` field of this object."]
194 #[doc = ""]
195 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onboundary)"]
196 #[doc = ""]
197 #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"]
198 pub fn set_onboundary(this: &SpeechSynthesisUtterance, value: Option<&::js_sys::Function>);
199 #[wasm_bindgen(catch, constructor, js_class = "SpeechSynthesisUtterance")]
200 #[doc = "The `new SpeechSynthesisUtterance(..)` constructor, creating a new instance of `SpeechSynthesisUtterance`."]
201 #[doc = ""]
202 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/SpeechSynthesisUtterance)"]
203 #[doc = ""]
204 #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"]
205 pub fn new() -> Result<SpeechSynthesisUtterance, JsValue>;
206 #[wasm_bindgen(catch, constructor, js_class = "SpeechSynthesisUtterance")]
207 #[doc = "The `new SpeechSynthesisUtterance(..)` constructor, creating a new instance of `SpeechSynthesisUtterance`."]
208 #[doc = ""]
209 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/SpeechSynthesisUtterance)"]
210 #[doc = ""]
211 #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"]
212 pub fn new_with_text(text: &str) -> Result<SpeechSynthesisUtterance, JsValue>;
213}