Skip to main content

SpeechModel

Trait SpeechModel 

Source
pub trait SpeechModel: Send + Sync {
    // Required method
    fn synthesize_speech(
        &self,
        request: SpeechRequest,
        context: ModelCallContext,
    ) -> ModelFuture<'_, Result<SpeechResponse, ModelError>>;
}
Expand description

Independent text-to-speech model boundary.

Required Methods§

Source

fn synthesize_speech( &self, request: SpeechRequest, context: ModelCallContext, ) -> ModelFuture<'_, Result<SpeechResponse, ModelError>>

Synthesizes one complete audio output.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§