trait Renderer: Send {
// Required methods
fn native_rate(&self) -> u32;
fn render(&mut self, text: &str, voice: &str) -> Result<Vec<f32>, Error>;
}Expand description
What the engine’s inference looks like to the wire conversion, so a test can drive the conversion with no model load.
Required Methods§
fn native_rate(&self) -> u32
fn render(&mut self, text: &str, voice: &str) -> Result<Vec<f32>, Error>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".