maxcountryman_web_sys/features/
gen_SpeechSynthesis.rs1#![allow(unused_imports)]
2use super::*;
3use wasm_bindgen::prelude::*;
4#[wasm_bindgen]
5extern "C" {
6 # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = SpeechSynthesis , typescript_type = "SpeechSynthesis")]
7 #[derive(Debug, Clone, PartialEq, Eq)]
8 #[doc = "The `SpeechSynthesis` class."]
9 #[doc = ""]
10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis)"]
11 #[doc = ""]
12 #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesis`*"]
13 pub type SpeechSynthesis;
14 # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesis" , js_name = pending)]
15 #[doc = "Getter for the `pending` field of this object."]
16 #[doc = ""]
17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis/pending)"]
18 #[doc = ""]
19 #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesis`*"]
20 pub fn pending(this: &SpeechSynthesis) -> bool;
21 # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesis" , js_name = speaking)]
22 #[doc = "Getter for the `speaking` field of this object."]
23 #[doc = ""]
24 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis/speaking)"]
25 #[doc = ""]
26 #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesis`*"]
27 pub fn speaking(this: &SpeechSynthesis) -> bool;
28 # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesis" , js_name = paused)]
29 #[doc = "Getter for the `paused` field of this object."]
30 #[doc = ""]
31 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis/paused)"]
32 #[doc = ""]
33 #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesis`*"]
34 pub fn paused(this: &SpeechSynthesis) -> bool;
35 # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesis" , js_name = onvoiceschanged)]
36 #[doc = "Getter for the `onvoiceschanged` field of this object."]
37 #[doc = ""]
38 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis/onvoiceschanged)"]
39 #[doc = ""]
40 #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesis`*"]
41 pub fn onvoiceschanged(this: &SpeechSynthesis) -> Option<::js_sys::Function>;
42 # [wasm_bindgen (structural , method , setter , js_class = "SpeechSynthesis" , js_name = onvoiceschanged)]
43 #[doc = "Setter for the `onvoiceschanged` field of this object."]
44 #[doc = ""]
45 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis/onvoiceschanged)"]
46 #[doc = ""]
47 #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesis`*"]
48 pub fn set_onvoiceschanged(this: &SpeechSynthesis, value: Option<&::js_sys::Function>);
49 # [wasm_bindgen (method , structural , js_class = "SpeechSynthesis" , js_name = cancel)]
50 #[doc = "The `cancel()` method."]
51 #[doc = ""]
52 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis/cancel)"]
53 #[doc = ""]
54 #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesis`*"]
55 pub fn cancel(this: &SpeechSynthesis);
56 # [wasm_bindgen (method , structural , js_class = "SpeechSynthesis" , js_name = getVoices)]
57 #[doc = "The `getVoices()` method."]
58 #[doc = ""]
59 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis/getVoices)"]
60 #[doc = ""]
61 #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesis`*"]
62 pub fn get_voices(this: &SpeechSynthesis) -> ::js_sys::Array;
63 # [wasm_bindgen (method , structural , js_class = "SpeechSynthesis" , js_name = pause)]
64 #[doc = "The `pause()` method."]
65 #[doc = ""]
66 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis/pause)"]
67 #[doc = ""]
68 #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesis`*"]
69 pub fn pause(this: &SpeechSynthesis);
70 # [wasm_bindgen (method , structural , js_class = "SpeechSynthesis" , js_name = resume)]
71 #[doc = "The `resume()` method."]
72 #[doc = ""]
73 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis/resume)"]
74 #[doc = ""]
75 #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesis`*"]
76 pub fn resume(this: &SpeechSynthesis);
77 #[cfg(feature = "SpeechSynthesisUtterance")]
78 # [wasm_bindgen (method , structural , js_class = "SpeechSynthesis" , js_name = speak)]
79 #[doc = "The `speak()` method."]
80 #[doc = ""]
81 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis/speak)"]
82 #[doc = ""]
83 #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesis`, `SpeechSynthesisUtterance`*"]
84 pub fn speak(this: &SpeechSynthesis, utterance: &SpeechSynthesisUtterance);
85}