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§
Sourcefn make(&self) -> Box<dyn Speaker>
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".