diff --git a/README.md b/README.md index f100a25..196dbd9 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/internal/transcriber/adapter_whispercpp.go b/internal/transcriber/adapter_whispercpp.go deleted file mode 100644 index 8e32dd2..0000000 --- a/internal/transcriber/adapter_whispercpp.go +++ /dev/null @@ -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") -} diff --git a/internal/transcriber/transcriber.go b/internal/transcriber/transcriber.go index 7bfeede..2e018c2 100644 --- a/internal/transcriber/transcriber.go +++ b/internal/transcriber/transcriber.go @@ -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) }