pub trait AudioGeneration<M>where
M: AudioGenerationModel,{
// Required method
fn audio_generation(
&self,
text: &str,
voice: &str,
) -> impl Future<Output = Result<AudioGenerationRequestBuilder<M>, AudioGenerationError>> + Send;
}
Available on crate feature
audio
only.Required Methods§
Sourcefn audio_generation(
&self,
text: &str,
voice: &str,
) -> impl Future<Output = Result<AudioGenerationRequestBuilder<M>, AudioGenerationError>> + Send
fn audio_generation( &self, text: &str, voice: &str, ) -> impl Future<Output = Result<AudioGenerationRequestBuilder<M>, AudioGenerationError>> + Send
Generates an audio generation request builder for the given text
and voice
.
This function is meant to be called by the user to further customize the
request at generation time before sending it.
❗IMPORTANT: The type that implements this trait might have already populated fields in the builder (the exact fields depend on the type). For fields that have already been set by the model, calling the corresponding method on the builder will overwrite the value set by the model.
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.