pub struct VoiceResource {
pub object: String,
pub id: String,
pub name: String,
pub created_at: u64,
pub type: VoiceType,
pub prompt: Option<String>,
}Available on crate feature
audio-types only.Expand description
A custom voice that can be used for audio output.
Fields§
§object: StringThe object type, which is always audio.voice.
id: StringThe voice identifier, which can be referenced in API endpoints.
name: StringThe name of the voice.
created_at: u64The Unix timestamp (in seconds) for when the voice was created.
type: VoiceTypeHow the voice was created.
prompt: Option<String>The original text prompt used to create the voice. Present for prompt-generated voices with a stored prompt; omitted for audio-sample voices and older voices without a stored prompt.
Trait Implementations§
Source§impl Clone for VoiceResource
impl Clone for VoiceResource
Source§impl Debug for VoiceResource
impl Debug for VoiceResource
Source§impl<'de> Deserialize<'de> for VoiceResource
impl<'de> Deserialize<'de> for VoiceResource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for VoiceResource
impl PartialEq for VoiceResource
Source§impl Serialize for VoiceResource
impl Serialize for VoiceResource
impl StructuralPartialEq for VoiceResource
Auto Trait Implementations§
impl Freeze for VoiceResource
impl RefUnwindSafe for VoiceResource
impl Send for VoiceResource
impl Sync for VoiceResource
impl Unpin for VoiceResource
impl UnsafeUnpin for VoiceResource
impl UnwindSafe for VoiceResource
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