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