web_sys/features/
gen_SpeechRecognitionAlternative.rs1#![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 = "SpeechRecognitionAlternative",
10 typescript_type = "SpeechRecognitionAlternative"
11 )]
12 #[derive(Debug, Clone, PartialEq, Eq)]
13 #[doc = "The `SpeechRecognitionAlternative` class."]
14 #[doc = ""]
15 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionAlternative)"]
16 #[doc = ""]
17 #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionAlternative`*"]
18 pub type SpeechRecognitionAlternative;
19 #[wasm_bindgen(
20 method,
21 getter,
22 js_class = "SpeechRecognitionAlternative",
23 js_name = "transcript"
24 )]
25 #[doc = "Getter for the `transcript` field of this object."]
26 #[doc = ""]
27 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionAlternative/transcript)"]
28 #[doc = ""]
29 #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionAlternative`*"]
30 pub fn transcript(this: &SpeechRecognitionAlternative) -> ::alloc::string::String;
31 #[wasm_bindgen(
32 method,
33 getter,
34 js_class = "SpeechRecognitionAlternative",
35 js_name = "confidence"
36 )]
37 #[doc = "Getter for the `confidence` field of this object."]
38 #[doc = ""]
39 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionAlternative/confidence)"]
40 #[doc = ""]
41 #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionAlternative`*"]
42 pub fn confidence(this: &SpeechRecognitionAlternative) -> f32;
43}