Skip to main content

SynthesisProviderFactory

Trait SynthesisProviderFactory 

Source
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§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl SynthesisProviderFactory for LocalTtsFactory

Available on crate feature tts only.
Source§

impl SynthesisProviderFactory for OpenRouterTtsFactory

Available on crate feature tts only.