Skip to main content

DynSpeechTranslationModel

Trait DynSpeechTranslationModel 

Source
pub trait DynSpeechTranslationModel:
    Send
    + Sync
    + 'static {
    // Required methods
    fn provider(&self) -> &ProviderId;
    fn model_id(&self) -> &ModelId;
    fn do_stream(
        &self,
        options: SpeechTranslationStreamOptions,
    ) -> BoxFuture<'_, Result<SpeechTranslationStreamResult, ProviderError>>;
}
Expand description

Object-safe counterpart of SpeechTranslationModel.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§