pub struct CorrectCodec { /* private fields */ }Expand description
File-level correct TSAC codec: WAV ⇄ .tsac container, encode+decode on any
RLX backend. The container is a small self-describing RVQ-code blob (magic
TSRX) — self-consistent (its own encode/decode roundtrip), distinct from
Bellard’s libnc container.
Implementations§
Source§impl CorrectCodec
impl CorrectCodec
Sourcepub fn open(device: Device, quality: Option<u8>) -> Result<CorrectCodec, Error>
pub fn open(device: Device, quality: Option<u8>) -> Result<CorrectCodec, Error>
Open on device, drawing weights from default_dir. quality maps to
the number of RVQ codebooks used (1..=9; None = all).
pub fn open_in( model_dir: &Path, device: Device, quality: Option<u8>, ) -> Result<CorrectCodec, Error>
pub fn sample_rate(&self) -> u32
Auto Trait Implementations§
impl !Freeze for CorrectCodec
impl !RefUnwindSafe for CorrectCodec
impl !Sync for CorrectCodec
impl !UnwindSafe for CorrectCodec
impl Send for CorrectCodec
impl Unpin for CorrectCodec
impl UnsafeUnpin for CorrectCodec
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more