Skip to main content

AudioGenerationModel

Trait AudioGenerationModel 

Source
pub trait AudioGenerationModel:
    Sized
    + Clone
    + WasmCompatSend
    + WasmCompatSync {
    type Response: WasmCompatSend + WasmCompatSync;
    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>> + WasmCompatSend;

    // 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>> + WasmCompatSend

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§