wire whisper-cpp into transcriber factory

This commit is contained in:
leonardotrapani
2026-02-01 01:14:33 +01:00
parent f6bf81cf95
commit af0a55dc4b
4 changed files with 45 additions and 1 deletions
+8
View File
@@ -217,4 +217,12 @@ Started: Sun Feb 1 12:22:47 AM CET 2026
- DefaultModel(Transcription) returns 'base.en'
- Registered in provider.init()
- Comprehensive test file created: whisper_cpp_test.go
- All tests passing, typecheck passes
### Task 22: Wire whisper-cpp into transcriber factory
- Added `case "whisper-cpp"` to NewTranscriber() switch on model.AdapterType
- Imports whisper package to get model path via `whisper.GetModelPath(config.Model)`
- Creates `NewWhisperCppAdapter(modelPath, config.Language, config.Threads)`
- Returns error if whisper model ID is unknown
- Added tests for whisper-cpp factory cases: valid config, no API key required, unknown model error
- All tests passing, typecheck passes