pub struct SherpaModelInfo {
pub id: String,
pub model_type: String,
pub name: String,
pub language: Vec<SherpaLanguage>,
pub sample_rate: u32,
pub num_speakers: u32,
pub url: String,
pub compression: bool,
pub filesize_mb: f64,
}Expand description
Metadata for a Sherpa-ONNX model from the registry.
Fields§
§id: StringModel identifier (e.g. "kokoro-en-en-19").
model_type: StringModel type (e.g. "kokoro", "vits").
name: StringHuman-readable model name.
language: Vec<SherpaLanguage>Languages supported by this model.
sample_rate: u32Sample rate in Hz.
num_speakers: u32Number of speakers (for multi-speaker models).
url: StringDownload URL for the model archive.
compression: boolWhether the archive is compressed.
filesize_mb: f64Approximate download size in megabytes.
Trait Implementations§
Source§impl Clone for SherpaModelInfo
impl Clone for SherpaModelInfo
Source§fn clone(&self) -> SherpaModelInfo
fn clone(&self) -> SherpaModelInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SherpaModelInfo
impl RefUnwindSafe for SherpaModelInfo
impl Send for SherpaModelInfo
impl Sync for SherpaModelInfo
impl Unpin for SherpaModelInfo
impl UnsafeUnpin for SherpaModelInfo
impl UnwindSafe for SherpaModelInfo
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