pub struct CreateVoicePromptRequestArgs { /* private fields */ }Available on crate feature
audio-types only.Expand description
Builder for CreateVoicePromptRequest.
Implementations§
Source§impl CreateVoicePromptRequestArgs
impl CreateVoicePromptRequestArgs
Sourcepub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The name of the new voice (1–256 characters).
Sourcepub fn prompt<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn prompt<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
A nonblank description of the desired voice (1–2000 characters).
Sourcepub fn script_hint<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn script_hint<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Optional text for the voice to speak during creation.
Sourcepub fn model<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn model<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Voice creation model. Defaults to auto; 2026-10-08 is also supported.
Sourcepub fn build(&self) -> Result<CreateVoicePromptRequest, OpenAIError>
pub fn build(&self) -> Result<CreateVoicePromptRequest, OpenAIError>
Trait Implementations§
Source§impl Clone for CreateVoicePromptRequestArgs
impl Clone for CreateVoicePromptRequestArgs
Auto Trait Implementations§
impl Freeze for CreateVoicePromptRequestArgs
impl RefUnwindSafe for CreateVoicePromptRequestArgs
impl Send for CreateVoicePromptRequestArgs
impl Sync for CreateVoicePromptRequestArgs
impl Unpin for CreateVoicePromptRequestArgs
impl UnsafeUnpin for CreateVoicePromptRequestArgs
impl UnwindSafe for CreateVoicePromptRequestArgs
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