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§
fn info(&self) -> EngineInfo
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".