pub struct DecodedWav {
pub samples: Vec<i16>,
pub sample_rate: u32,
}Expand description
Parsed PCM from a WAV blob (mono i16 at its native rate). Returned by
wav_to_pcm16 so the TTS WAV produced by OuteTTS can be re-encoded as Opus.
Fields§
§samples: Vec<i16>§sample_rate: u32Auto Trait Implementations§
impl Freeze for DecodedWav
impl RefUnwindSafe for DecodedWav
impl Send for DecodedWav
impl Sync for DecodedWav
impl Unpin for DecodedWav
impl UnsafeUnpin for DecodedWav
impl UnwindSafe for DecodedWav
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