remove whisper.cpp adapter for now

This commit is contained in:
LeonardoTrapani
2025-08-18 19:17:55 +02:00
parent afb77605fb
commit f03c9c6a87
3 changed files with 3 additions and 37 deletions
@@ -1,31 +0,0 @@
package transcriber
import (
"context"
"fmt"
)
// WhisperCppAdapter implements TranscriptionAdapter for local whisper.cpp
type WhisperCppAdapter struct {
config Config
modelPath string
}
func NewWhisperCppAdapter(config Config) *WhisperCppAdapter {
return &WhisperCppAdapter{
config: config,
// TODO: Configure model path based on config
modelPath: "./models/ggml-base.en.bin",
}
}
func (a *WhisperCppAdapter) Transcribe(ctx context.Context, audioData []byte) (string, error) {
// TODO: Implement whisper.cpp transcription
// This will involve:
// 1. Writing audio data to a temporary file or pipe
// 2. Calling whisper.cpp binary with appropriate flags
// 3. Reading the transcription result
// 4. Cleaning up temporary files
return "", fmt.Errorf("whisper.cpp adapter not implemented yet")
}
-3
View File
@@ -48,9 +48,6 @@ func NewTranscriber(config Config) (Transcriber, error) {
}
adapter = NewOpenAIAdapter(config)
case "whisper.cpp":
adapter = NewWhisperCppAdapter(config)
default:
return nil, fmt.Errorf("unsupported provider: %s", config.Provider)
}