#[non_exhaustive]pub struct AudioGenerationRequestBuilder<M, T = Missing, V = Missing>where
M: AudioGenerationModel,{ /* private fields */ }Available on crate feature
audio only.Implementations§
Source§impl<M> AudioGenerationRequestBuilder<M, Missing, Missing>where
M: AudioGenerationModel,
impl<M> AudioGenerationRequestBuilder<M, Missing, Missing>where
M: AudioGenerationModel,
Source§impl<M, T, V> AudioGenerationRequestBuilder<M, T, V>where
M: AudioGenerationModel,
impl<M, T, V> AudioGenerationRequestBuilder<M, T, V>where
M: AudioGenerationModel,
Sourcepub fn text(
self,
text: &str,
) -> AudioGenerationRequestBuilder<M, Provided<String>, V>
pub fn text( self, text: &str, ) -> AudioGenerationRequestBuilder<M, Provided<String>, V>
Sets the text for the audio generation request
Sourcepub fn voice(
self,
voice: &str,
) -> AudioGenerationRequestBuilder<M, T, Provided<String>>
pub fn voice( self, voice: &str, ) -> AudioGenerationRequestBuilder<M, T, Provided<String>>
The voice of the generated audio
Sourcepub fn additional_params(self, params: Value) -> Self
pub fn additional_params(self, params: Value) -> Self
Adds additional parameters to the audio generation request.
Source§impl<M> AudioGenerationRequestBuilder<M, Provided<String>, Provided<String>>where
M: AudioGenerationModel,
impl<M> AudioGenerationRequestBuilder<M, Provided<String>, Provided<String>>where
M: AudioGenerationModel,
pub fn build(self) -> AudioGenerationRequest
pub async fn send( self, ) -> Result<AudioGenerationResponse<M::Response>, AudioGenerationError>
Auto Trait Implementations§
impl<M, T, V> Freeze for AudioGenerationRequestBuilder<M, T, V>
impl<M, T, V> RefUnwindSafe for AudioGenerationRequestBuilder<M, T, V>
impl<M, T, V> Send for AudioGenerationRequestBuilder<M, T, V>
impl<M, T, V> Sync for AudioGenerationRequestBuilder<M, T, V>
impl<M, T, V> Unpin for AudioGenerationRequestBuilder<M, T, V>
impl<M, T, V> UnsafeUnpin for AudioGenerationRequestBuilder<M, T, V>
impl<M, T, V> UnwindSafe for AudioGenerationRequestBuilder<M, T, V>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more