Skip to main content

TranscriptionModel

Trait TranscriptionModel 

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

Independent speech-to-text model boundary.

Required Methods§

Source

fn transcribe( &self, request: TranscriptionRequest, context: ModelCallContext, ) -> ModelFuture<'_, Result<TranscriptionResponse, ModelError>>

Transcribes one complete audio input.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§