refactor(transcription): LocalEngine dispatches SpeechBackend enum — Whisper now on whisper-rs

This commit is contained in:
2026-04-19 20:20:03 +01:00
parent c426fa7eb2
commit 4256383a5b
3 changed files with 53 additions and 44 deletions

View File

@@ -72,7 +72,7 @@ fn model_capability(
}
}
pub fn load_model_from_disk(model_id: &ModelId) -> Result<Box<dyn kon_transcription::SpeechModel + Send>, String> {
pub fn load_model_from_disk(model_id: &ModelId) -> Result<kon_transcription::SpeechBackend, String> {
let entry = model_registry::find_model(model_id)
.ok_or_else(|| format!("Unknown model: {model_id}"))?;