pub trait SynthesisProviderFactory: Send + Sync {
// Required methods
fn descriptor(&self) -> &ProviderDescriptor;
fn capabilities(&self, model: &str) -> Result<ProviderCapabilities>;
fn build(
&self,
ctx: &ProviderBuildContext,
) -> Result<Arc<dyn SynthesisProvider>>;
}Expand description
Constructs TTS providers from a bounded build context.
Required Methods§
fn descriptor(&self) -> &ProviderDescriptor
fn capabilities(&self, model: &str) -> Result<ProviderCapabilities>
fn build( &self, ctx: &ProviderBuildContext, ) -> Result<Arc<dyn SynthesisProvider>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl SynthesisProviderFactory for LocalTtsFactory
Available on crate feature
tts only.impl SynthesisProviderFactory for OpenRouterTtsFactory
Available on crate feature
tts only.