Struct speech_synthesis::UtteranceConfig
source · #[non_exhaustive]pub struct UtteranceConfig {
pub emit_word_boundary_events: bool,
pub emit_sentence_boundary_events: bool,
pub emit_visemes: bool,
pub voice: Option<Box<str>>,
}Expand description
Configuration for a single speech synthesis utterance.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.emit_word_boundary_events: boolWhether to emit UtteranceEvent::WordBoundary events.
emit_sentence_boundary_events: boolWhether to emit UtteranceEvent::SentenceBoundary events.
emit_visemes: boolWhether to emit UtteranceEvent::VisemesChunk/UtteranceEvent::BlendShapeVisemesChunk events.
voice: Option<Box<str>>The name of the voice to use for synthesis.
Trait Implementations§
source§impl Clone for UtteranceConfig
impl Clone for UtteranceConfig
source§fn clone(&self) -> UtteranceConfig
fn clone(&self) -> UtteranceConfig
Returns a copy 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 UtteranceConfig
impl Debug for UtteranceConfig
source§impl Default for UtteranceConfig
impl Default for UtteranceConfig
source§fn default() -> UtteranceConfig
fn default() -> UtteranceConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for UtteranceConfig
impl Send for UtteranceConfig
impl Sync for UtteranceConfig
impl Unpin for UtteranceConfig
impl UnwindSafe for UtteranceConfig
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