pub struct WhisperModelInfo {
pub id: String,
pub display_name: String,
pub size_mb: u32,
pub required_memory_mb: u32,
pub installed: bool,
pub active: bool,
pub recommended: bool,
pub tier: String,
pub language: Option<String>,
pub fits_in_memory: bool,
pub advanced: bool,
}Fields§
§id: StringStable identifier (tiny, tiny.en, base, base.en,
small, small.en, medium, medium.en, large-v3).
display_name: StringHuman-readable name shown in the model manager.
size_mb: u32Approximate on-disk size in megabytes — used for confirmation dialogs (“Download 142 MB?”) and for the disk-usage summary.
required_memory_mb: u32Approximate working-set memory in megabytes (whisper.cpp’s published “required memory” — covers RAM on CPU, VRAM on GPU). Drives the “your device has only X MB” gate so we never let a user download a model their machine can’t actually run.
installed: boolWhether the binary is currently present in app_data_dir.
active: boolWhether this model is the one start_listening will load.
recommended: boolMarks the suggested default for first-time users. Exactly one model in the catalogue carries this flag.
tier: StringShort qualitative label for the speed ↔ accuracy trade-off,
e.g. "fastest", "balanced", "most accurate". Lets the UI
stay in sync with the catalogue without owning copy.
language: Option<String>Some("en") for English-optimised variants (*.en), None
for the multilingual default models. The frontend prefers an
.en variant when the course’s declared language is English.
fits_in_memory: boolfalse when the local machine doesn’t have enough RAM/VRAM to
load this model. Drives the install button’s disabled state and
the “Not enough memory” hint in the UI.
advanced: boolPower-user model (currently the large family). Hidden from
the default catalogue listing — surfaces only when the caller
explicitly asks for advanced models.
Trait Implementations§
Source§impl Clone for WhisperModelInfo
impl Clone for WhisperModelInfo
Source§fn clone(&self) -> WhisperModelInfo
fn clone(&self) -> WhisperModelInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more