Skip to main content

web_sys/features/
gen_SpeechSynthesisVoice.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    #[wasm_bindgen(
8        extends = "::js_sys::Object",
9        js_name = "SpeechSynthesisVoice",
10        typescript_type = "SpeechSynthesisVoice"
11    )]
12    #[derive(Debug, Clone, PartialEq, Eq)]
13    #[doc = "The `SpeechSynthesisVoice` class."]
14    #[doc = ""]
15    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisVoice)"]
16    #[doc = ""]
17    #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisVoice`*"]
18    pub type SpeechSynthesisVoice;
19    #[wasm_bindgen(
20        method,
21        getter,
22        js_class = "SpeechSynthesisVoice",
23        js_name = "voiceURI"
24    )]
25    #[doc = "Getter for the `voiceURI` field of this object."]
26    #[doc = ""]
27    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisVoice/voiceURI)"]
28    #[doc = ""]
29    #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisVoice`*"]
30    pub fn voice_uri(this: &SpeechSynthesisVoice) -> ::alloc::string::String;
31    #[wasm_bindgen(method, getter, js_class = "SpeechSynthesisVoice", js_name = "name")]
32    #[doc = "Getter for the `name` field of this object."]
33    #[doc = ""]
34    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisVoice/name)"]
35    #[doc = ""]
36    #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisVoice`*"]
37    pub fn name(this: &SpeechSynthesisVoice) -> ::alloc::string::String;
38    #[wasm_bindgen(method, getter, js_class = "SpeechSynthesisVoice", js_name = "lang")]
39    #[doc = "Getter for the `lang` field of this object."]
40    #[doc = ""]
41    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisVoice/lang)"]
42    #[doc = ""]
43    #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisVoice`*"]
44    pub fn lang(this: &SpeechSynthesisVoice) -> ::alloc::string::String;
45    #[wasm_bindgen(
46        method,
47        getter,
48        js_class = "SpeechSynthesisVoice",
49        js_name = "localService"
50    )]
51    #[doc = "Getter for the `localService` field of this object."]
52    #[doc = ""]
53    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisVoice/localService)"]
54    #[doc = ""]
55    #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisVoice`*"]
56    pub fn local_service(this: &SpeechSynthesisVoice) -> bool;
57    #[wasm_bindgen(method, getter, js_class = "SpeechSynthesisVoice", js_name = "default")]
58    #[doc = "Getter for the `default` field of this object."]
59    #[doc = ""]
60    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisVoice/default)"]
61    #[doc = ""]
62    #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisVoice`*"]
63    pub fn default(this: &SpeechSynthesisVoice) -> bool;
64}