Skip to main content

SpeechFactory

Trait SpeechFactory 

Source
pub trait SpeechFactory: Send + Sync {
    // Required method
    fn make(&self) -> Box<dyn Speaker>;
}
Expand description

Creates the speech output the built-in screen reader narrates through.

Required Methods§

Source

fn make(&self) -> Box<dyn Speaker>

A fresh speaker. Must not fail: a process without speech returns a tts::NullSpeaker.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§