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§
Sourcefn transcribe(
&self,
request: TranscriptionRequest,
context: ModelCallContext,
) -> ModelFuture<'_, Result<TranscriptionResponse, ModelError>>
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".