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§
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 Methods§
fn audio_generation_request(&self) -> AudioGenerationRequestBuilder<Self>
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<'_>
impl AudioGenerationModel for AudioGenerationModelHandle<'_>
Source§impl<T> AudioGenerationModel for rig::providers::azure::AudioGenerationModel<T>
impl<T> AudioGenerationModel for rig::providers::azure::AudioGenerationModel<T>
Source§impl<T> AudioGenerationModel for rig::providers::hyperbolic::AudioGenerationModel<T>
Available on crate feature image only.
impl<T> AudioGenerationModel for rig::providers::hyperbolic::AudioGenerationModel<T>
Available on crate feature
image only.