pub struct AudioConfig {
pub voice: String,
pub format: Option<String>,
pub speed: Option<f32>,
}Fields§
§voice: StringThe voice to use for text-to-speech. Supported voices are: alloy, echo, fable, onyx, nova, and shimmer
format: Option<String>The audio output format. Supported formats are: mp3, opus, aac, and flac
speed: Option<f32>The speed of the generated audio. Select a value from 0.25 to 4.0. 1.0 is the default.
Trait Implementations§
Source§impl Clone for AudioConfig
impl Clone for AudioConfig
Source§fn clone(&self) -> AudioConfig
fn clone(&self) -> AudioConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AudioConfig
impl Debug for AudioConfig
Source§impl Default for AudioConfig
impl Default for AudioConfig
Source§fn default() -> AudioConfig
fn default() -> AudioConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AudioConfig
impl<'de> Deserialize<'de> for AudioConfig
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 AudioConfig
impl PartialEq for AudioConfig
Source§impl Serialize for AudioConfig
impl Serialize for AudioConfig
impl StructuralPartialEq for AudioConfig
Auto Trait Implementations§
impl Freeze for AudioConfig
impl RefUnwindSafe for AudioConfig
impl Send for AudioConfig
impl Sync for AudioConfig
impl Unpin for AudioConfig
impl UnwindSafe for AudioConfig
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