remove whisper.cpp adapter for now
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
# Hyprvoice - Voice-Powered Typing for Wayland
|
||||
# Hyprvoice - Voice-Powered Typing for Hyprland / Wayland
|
||||
|
||||
Press a toggle key, speak, and get instant text input. A speech-to-text tool designed for Wayland/Hyprland with toggle-based workflow and seamless text injection.
|
||||
Press a toggle key, speak, and get instant text input. Built natively for Wayland/Hyprland - no X11 hacks or workarounds, just clean integration with modern Linux desktops.
|
||||
|
||||
## Features
|
||||
|
||||
- **Toggle workflow**: Press once to start recording, press again to stop and inject text
|
||||
- **Wayland native**: Built specifically for modern Linux desktops (Hyprland, etc.)
|
||||
- **Wayland native**: Purpose-built for Wayland compositors - no legacy X11 dependencies or hacky workarounds
|
||||
- **Real-time feedback**: Desktop notifications for recording states and transcription status
|
||||
- **Multiple transcription backends**: OpenAI Whisper (planned: whisper.cpp for local processing)
|
||||
- **Smart text injection**: Clipboard save/restore with direct typing fallback
|
||||
|
||||
@@ -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")
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user