pub struct Output {
pub volume: Option<i32>,
pub target_lufs: Option<f64>,
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). Cannot be used simultaneously with target_lufs.
target_lufs: Option<f64>Target loudness in LUFS for absolute loudness normalization (-70 to 0). Cannot be used simultaneously with volume.
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 volume(self, volume: i32) -> Self
pub fn volume(self, volume: i32) -> Self
Set the volume (0-200). Cannot be used simultaneously with target_lufs.
Sourcepub fn target_lufs(self, lufs: f64) -> Self
pub fn target_lufs(self, lufs: f64) -> Self
Set the target LUFS (-70 to 0)
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 UnsafeUnpin 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