pub struct Config {
pub channels: i32,
pub sample_rate: f64,
pub frame_rate: f64,
pub renormalize: bool,
pub resample_method: ResampleMethod,
pub num_codebooks: i32,
pub total_codebooks: i32,
pub bins: i32,
pub quantizer_dim: i32,
pub latent_dim: i32,
}Expand description
Mimi codec configuration.
Fields§
§channels: i32Audio channels.
sample_rate: f64PCM sample rate.
frame_rate: f64Codec frame rate.
renormalize: boolWhether the original training path renormalized audio.
resample_method: ResampleMethodLatent resampling method.
num_codebooks: i32Active residual codebooks.
total_codebooks: i32Total codebooks available in the released checkpoint.
bins: i32Codebook cardinality.
quantizer_dim: i32Codebook embedding dimension.
latent_dim: i32Model latent dimension.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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