pub struct SpeechContext {
pub phrases: Option<Vec<String>>,
}Expand description
Provides “hints” to the speech recognizer to favor specific words and phrases in the results.
This type is not used in any activity, and only used as part of another schema.
Fields§
§phrases: Option<Vec<String>>Optional A list of strings containing words and phrases “hints” so that the speech recognition is more likely to recognize them. This can be used to improve the accuracy for specific words and phrases, for example, if specific commands are typically spoken by the user. This can also be used to add additional words to the vocabulary of the recognizer. See usage limits.
Trait Implementations§
Source§impl Clone for SpeechContext
impl Clone for SpeechContext
Source§fn clone(&self) -> SpeechContext
fn clone(&self) -> SpeechContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SpeechContext
impl Debug for SpeechContext
Source§impl Default for SpeechContext
impl Default for SpeechContext
Source§fn default() -> SpeechContext
fn default() -> SpeechContext
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SpeechContext
impl<'de> Deserialize<'de> for SpeechContext
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for SpeechContext
impl Serialize for SpeechContext
impl Part for SpeechContext
Auto Trait Implementations§
impl Freeze for SpeechContext
impl RefUnwindSafe for SpeechContext
impl Send for SpeechContext
impl Sync for SpeechContext
impl Unpin for SpeechContext
impl UnwindSafe for SpeechContext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more