AudioGenerationModel

Trait AudioGenerationModel 

Source
pub trait AudioGenerationModel:
    Sized
    + Clone
    + WasmCompatSend
    + WasmCompatSync {
    type Response: Send + Sync;
    type Client;

    // Required methods
    fn make(client: &Self::Client, model: impl Into<String>) -> Self;
    fn audio_generation(
        &self,
        request: AudioGenerationRequest,
    ) -> impl Future<Output = Result<AudioGenerationResponse<Self::Response>, AudioGenerationError>> + Send;

    // Provided method
    fn audio_generation_request(&self) -> AudioGenerationRequestBuilder<Self> { ... }
}
Available on crate feature audio only.

Required Associated Types§

Required Methods§

Source

fn make(client: &Self::Client, model: impl Into<String>) -> Self

Source

fn audio_generation( &self, request: AudioGenerationRequest, ) -> impl Future<Output = Result<AudioGenerationResponse<Self::Response>, AudioGenerationError>> + Send

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl AudioGenerationModel for AudioGenerationModelHandle<'_>

Source§

impl<T> AudioGenerationModel for rig::providers::azure::AudioGenerationModel<T>
where T: HttpClientExt + Clone + Default + Debug + Send + 'static,

Source§

impl<T> AudioGenerationModel for rig::providers::hyperbolic::AudioGenerationModel<T>
where T: HttpClientExt + Clone + Default + Debug + Send + 'static,

Available on crate feature image only.
Source§

impl<T> AudioGenerationModel for rig::providers::openai::audio_generation::AudioGenerationModel<T>
where T: HttpClientExt + Clone + Debug + Default + 'static,