pub trait STTModelsProvider: Send + Sync {
// Required method
fn get_current_model(&self) -> ModelInfo;
// Provided methods
fn list_models<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = STTResult<Vec<ModelInfo>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn supported_languages(&self) -> Vec<String> { ... }
}Expand description
Trait for STT model management capabilities
Required Methods§
Sourcefn get_current_model(&self) -> ModelInfo
fn get_current_model(&self) -> ModelInfo
Provided Methods§
Sourcefn list_models<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = STTResult<Vec<ModelInfo>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_models<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = STTResult<Vec<ModelInfo>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Sourcefn supported_languages(&self) -> Vec<String>
fn supported_languages(&self) -> Vec<String>
Get supported languages