Skip to main content

TtsEngine

Trait TtsEngine 

Source
pub trait TtsEngine: Send + Sync {
    // Required methods
    fn info(&self) -> EngineInfo;
    fn synthesize(&self, text: &str, opts: &TtsOptions) -> Result<AudioBuffer>;
}
Expand description

Text → speech (Mercury).

Required Methods§

Source

fn info(&self) -> EngineInfo

Source

fn synthesize(&self, text: &str, opts: &TtsOptions) -> Result<AudioBuffer>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§