Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.
JavaScript aianthropiccross-platformgeminigroqlinuxmacosnvidiaopen-sourceopenaiparakeetspeech-to-texttranscribewhisperwindows
chore: update documentation
Gabriel Stein0f1cd845e3df
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 9a195f5cf..9235421e8 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).-## [1.0.4] - 2025-08-12+## [1.0.4] - 2025-09-09### Added- **Multi-Provider AI Support**: Integrated three major AI providers for text processing@@ -16,11 +16,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0- GPT-4o/4o-mini - Multimodal models with vision support- Anthropic: Claude Opus 4.1, Sonnet 4, and 3.5 variants for frontier intelligence- Google: Gemini 2.5 Pro/Flash/Flash-Lite and 2.0 Flash for advanced processing+- **OpenAI Responses API Integration**: Migrated from Chat Completions to the new Responses API+ - Simplified request format with `input` array instead of `messages`+ - New response parsing for `output` items with typed content+ - Automatic handling of model-specific requirements+ - Better support for GPT-5 and o-series reasoning models- **Enhanced Reasoning Service**: Complete TypeScript rewrite with provider abstraction- Automatic provider detection based on selected model- Secure API key caching with TTL- Unified retry strategies across all providers- Provider-specific token optimization (up to 8192 for Gemini)+- **Comprehensive Debug Logging**: Enhanced reasoning pipeline with stage-by-stage logging+ - Provider selection and routing logs+ - API key retrieval and validation logs+ - Request/response details for all providers+ - Error tracking with full stack traces- **Improved Settings UI**: Comprehensive API key management for all providers- Color-coded provider sections (OpenAI=green, Anthropic=purple, Gemini=blue)- Inline API key validation and secure storage@@ -29,11 +39,35 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0### Changed- **Default AI Model**: Updated from GPT-3.5 Turbo to GPT-4o Mini for cost-efficient multimodal support- **Model Updates**: Refreshed all AI models to their latest 2025 versions- - OpenAI: Added GPT-5 family (released August 2025)- - Anthropic: Updated to Claude Opus 4.1 and Sonnet 4- - Gemini: Added latest 2.5 series models+ - OpenAI: Added GPT-5 family (released August 2025), migrated to Responses API+ - Anthropic: Updated to Claude Opus 4.1 and Sonnet 4, fixed model naming+ - Gemini: Added latest 2.5 series models, increased token limits- **ReasoningService**: Migrated from JavaScript to TypeScript for better type safety-- **Documentation**: Updated CLAUDE.md with comprehensive provider information+- **API Endpoint Updates**:+ - OpenAI: Migrated from `/v1/chat/completions` to `/v1/responses`+ - Request format simplified for better performance+ - Response parsing updated for new output structure+- **Model Configuration Improvements**:+ - Fixed Anthropic model names (using hyphens instead of dots)+ - Increased Gemini 2.5 Pro token limits (2000 minimum)+ - Removed temperature parameter for GPT-5 and o-series models+- **Documentation**: Updated CLAUDE.md, README.md with comprehensive provider information++### Fixed+- **API Key Persistence**: All provider keys now properly save to `.env` file+ - Added `saveAllKeysToEnvFile()` method for consistent persistence+ - Keys reload automatically on app restart+ - Fixed Gemini and Anthropic key storage issues+- **CORS Issues**: Anthropic API calls now route through IPC handler+ - Avoids browser CORS restrictions in renderer process+ - Proper error handling in main process+- **Empty Response Handling**: Fixed "No text transcribed" error when AI returns empty+ - Falls back to original text when API returns nothing+ - Properly handles edge cases in response parsing+- **Parameter Compatibility**: Fixed OpenAI API parameter errors+ - GPT-5 models use simplified parameters (no max_tokens)+ - o-series models configured without temperature+ - Older models retain full parameter support### Technical Improvements- Added Gemini API integration with proper authentication flow@@ -42,6 +76,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0- Updated environment manager with Gemini key storage- Improved error handling with provider-specific messages- Added comprehensive retry logic with exponential backoff+- Enhanced error messages with detailed logging+- Better fallback strategies for API failures+- Improved response validation and parsing+- Centralized API configuration in constants file+- Unified debugging system across all providers## [1.0.3] - 2024-12-20diff --git a/CLAUDE.md b/CLAUDE.mdindex d207ac251..00ee62316 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -170,24 +170,58 @@ Settings stored in localStorage with these keys:- ReasoningService detects "Hey [AgentName]" patterns- AI processes command and removes agent reference from output- Supports multiple AI providers:- - **OpenAI**:- - GPT-5 Series (Nano/Mini/Full)- - GPT-4.1 Series (Nano/Mini/Full) with 1M context- - o-series reasoning models (o3/o3-pro/o4-mini)- - GPT-4o multimodal series (4o/4o-mini) - default- - GPT-4 Turbo and GPT-4 classic- - GPT-3.5 Turbo legacy- - **Anthropic**: Claude Opus 4.1, Claude Sonnet 4, Claude 3.5 Sonnet/Haiku- - **Google**: Gemini 2.5 Pro/Flash/Flash-Lite, Gemini 2.0 Flash- - **Local**: Community models via LocalReasoningService--### 8. Debug Mode+ - **OpenAI** (Now using Responses API as of September 2025):+ - GPT-5 Series (Nano/Mini/Full) - Latest models with fastest performance+ - GPT-4.1 Series (Nano/Mini/Full) with 1M context window+ - o-series reasoning models (o3/o3-pro/o4-mini) for deep reasoning tasks+ - GPT-4o multimodal series (4o/4o-mini) - default model+ - Legacy support for GPT-4 Turbo, GPT-4 classic, GPT-3.5 Turbo+ - **Anthropic** (Via IPC bridge to avoid CORS):+ - Claude Opus 4.1 (claude-opus-4-1-20250805) - Frontier intelligence+ - Claude Sonnet 4 (claude-sonnet-4-20250514) - Latest balanced model+ - Claude 3.5 Sonnet (claude-3-5-sonnet-20241022) - Balanced performance+ - Claude 3.5 Haiku (claude-3-5-haiku-20241022) - Fast and efficient+ - **Google Gemini** (Direct API integration):+ - Gemini 2.5 Pro (gemini-2.5-pro) - Most intelligent with thinking capability+ - Gemini 2.5 Flash (gemini-2.5-flash) - High-performance with thinking+ - Gemini 2.5 Flash Lite (gemini-2.5-flash-lite) - Fast and low-cost+ - Gemini 2.0 Flash (gemini-2.0-flash) - 1M token context+ - **Local**: Community models via LocalReasoningService (Qwen, LLaMA, Mistral)++### 8. API Integrations and Updates++**OpenAI Responses API (September 2025)**:+- Migrated from Chat Completions to new Responses API+- Endpoint: `https://api.openai.com/v1/responses`+- Simplified request format with `input` array instead of `messages`+- New response format with `output` array containing typed items+- Automatic handling of GPT-5 and o-series model requirements+- No temperature parameter for newer models (GPT-5, o-series)++**Anthropic Integration**:+- Routes through IPC handler to avoid CORS issues in renderer process+- Uses main process for API calls with proper error handling+- Model names use hyphens (e.g., `claude-3-5-sonnet` not `claude-3.5-sonnet`)++**Gemini Integration**:+- Direct API calls from renderer process+- Increased token limits for Gemini 2.5 Pro (2000 minimum)+- Proper handling of thinking process in responses+- Error handling for MAX_TOKENS finish reason++**API Key Persistence**:+- All API keys now properly persist to `.env` file+- Keys stored in environment variables and reloaded on app start+- Centralized `saveAllKeysToEnvFile()` method ensures consistency++### 9. Debug ModeEnable with `--debug` flag or `OPENWHISPR_DEBUG=true`:- Logs saved to platform-specific app data directory- Comprehensive logging of audio pipeline- FFmpeg path resolution details- Audio level analysis+- Complete reasoning pipeline debugging with stage-by-stage logging## Development Guidelinesdiff --git a/README.md b/README.mdindex 0245c6a29..e3976ea68 100644--- a/README.md+++ b/README.md@@ -9,18 +9,23 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file## Features- π€ **Global Hotkey**: Customizable hotkey to start/stop dictation from anywhere (default: backtick `)-- π€ **Multi-Provider AI Processing**: Choose between OpenAI GPT-5, Anthropic Claude, Google Gemini, or local models+- π€ **Multi-Provider AI Processing**: Choose between OpenAI, Anthropic Claude, Google Gemini, or local models- π― **Agent Naming**: Personalize your AI assistant with a custom name for natural interactions-- π§ **Advanced Reasoning**: Latest AI models including GPT-5, Claude Opus 4.1, and Gemini 2.5 Pro+- π§ **Latest AI Models** (September 2025):+ - **OpenAI**: GPT-5 Series, GPT-4.1 Series, o-series reasoning models (o3/o4-mini)+ - **Anthropic**: Claude Opus 4.1, Claude Sonnet 4, Claude 3.5 Sonnet/Haiku+ - **Google**: Gemini 2.5 Pro/Flash/Flash-Lite with thinking capability, Gemini 2.0 Flash+ - **Local**: Qwen, LLaMA, Mistral models via llama.cpp- π **Privacy-First**: Local processing keeps your voice data completely private- π¨ **Modern UI**: Built with React 19, TypeScript, and Tailwind CSS v4- π **Fast**: Optimized with Vite and modern tooling- π± **Control Panel**: Manage settings, view history, and configure API keys- ποΈ **Transcription History**: SQLite database stores all your transcriptions locally-- π§ **Model Management**: Download and manage local Whisper models (tiny, base, small, medium, large)+- π§ **Model Management**: Download and manage local Whisper models (tiny, base, small, medium, large, turbo)- π **Cross-Platform**: Works on macOS, Windows, and Linux- β‘ **Automatic Pasting**: Transcribed text automatically pastes at your cursor location- π±οΈ **Draggable Interface**: Move the dictation panel anywhere on your screen+- π **OpenAI Responses API**: Using the latest Responses API for improved performance## Prerequisites@@ -43,16 +48,20 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) filenpm install```-3. **Optional: Set up OpenAI API key** (only needed for cloud processing):+3. **Optional: Set up API keys** (only needed for cloud processing):**Method A - Environment file**:```bashcp env.example .env- # Edit .env and add your OpenAI API key+ # Edit .env and add your API keys:+ # OPENAI_API_KEY=your_openai_key+ # ANTHROPIC_API_KEY=your_anthropic_key+ # GEMINI_API_KEY=your_gemini_key```**Method B - In-app configuration**:- - Run the app and configure the API key through the Control Panel+ - Run the app and configure API keys through the Control Panel+ - Keys are automatically saved and persist across app restarts4. **Run the application**:```bash