pub struct ModelDownloadManager { /* private fields */ }Expand description
Manages voice model downloads, caching, and integrity verification.
Implementations§
Source§impl ModelDownloadManager
impl ModelDownloadManager
Sourcepub fn is_cached(&self, model: &ModelInfo) -> bool
pub fn is_cached(&self, model: &ModelInfo) -> bool
Check if a model is already cached and valid.
Sourcepub fn model_path(&self, model_id: &str) -> PathBuf
pub fn model_path(&self, model_id: &str) -> PathBuf
Get the local path where a model would be cached.
Sourcepub fn available_stt_models() -> Vec<ModelInfo>
pub fn available_stt_models() -> Vec<ModelInfo>
List available STT models.
Sourcepub fn available_tts_models() -> Vec<ModelInfo>
pub fn available_tts_models() -> Vec<ModelInfo>
List available TTS models.
Sourcepub fn available_vad_models() -> Vec<ModelInfo>
pub fn available_vad_models() -> Vec<ModelInfo>
List available VAD models.
Auto Trait Implementations§
impl Freeze for ModelDownloadManager
impl RefUnwindSafe for ModelDownloadManager
impl Send for ModelDownloadManager
impl Sync for ModelDownloadManager
impl Unpin for ModelDownloadManager
impl UnsafeUnpin for ModelDownloadManager
impl UnwindSafe for ModelDownloadManager
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