pub enum OnLanguageFailure {
ChangeVoice,
IgnoreText,
IgnoreLang,
ProcessorChoice,
}Expand description
The onlangfailure attribute is an optional attribute that contains one value from the following enumerated list describing the desired behavior of the synthesis processor upon language speaking failure. A conforming synthesis processor must report a language speaking failure in addition to taking th action(s) below.
“Speech Synthesis Markup Language (SSML) Version 1.1” Copyright © 2010 W3C® (MIT, ERCIM, Keio), All Rights Reserved.
Variants§
ChangeVoice
If a voice exists that can speak the language, the synthesis processor will switch to that voice and speak the content. Otherwise, the processor chooses another behavior (either ignoretext or ignorelang).
IgnoreText
The synthesis processor will not attempt to render the text that is in the failed language.
IgnoreLang
The synthesis processor will ignore the change in language and speak as if the content were in the previous language.
ProcessorChoice
The synthesis processor chooses the behavior (either changevoice, ignoretext, or ignorelang).
Trait Implementations§
Source§impl Clone for OnLanguageFailure
impl Clone for OnLanguageFailure
Source§fn clone(&self) -> OnLanguageFailure
fn clone(&self) -> OnLanguageFailure
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for OnLanguageFailure
Source§impl Debug for OnLanguageFailure
impl Debug for OnLanguageFailure
Source§impl Display for OnLanguageFailure
impl Display for OnLanguageFailure
impl Eq for OnLanguageFailure
Source§impl FromStr for OnLanguageFailure
impl FromStr for OnLanguageFailure
Source§impl Hash for OnLanguageFailure
impl Hash for OnLanguageFailure
Source§impl Ord for OnLanguageFailure
impl Ord for OnLanguageFailure
Source§fn cmp(&self, other: &OnLanguageFailure) -> Ordering
fn cmp(&self, other: &OnLanguageFailure) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for OnLanguageFailure
impl PartialEq for OnLanguageFailure
Source§fn eq(&self, other: &OnLanguageFailure) -> bool
fn eq(&self, other: &OnLanguageFailure) -> bool
self and other values to be equal, and is used by ==.