Skip to main content

SpeechFactory

Trait SpeechFactory 

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§

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

A fresh speaker. Must not fail: a host without speech returns a [tts::NullSpeaker].

Implementors§