pub struct Output {
pub volume: Option<i32>,
pub audio_pitch: Option<i32>,
pub audio_tempo: Option<f64>,
pub audio_format: Option<AudioFormat>,
}Expand description
Audio output settings
Fields§
§volume: Option<i32>Volume level (0-200, default: 100)
audio_pitch: Option<i32>Pitch adjustment in semitones (-12 to +12, default: 0)
audio_tempo: Option<f64>Speech speed multiplier (0.5 to 2.0, default: 1.0)
audio_format: Option<AudioFormat>Output audio format (wav or mp3, default: wav)
Implementations§
Source§impl Output
impl Output
Sourcepub fn audio_pitch(self, pitch: i32) -> Self
pub fn audio_pitch(self, pitch: i32) -> Self
Set the audio pitch (-12 to +12 semitones)
Sourcepub fn audio_tempo(self, tempo: f64) -> Self
pub fn audio_tempo(self, tempo: f64) -> Self
Set the audio tempo (0.5 to 2.0)
Sourcepub fn audio_format(self, format: AudioFormat) -> Self
pub fn audio_format(self, format: AudioFormat) -> Self
Set the audio format
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Output
impl<'de> Deserialize<'de> for Output
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
Auto Trait Implementations§
impl Freeze for Output
impl RefUnwindSafe for Output
impl Send for Output
impl Sync for Output
impl Unpin for Output
impl UnwindSafe for Output
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