Struct tts::Tts [−][src]
pub struct Tts(_);
Implementations
Create a new TTS
instance with the specified backend.
Returns the features supported by this TTS engine
Speaks the specified text, optionally interrupting current speech.
Returns the normal rate for this speech synthesizer.
Returns the normal pitch for this speech synthesizer.
Returns the minimum volume for this speech synthesizer.
Returns the maximum volume for this speech synthesizer.
Returns the normal volume for this speech synthesizer.
Gets the current speech volume.
Sets the desired speech volume.
Returns whether this speech synthesizer is speaking.
pub fn on_utterance_begin(
&self,
callback: Option<Box<dyn FnMut(UtteranceId)>>
) -> Result<(), Error>
pub fn on_utterance_begin(
&self,
callback: Option<Box<dyn FnMut(UtteranceId)>>
) -> Result<(), Error>
Called when this speech synthesizer begins speaking an utterance.
pub fn on_utterance_end(
&self,
callback: Option<Box<dyn FnMut(UtteranceId)>>
) -> Result<(), Error>
pub fn on_utterance_end(
&self,
callback: Option<Box<dyn FnMut(UtteranceId)>>
) -> Result<(), Error>
Called when this speech synthesizer finishes speaking an utterance.
pub fn on_utterance_stop(
&self,
callback: Option<Box<dyn FnMut(UtteranceId)>>
) -> Result<(), Error>
pub fn on_utterance_stop(
&self,
callback: Option<Box<dyn FnMut(UtteranceId)>>
) -> Result<(), Error>
Called when this speech synthesizer is stopped and still has utterances in its queue.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
Mutably borrows from an owned value. Read more