Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

feat(onboarding): use-case intent capture, meeting step, and finish step (#928)

Gabriel Stein70a0d677b400
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md
index 3652587d6..a17c0be00 100644
--- a/.github/CONTRIBUTING.md
+++ b/.github/CONTRIBUTING.md
@@ -41,14 +41,14 @@ The short version:
### Local setup
-| Requirement | Notes |
-|-------------|-------|
+| Requirement | Notes |
+| ----------- | --------------------------------------------------------------------------------- |
| Node.js | Version pinned in [`.nvmrc`](../.nvmrc) (currently `24`). Use `nvm use` to match. |
-| Install | `npm install` |
-| Run dev | `npm run dev` |
-| Lint | `npm run lint` |
-| Format | `npm run format` |
-| Build | `npm run build` (or `build:mac` / `build:win` / `build:linux`) |
+| Install | `npm install` |
+| Run dev | `npm run dev` |
+| Lint | `npm run lint` |
+| Format | `npm run format` |
+| Build | `npm run build` (or `build:mac` / `build:win` / `build:linux`) |
Platform-specific setup, local Whisper notes, and packaging details are
in [`README.md`](../README.md) and
diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
index dd84ea782..9b77ea713 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.md
+++ b/.github/ISSUE_TEMPLATE/bug_report.md
@@ -1,10 +1,9 @@
---
name: Bug report
about: Create a report to help us improve
-title: ''
-labels: ''
-assignees: ''
-
+title: ""
+labels: ""
+assignees: ""
---
**Describe the bug**
@@ -12,6 +11,7 @@ A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior:
+
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
@@ -24,15 +24,17 @@ A clear and concise description of what you expected to happen.
If applicable, add screenshots to help explain your problem.
**Desktop (please complete the following information):**
- - OS: [e.g. iOS]
- - Browser [e.g. chrome, safari]
- - Version [e.g. 22]
+
+- OS: [e.g. iOS]
+- Browser [e.g. chrome, safari]
+- Version [e.g. 22]
**Smartphone (please complete the following information):**
- - Device: [e.g. iPhone6]
- - OS: [e.g. iOS8.1]
- - Browser [e.g. stock browser, safari]
- - Version [e.g. 22]
+
+- Device: [e.g. iPhone6]
+- OS: [e.g. iOS8.1]
+- Browser [e.g. stock browser, safari]
+- Version [e.g. 22]
**Additional context**
Add any other context about the problem here.
diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md
index bbcbbe7d6..2bc5d5f71 100644
--- a/.github/ISSUE_TEMPLATE/feature_request.md
+++ b/.github/ISSUE_TEMPLATE/feature_request.md
@@ -1,10 +1,9 @@
---
name: Feature request
about: Suggest an idea for this project
-title: ''
-labels: ''
-assignees: ''
-
+title: ""
+labels: ""
+assignees: ""
---
**Is your feature request related to a problem? Please describe.**
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 967452a86..c8e1f6533 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,72 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
+## [1.7.3] - 2026-06-23
+
+A big release: two new transcription providers (Corti for clinical-grade medical dictation and xAI), a reworked onboarding flow built around what you'll use OpenWhispr for, spoken Snippets, a dedicated Voice Agent hotkey, a redesigned dictionary with cross-device sync, dedicated Audio Upload transcription settings, discarded-dictation history, OS-level notification controls, Linux PipeWire system-audio capture, new AI models, and a stack of fixes across paste, audio, settings, and Linux window managers.
+
+### Transcription
+
+- **Corti — clinical-grade medical transcription (BYOK).** New bring-your-own-key cloud provider built on Corti (corti.ai) for HIPAA-compliant, clinical-grade speech-to-text in dictation and uploaded-audio notes. The main-process client mints OAuth2 client-credentials tokens and stores credentials in the encrypted keychain like every other key. (#929)
+- **xAI speech-to-text.** Added xAI as a cloud transcription provider. (#942)
+- **Corti onboarding polish.** Added the Corti provider icon, and the "Get a key" link plus the onboarding Corti links now point to the corti.ai homepage with referral UTM tracking instead of the bare console.
+- **Self-hosted servers skip the API-key check** so local / self-hosted transcription endpoints work without a key. (#835)
+- **Dedicated Audio Upload transcription settings.** Uploaded audio files now have their own Speech-to-Text context (Settings → Speech-to-Text → Audio Upload) with an independent provider and model, split out from dictation the same way Note Recording was. Existing users' dictation preference is migrated over; new users default to OpenWhispr Cloud.
+- **Cancel an in-progress audio-file transcription** from the upload screen — cancelling returns to the upload view and discards the result so nothing is saved.
+
+### Reasoning & models
+
+- **New models:** Claude Opus 4.8 (#884), Gemini 3.5 Flash (#837), and Gemma 4 (#892) are now selectable in their respective model pickers.
+- **Correct limit-error handling for BYOK and cloud reasoning.** (#941)
+
+### Dictation & notes
+
+- **Snippets — spoken trigger-word expansion.** Save trigger → replacement pairs (e.g. "cal link" → "cal.com/anna/30min"); when a trigger is spoken during dictation it's replaced before pasting. (#934)
+- **Voice Agent hotkey.** A dedicated global hotkey that sends a dictation straight to the dictation agent as a command — no wake word — and always bypasses the cleanup model, separate from the chat-agent overlay hotkey. (#932)
+- **Smart spacing around dictated text** so inserted text spaces correctly against surrounding content. (#856, #868)
+- **Redesigned dictionary page** — list view with hover-revealed inline edit/remove, an agent header card, and bulk import/export. (#933)
+- **Dictionary prompt-echo fix** so dictionary terms no longer leak into transcripts. (#852)
+- **Cross-device custom dictionary sync.** Your custom dictionary now syncs across signed-in devices, with last-writer-wins conflict resolution so edits and deletions converge cleanly. (#966)
+- **Discarded dictations are preserved in history.** Cancelled, too-short, or failed dictations are now kept and surfaced behind a "Show Discarded" toggle in History instead of vanishing. (#964)
+
+### Onboarding
+
+- **Intent capture up front.** A new "About you" step lets you multi-select what you'll use OpenWhispr for — dictation, meetings, healthcare, translation, AI commands, or uploading audio — and the rest of onboarding adapts to your choices.
+- **Inline Corti setup for healthcare.** Picking healthcare surfaces Corti on the finish step — enter Corti credentials right there or open Settings with the Corti provider preselected, with a "Skip for now" escape.
+- **Skippable optional steps**, onboarding progress moved into the macOS title bar, the quit button removed from the title bar, a back-to-sign-in escape on email verification, and ghost-variant styling for subtle auth actions.
+- **Provider chips styling fix** on the notes onboarding screen. (#916)
+
+### Settings & notifications
+
+- **OS-level notification controls.** New settings to scope which OS-level interruptions OpenWhispr raises. (#781)
+- **Remove button for the agent hotkey.** (#824)
+- **Simpler meeting detection.** Audio-based meeting detection is now driven by the notification toggle (`notificationsEnabled && notifyMeetingDetection`) instead of a separate Audio Detection setting; the standalone setting, its UI section, and the now-dead detection translations were removed so a detector can't burn CPU while notifications are off.
+- **Settings no longer grabs the microphone.** Opening Settings used to call `getUserMedia` to read device labels, which started a mic session and interrupted other audio (e.g. paused music on macOS). It now enumerates devices first and only falls back to `getUserMedia` when labels are missing because permission hasn't been granted.
+- **Custom cleanup API key persists across restarts.** (#893)
+- **Download progress is preserved across tab switches.** (#735)
+- **Select trigger background aligned** with surrounding controls. (#825)
+
+### Linux
+
+- **PipeWire system-audio capture** for transcriptions via a direct PipeWire loopback (replacing the ScreenCast portal path). (#904)
+- **Nix flake** for one-command install, plus a GitHub Action. (#886)
+- **Paste reliability:** Shift+Insert paste for Electron app windows (#873) and when the window context is unknown (#827); the ydotool socket is now propagated to spawned clients (#962).
+- **Dictation hotkey no longer dies in Hyprland** on config reload. (#919)
+- **Fall back to the system journal** when the user journal has no KWin entries. (#776)
+
+### Fixes
+
+- **Auto-paste in Chromium-based apps on macOS.** (#668, #823)
+- **Mic re-acquired when it goes silent after idle.** (#922)
+- **Serialize `.env` writes** to prevent an ENOENT rename race. (#940)
+- **Fall back to JS extraction** when system unzip is unavailable. (#775)
+- **Localized Language Models settings** across all locales (#887); fixed zh-CN note-files description mojibake (#848).
+- **Local semantic search restored in packaged builds.** A regression that broke on-device semantic note search in packaged (production) builds is fixed. (#981)
+- **Faster local transcription:** the bundled Whisper server now auto-tunes its thread count to the machine. (#994)
+- **Accurate live speaker counts in note recordings** — per-segment "Speaker N" labels no longer climb past the expected speaker count, and the recorder panel now follows the cursor to the active monitor. (#967)
+- **Cloud users no longer need to manually pick a model** for the Voice Agent hotkey or note formatting — both now reach the OpenWhispr cloud agent without an explicitly selected model.
+- **No stale clipboard restores during paste**, and cloud requests that hit a stale auth token now recover via the session cookie (fixes onboarding intent silently failing to save after email/password sign-in).
+
## [1.7.2] - 2026-05-20
A small patch on top of 1.7.1: zero unnecessary macOS Keychain prompts on first launch, working cloud transcription on Electron's `net.fetch`, the Note Formatting selector now actually controls model routing, Wave Terminal pastes via the terminal path, and a notes view stability fix.
diff --git a/CLAUDE.md b/CLAUDE.md
index ca734cf46..ecd655b6d 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -9,6 +9,7 @@ OpenWhispr is an Electron-based desktop dictation application that uses whisper.
## Architecture Overview
### Core Technologies
+
- **Frontend**: React 19, TypeScript, Tailwind CSS v4, Vite
- **Desktop Framework**: Electron 41 with context isolation
- **Database**: better-sqlite3 for local transcription history
@@ -63,7 +64,7 @@ OpenWhispr is an Electron-based desktop dictation application that uses whisper.
- **environment.js**: Environment variable and OpenAI API management
- **hotkeyManager.js**: Global hotkey registration and management
- Named hotkey slots: `dictation`, `agent` (chat agent overlay), `voiceAgent` (dictation routed straight to the dictation agent), `meeting`
- - Handles platform-specific defaults (GLOBE on macOS, backtick on Windows/Linux)
+ - Handles platform-specific defaults (GLOBE on macOS, Control+Super on Windows/Linux)
- Auto-fallback to F8/F9 if default hotkey is unavailable
- Notifies renderer via IPC when hotkey registration fails
- Integrates with GnomeShortcutManager for GNOME Wayland support
@@ -175,12 +176,14 @@ OpenWhispr is an Electron-based desktop dictation application that uses whisper.
Always-on offline semantic search that finds notes by meaning, not just keywords. Used by the AI agent's `search_notes` tool. Qdrant starts automatically on app launch; embedding model auto-downloads on first run if missing.
**Architecture**:
+
- **Qdrant sidecar**: Rust binary spawned as child process (`qdrantManager.js`), port 6333–6350
- **Embedding model**: `all-MiniLM-L6-v2` via ONNX Runtime (`localEmbeddings.js`), 384-dim vectors
- **Vector index**: Qdrant collection management (`vectorIndex.js`), cosine distance
- **Hybrid search**: FTS5 + Qdrant in parallel → Reciprocal Rank Fusion (K=60) with 0.3 cosine score threshold
**Pipeline**:
+
1. App launches → Qdrant binary starts → collection created. Embedding model auto-downloads if missing (~22MB)
2. Note create/update/delete → SQLite write → background vector upsert/delete via `_asyncVectorUpsert()`/`_asyncVectorDelete()`
3. Agent searches → `db-semantic-search-notes` IPC → parallel FTS5 + vector search → RRF merge → ranked results
@@ -188,6 +191,7 @@ Always-on offline semantic search that finds notes by meaning, not just keywords
**Search fallback chain** (in `searchNotesTool.ts`): cloud search → local semantic → FTS5 keyword
**Storage**:
+
- Qdrant data: `~/.cache/openwhispr/qdrant-data/`
- Qdrant binary: `resources/bin/qdrant-{platform}-{arch}` (bundled — downloaded during `prebuild` / `predev`)
- Embedding model: `~/.cache/openwhispr/embedding-models/all-MiniLM-L6-v2/` (auto-downloaded on first launch)
@@ -222,6 +226,7 @@ Always-on offline semantic search that finds notes by meaning, not just keywords
### 1. FFmpeg Integration
FFmpeg is bundled with the app and doesn't require system installation:
+
```javascript
// FFmpeg is unpacked from ASAR to app.asar.unpacked/node_modules/ffmpeg-static/
```
@@ -240,6 +245,7 @@ FFmpeg is bundled with the app and doesn't require system installation:
### 3. Local Whisper Models (GGML format)
Models stored in `~/.cache/openwhispr/whisper-models/`:
+
- tiny: ~75MB (fastest, lowest quality)
- base: ~142MB (recommended balance)
- small: ~466MB (better quality)
@@ -265,6 +271,7 @@ CREATE TABLE transcriptions (
### 5. Settings Storage
Settings stored in localStorage with these keys:
+
- `whisperModel`: Selected Whisper model
- `useLocalWhisper`: Boolean for local vs cloud
- `language`: Selected language code
@@ -278,12 +285,14 @@ Settings stored in localStorage with these keys:
Secret env vars (12 total: 7 BYOK API keys + 5 enterprise cloud creds — see `SECRET_KEYS` in `environment.js`) are encrypted at rest via Electron `safeStorage` and stored as per-key files under `userData/secure-keys/`. They are loaded into `process.env` at startup by `EnvironmentManager.init()`. Renderer reads them via IPC (`get-*-key`) and writes via debounced IPC (`save-*-key`). On Linux without a keyring, secrets fall back to plaintext.
Non-secret env vars persisted to `.env` (via `saveAllKeysToEnvFile()`):
+
- `LOCAL_TRANSCRIPTION_PROVIDER`: Transcription engine (`nvidia` for Parakeet)
- `PARAKEET_MODEL`: Selected Parakeet model name (e.g., `parakeet-tdt-0.6b-v3`)
### 6. Language Support
58 languages supported (see src/utils/languages.ts):
+
- Each language has a two-letter code and label
- "auto" for automatic detection
- Passed to whisper.cpp via -l parameter
@@ -317,6 +326,7 @@ Non-secret env vars persisted to `.env` (via `saveAllKeysToEnvFile()`):
### 8. Model Registry Architecture
All AI model definitions are centralized in `src/models/modelRegistryData.json` as the single source of truth:
+
```json
{
"cloudProviders": [...], // OpenAI, Anthropic, Gemini API models
@@ -325,6 +335,7 @@ All AI model definitions are centralized in `src/models/modelRegistryData.json`
```
**Key files:**
+
- `src/models/modelRegistryData.json` - Single source of truth for all models
- `src/models/ModelRegistry.ts` - TypeScript wrapper with helper methods
- `src/config/aiProvidersConfig.ts` - Derives AI_MODES from registry
@@ -332,6 +343,7 @@ All AI model definitions are centralized in `src/models/modelRegistryData.json`
- `src/helpers/modelManagerBridge.js` - Handles local model downloads
**Local model features:**
+
- Each model has `hfRepo` for direct HuggingFace download URLs
- `promptTemplate` defines the chat format (ChatML, Llama, Mistral)
- Download URLs constructed as: `{baseUrl}/{hfRepo}/resolve/main/{fileName}`
@@ -339,6 +351,7 @@ All AI model definitions are centralized in `src/models/modelRegistryData.json`
### 9. 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`
@@ -347,17 +360,20 @@ All AI model definitions are centralized in `src/models/modelRegistryData.json`
- 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 IDs use alias format (e.g., `claude-sonnet-4-6` not date-suffixed versions)
**Gemini Integration**:
+
- Direct API calls from renderer process
- Increased token limits for Gemini 3.1 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
@@ -367,6 +383,7 @@ All AI model definitions are centralized in `src/models/modelRegistryData.json`
The app can open OS-level settings for microphone permissions, sound input selection, and accessibility:
**IPC Handlers** (in `ipcHandlers.js`):
+
- `open-microphone-settings`: Opens microphone privacy settings
- `open-sound-input-settings`: Opens sound/audio input device settings
- `open-accessibility-settings`: Opens accessibility privacy settings (macOS only)
@@ -379,6 +396,7 @@ The app can open OS-level settings for microphone permissions, sound input selec
| Linux | Manual (no URL scheme) | Manual (e.g., pavucontrol) | N/A |
**UI Component** (`MicPermissionWarning.tsx`):
+
- Shows platform-appropriate buttons and messages
- Linux only shows "Open Sound Settings" (no separate privacy settings)
- macOS/Windows show both sound and privacy buttons
@@ -386,6 +404,7 @@ The app can open OS-level settings for microphone permissions, sound input selec
### 11. Debug Mode
Enable with `--log-level=debug` or `OPENWHISPR_LOG_LEVEL=debug` (can be set in `.env`):
+
- Logs saved to platform-specific app data directory
- Comprehensive logging of audio pipeline
- FFmpeg path resolution details
@@ -397,22 +416,26 @@ Enable with `--log-level=debug` or `OPENWHISPR_LOG_LEVEL=debug` (can be set in `
Native Windows support for true push-to-talk functionality using low-level keyboard hooks:
**Architecture**:
+
- `resources/windows-key-listener.c`: Native C program using Windows `SetWindowsHookEx` for keyboard hooks
- `src/helpers/windowsKeyManager.js`: Node.js wrapper that spawns and manages the native binary
- Binary outputs `KEY_DOWN` and `KEY_UP` to stdout when target key is pressed/released
**Compound Hotkey Support**:
+
- Parses hotkey strings like `CommandOrControl+Shift+F11`
- Maps modifiers: `CommandOrControl`/`Ctrl` → VK_CONTROL, `Alt`/`Option` → VK_MENU, `Shift` → VK_SHIFT
- Verifies all required modifiers are held before emitting key events
**Binary Distribution**:
+
- Prebuilt binary downloaded from GitHub releases (`windows-key-listener-v*` tags)
- Download script: `scripts/download-windows-key-listener.js`
- CI workflow: `.github/workflows/build-windows-key-listener.yml`
- Fallback to tap mode if binary unavailable
**IPC Events**:
+
- `windows-key-listener:key-down`: Fired when hotkey pressed (start recording)
- `windows-key-listener:key-up`: Fired when hotkey released (stop recording)
@@ -421,18 +444,21 @@ Native Windows support for true push-to-talk functionality using low-level keybo
Improve transcription accuracy for specific words, names, or technical terms:
**How it works**:
+
- User adds words/phrases through Settings → Custom Dictionary
- Words stored as JSON array in localStorage (`customDictionary` key)
- On transcription, words are joined and passed as `prompt` parameter to Whisper
- Works with both local whisper.cpp and cloud OpenAI Whisper API
**Implementation**:
+
- `src/hooks/useSettings.ts`: Manages `customDictionary` state
- `src/components/SettingsPage.tsx`: UI for adding/removing dictionary words
- `src/helpers/audioManager.js`: Reads dictionary and adds to transcription options
- `src/helpers/whisperServer.js`: Includes dictionary as `prompt` in API request
**Whisper Prompt Parameter**:
+
- Whisper uses the prompt as context/hints for transcription
- Words in the prompt are more likely to be recognized correctly
- Useful for: uncommon names, technical jargon, brand names, domain-specific terms
@@ -442,6 +468,7 @@ Improve transcription accuracy for specific words, names, or technical terms:
On GNOME Wayland, Electron's `globalShortcut` API doesn't work due to Wayland's security model. OpenWhispr uses native GNOME shortcuts:
**Architecture**:
+
1. `main.js` enables `GlobalShortcutsPortal` feature flag for Wayland
2. `hotkeyManager.js` detects GNOME + Wayland and initializes `GnomeShortcutManager`
3. `gnomeShortcut.js` creates D-Bus service at `com.openwhispr.App`
@@ -449,18 +476,21 @@ On GNOME Wayland, Electron's `globalShortcut` API doesn't work due to Wayland's
5. GNOME triggers `dbus-send` command which calls the D-Bus `Toggle()` method
**Key Constants**:
+
- D-Bus service: `com.openwhispr.App`
- D-Bus path: `/com/openwhispr/App`
- gsettings path: `/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/openwhispr/`
**IPC Integration**:
+
- `get-hotkey-mode-info`: Returns `{ isUsingGnome, isUsingHyprland, isUsingNativeShortcut }` to renderer
- UI hides activation mode selector when `isUsingNativeShortcut` is true
- Forces tap-to-talk mode (push-to-talk not supported)
**Hotkey Format Conversion**:
-- Electron format: `Alt+R`, `CommandOrControl+Shift+Space`
-- GNOME format: `<Alt>r`, `<Control><Shift>space`
+
+- Electron format: `F8`, `CommandOrControl+Shift+Space`
+- GNOME format: `F8`, `<Control><Shift>space`
- Backtick (`) → `grave` in GNOME keysym format
### 15. Hyprland Wayland Global Hotkeys
@@ -468,6 +498,7 @@ On GNOME Wayland, Electron's `globalShortcut` API doesn't work due to Wayland's
On Hyprland (wlroots Wayland compositor), Electron's `globalShortcut` API and the `GlobalShortcutsPortal` feature don't work reliably. OpenWhispr uses native Hyprland keybindings:
**Architecture**:
+
1. `main.js` enables `GlobalShortcutsPortal` feature flag for Wayland (fallback)
2. `hotkeyManager.js` detects Hyprland + Wayland and initializes `HyprlandShortcutManager`
3. `hyprlandShortcut.js` creates D-Bus service at `com.openwhispr.App` (same as GNOME)
@@ -475,20 +506,24 @@ On Hyprland (wlroots Wayland compositor), Electron's `globalShortcut` API and th
5. Hyprland triggers `dbus-send` command which calls the D-Bus `Toggle()` method
**Detection**:
+
- Primary: `HYPRLAND_INSTANCE_SIGNATURE` environment variable (set by Hyprland)
- Fallback: `XDG_CURRENT_DESKTOP` contains "hyprland"
**Hotkey Format Conversion**:
-- Electron format: `Alt+R`, `CommandOrControl+Shift+Space`
-- Hyprland format: `ALT, R`, `CTRL SHIFT, space`
+
+- Electron format: `Control+Super`, `CommandOrControl+Shift+Space`
+- Hyprland format: `CTRL, Super_L`, `CTRL SHIFT, space`
- Modifier-only combos (e.g., `Control+Super`) → `CTRL, Super_L`
**Bind/Unbind Commands**:
+
- Register: `hyprctl keyword bind "ALT, R, exec, dbus-send --session ..."`
- Unregister: `hyprctl keyword unbind "ALT, R"`
- Bindings are ephemeral (don't survive Hyprland restart) but re-registered on app startup
**Limitations**:
+
- Push-to-talk not supported (Hyprland `bind` fires a single exec, not key-down/key-up)
- Requires `hyprctl` on PATH (ships with Hyprland)
@@ -497,21 +532,25 @@ On Hyprland (wlroots Wayland compositor), Electron's `globalShortcut` API and th
Detects meetings via three independent sources, orchestrated by `MeetingDetectionEngine`:
**Architecture**:
+
- `MeetingDetectionEngine` listens to events from `MeetingProcessDetector` and `AudioActivityDetector`
- `GoogleCalendarManager` provides calendar context (imminent events, active meetings)
- All three sources feed into a unified notification pipeline
**Process Detection** (known meeting apps — Zoom, Teams, Webex, FaceTime):
+
- macOS: `systemPreferences.subscribeWorkspaceNotification` — zero CPU, instant detection
- Windows/Linux: `processListCache` shared polling (30s interval, `ps-list` npm)
**Microphone Detection** (unscheduled/browser meetings like Google Meet):
+
- macOS: `macos-mic-listener` binary — CoreAudio `kAudioDevicePropertyDeviceIsRunningSomewhere` property listeners with hot-plug support
- Windows: `windows-mic-listener.exe` — WASAPI `IAudioSessionManager2` session monitoring, `--exclude-pid` for self-mic exclusion
- Linux: `pactl subscribe` — PulseAudio source-output events
- All platforms: Graceful fallback to polling if native binary/command unavailable
**UX Rules**:
+
- During recording (tap-to-talk or push-to-talk): ALL notifications suppressed
- After recording: 2.5s cooldown before showing queued notifications
- Multiple signals coalesced: process > audio priority, one notification shown
@@ -519,11 +558,13 @@ Detects meetings via three independent sources, orchestrated by `MeetingDetectio
- Active calendar meeting recording: all detections suppressed
**Binary Distribution**:
+
- macOS: Compiled from Swift source via `scripts/build-macos-mic-listener.js` during `compile:native`
- Windows: Prebuilt binary downloaded via `scripts/download-windows-mic-listener.js` during `prebuild:win`
- CI workflow: `.github/workflows/build-windows-mic-listener.yml` auto-builds on push to main
**Calendar Sync Resilience**:
+
- 10s socket timeout on all Google Calendar API requests
- Exponential backoff on consecutive failures: 2min → 4min → 8min → cap 30min
- Reset to normal 2min interval on any successful sync
@@ -533,16 +574,19 @@ Detects meetings via three independent sources, orchestrated by `MeetingDetectio
A dedicated global hotkey that starts a dictation whose transcript is sent straight to the dictation agent as a command — no wake word ("Hey [AgentName]") needed — and that always bypasses the cleanup model. Separate from the chat agent hotkey (`CHAT_AGENT_KEY`), which toggles the agent overlay window.
**Flow**:
+
1. Hotkey pressed → `voiceAgent` slot callback in `main.js` → `windowManager.sendToggleVoiceAgent()` → `toggle-voice-agent` IPC to the main window
2. `useAudioRecording.js` starts a recording with `audioManager.setVoiceAgentRequested(true)` (any other start resets it to `false`)
3. On transcription, `resolveReasoningRoute` consults `resolveDictationRouteKind()` (`src/helpers/dictationRouting.js`): a voice agent recording always takes the agent route; if the dictation agent is disabled or has no model, the raw transcript is returned — it never falls back to cleanup
**Storage & IPC**:
+
- Env var: `VOICE_AGENT_KEY` (persisted via `environment.js`), store key: `voiceAgentKey` (no default — user opt-in)
- IPC handlers: `update-voice-agent-hotkey`, `get-voice-agent-key`
- Hotkey slot: `voiceAgent` (tap-to-toggle; GNOME-native slot via `ToggleVoiceAgent` D-Bus method, KDE via KGlobalAccel, otherwise `globalShortcut`)
**UI**:
+
- Settings → Hotkeys → "Voice Agent Hotkey" (with cross-slot conflict validation)
- Onboarding: optional step right after the dictation hotkey (activation) step
- Requires the dictation agent to be enabled (Settings → AI Models) for the agent route to apply
@@ -560,6 +604,7 @@ All user-facing strings **must** use the i18n system. Never hardcode UI text in
**Supported languages**: en, es, fr, de, pt, it, ru, zh-CN, zh-TW
**How to use**:
+
```tsx
import { useTranslation } from "react-i18next";
@@ -569,6 +614,7 @@ const { t } = useTranslation();
```
**Rules**:
+
1. Every new UI string must have a translation key in `en/translation.json` and all other language files
2. Use `useTranslation()` hook in components and hooks
3. Keep `{{variable}}` interpolation syntax for dynamic values
@@ -659,6 +705,7 @@ const { t } = useTranslation();
### Platform-Specific Notes
**macOS**:
+
- Requires accessibility permissions for clipboard (auto-paste)
- Requires microphone permission (prompted by system)
- Uses AppleScript for reliable pasting
@@ -668,6 +715,7 @@ const { t } = useTranslation();
- System settings accessible via `x-apple.systempreferences:` URL scheme
**Windows**:
+
- No special accessibility permissions needed
- Microphone privacy settings at `ms-settings:privacy-microphone`
- Sound settings at `ms-settings:sound`
@@ -680,6 +728,7 @@ const { t } = useTranslation();
- Falls back to tap mode if unavailable
**Linux**:
+
- Multiple package manager support
- Standard XDG directories
- AppImage for distribution
@@ -696,7 +745,7 @@ const { t } = useTranslation();
- **GNOME Wayland global hotkeys**:
- Uses native GNOME shortcuts via D-Bus and gsettings (no special permissions needed)
- Hotkeys visible in GNOME Settings → Keyboard → Shortcuts → Custom
- - Default hotkey: `Alt+R` (backtick not supported)
+ - Default fallback: `F8` when `Control+Super` cannot be registered
- Push-to-talk unavailable (GNOME shortcuts only fire single toggle event)
- Falls back to X11/globalShortcut if GNOME integration fails
- `dbus-next` npm package used for D-Bus communication
diff --git a/DEBUG.md b/DEBUG.md
index 8c2a284af..9180af3b0 100644
--- a/DEBUG.md
+++ b/DEBUG.md
@@ -5,6 +5,7 @@ Enable verbose logging to diagnose issues like "no audio detected" or transcript
## Enable Debug Logging
### Option 1: Command Line
+
```bash
# macOS
/Applications/OpenWhispr.app/Contents/MacOS/OpenWhispr --log-level=debug
@@ -14,12 +15,15 @@ OpenWhispr.exe --log-level=debug
```
### Option 2: Environment File
+
Add to your `.env` file and restart:
+
```
OPENWHISPR_LOG_LEVEL=debug
```
**Env file locations:**
+
- macOS: `~/Library/Application Support/OpenWhispr/.env`
- Windows: `%APPDATA%\OpenWhispr\.env`
- Linux: `~/.config/OpenWhispr/.env`
@@ -32,41 +36,48 @@ OPENWHISPR_LOG_LEVEL=debug
## What Gets Logged
-| Stage | Details |
-|-------|---------|
-| FFmpeg | Path resolution, permissions, ASAR unpacking |
-| Audio Recording | Permission requests, chunk sizes, audio levels |
-| Audio Processing | File creation, Whisper command, process output |
-| IPC | Messages between renderer and main process |
-| Agent Mode | Streaming responses, conversation management, model selection |
-| Meeting Detection | Process monitoring, audio activity, calendar event matching |
-| Meeting Transcription | WebSocket connection, Realtime API session, audio buffering |
-| Google Calendar | OAuth flow, token refresh, event sync |
-| Media Control | Pause/resume events, player detection (MediaRemote/GSMTC/MPRIS2) |
-| Audio Storage | File retention, cleanup cycles, storage usage |
+| Stage | Details |
+| --------------------- | ---------------------------------------------------------------- |
+| FFmpeg | Path resolution, permissions, ASAR unpacking |
+| Audio Recording | Permission requests, chunk sizes, audio levels |
+| Audio Processing | File creation, Whisper command, process output |
+| IPC | Messages between renderer and main process |
+| Agent Mode | Streaming responses, conversation management, model selection |
+| Meeting Detection | Process monitoring, audio activity, calendar event matching |
+| Meeting Transcription | WebSocket connection, Realtime API session, audio buffering |
+| Google Calendar | OAuth flow, token refresh, event sync |
+| Media Control | Pause/resume events, player detection (MediaRemote/GSMTC/MPRIS2) |
+| Audio Storage | File retention, cleanup cycles, storage usage |
## Common Issues
### "No Audio Detected"
+
Look for:
+
- `maxLevel < 0.01` → Audio too quiet
- `Audio appears to be silent` → Microphone issue
- `FFmpeg not available` → Path resolution failed
### Transcription Fails
+
Look for:
+
- `Whisper stderr:` → whisper.cpp/FFmpeg errors
- `Process closed with code: [non-zero]` → Process failure
- `Failed to parse Whisper output` → Invalid JSON
### Permission Issues
+
Look for:
+
- `Microphone Access Denied`
- `isExecutable: false` → FFmpeg permission issue
## Sharing Logs
When reporting issues:
+
1. Enable debug mode and reproduce the issue
2. Locate the log file
3. Redact any sensitive information
@@ -75,5 +86,6 @@ When reporting issues:
## Disable Debug Mode
Debug mode is off by default. To ensure it's disabled:
+
- Remove `--log-level=debug` from command
- Remove `OPENWHISPR_LOG_LEVEL` from `.env`
diff --git a/LOCAL_WHISPER_SETUP.md b/LOCAL_WHISPER_SETUP.md
index fe59acb0e..d930cbd65 100644
--- a/LOCAL_WHISPER_SETUP.md
+++ b/LOCAL_WHISPER_SETUP.md
@@ -14,13 +14,13 @@ The first transcription will download the model automatically.
## Model Selection
-| Model | Size | Speed | Quality | RAM | Best For |
-|--------|--------|----------|---------|--------|-----------------------|
-| tiny | 75MB | Fastest | Basic | ~1GB | Quick notes |
-| base | 142MB | Fast | Good | ~1GB | **Recommended** |
-| small | 466MB | Medium | Better | ~2GB | Professional use |
-| medium | 1.5GB | Slow | High | ~5GB | High accuracy |
-| large | 3GB | Slowest | Best | ~10GB | Maximum quality |
+| Model | Size | Speed | Quality | RAM | Best For |
+| ------ | ----- | ------- | ------- | ----- | ---------------- |
+| tiny | 75MB | Fastest | Basic | ~1GB | Quick notes |
+| base | 142MB | Fast | Good | ~1GB | **Recommended** |
+| small | 466MB | Medium | Better | ~2GB | Professional use |
+| medium | 1.5GB | Slow | High | ~5GB | High accuracy |
+| large | 3GB | Slowest | Best | ~10GB | Maximum quality |
## How It Works
@@ -52,13 +52,14 @@ npm run download:whisper-cpp:all
## File Locations
-| Data | macOS | Windows | Linux |
-|-------------------|----------------------------------------------|--------------------------------------|---------------------------------|
-| Models | `~/.cache/openwhispr/whisper-models/` | `%USERPROFILE%\.cache\openwhispr\whisper-models\` | `~/.cache/openwhispr/whisper-models/` |
+| Data | macOS | Windows | Linux |
+| ------ | ------------------------------------- | ------------------------------------------------- | ------------------------------------- |
+| Models | `~/.cache/openwhispr/whisper-models/` | `%USERPROFILE%\.cache\openwhispr\whisper-models\` | `~/.cache/openwhispr/whisper-models/` |
## Troubleshooting
### "Not Found" Status
+
1. Click **Recheck Installation** in Control Panel
2. Restart the app
3. If bundled binary fails, install via package manager:
@@ -66,18 +67,20 @@ npm run download:whisper-cpp:all
- Linux: Build from source at https://github.com/ggml-org/whisper.cpp
### Transcription Fails
+
1. Verify microphone permissions
2. Try a smaller model (tiny/base)
3. Check disk space for model downloads
### Slow Performance
+
1. Use smaller models (tiny or base)
2. Close resource-intensive apps
3. Consider using cloud mode for large files
## Privacy Comparison
-| Mode | Audio Leaves Device | Internet Required | Cost |
-|-------|---------------------|-------------------|-----------|
-| Local | No | Only for model download | Free |
-| Cloud | Yes (to OpenAI) | Yes | API usage |
+| Mode | Audio Leaves Device | Internet Required | Cost |
+| ----- | ------------------- | ----------------------- | --------- |
+| Local | No | Only for model download | Free |
+| Cloud | Yes (to OpenAI) | Yes | API usage |
diff --git a/README.md b/README.md
index a685077d5..d4fd8cf5a 100644
--- a/README.md
+++ b/README.md
@@ -31,12 +31,12 @@ OpenWhispr turns your voice into text, notes, and actions from your desktop. Pre
## Download
-| Platform | Download |
-|----------|----------|
-| macOS (Apple Silicon) | [`.dmg`](https://github.com/OpenWhispr/openwhispr/releases/latest) |
-| macOS (Intel) | [`.dmg`](https://github.com/OpenWhispr/openwhispr/releases/latest) |
-| Windows | [`.exe`](https://github.com/OpenWhispr/openwhispr/releases/latest) |
-| Linux | [`.AppImage`](https://github.com/OpenWhispr/openwhispr/releases/latest) / [`.deb`](https://github.com/OpenWhispr/openwhispr/releases/latest) / [`.rpm`](https://github.com/OpenWhispr/openwhispr/releases/latest) |
+| Platform | Download |
+| --------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| macOS (Apple Silicon) | [`.dmg`](https://github.com/OpenWhispr/openwhispr/releases/latest) |
+| macOS (Intel) | [`.dmg`](https://github.com/OpenWhispr/openwhispr/releases/latest) |
+| Windows | [`.exe`](https://github.com/OpenWhispr/openwhispr/releases/latest) |
+| Linux | [`.AppImage`](https://github.com/OpenWhispr/openwhispr/releases/latest) / [`.deb`](https://github.com/OpenWhispr/openwhispr/releases/latest) / [`.rpm`](https://github.com/OpenWhispr/openwhispr/releases/latest) / [`.tar.gz`](https://github.com/OpenWhispr/openwhispr/releases/latest) |
## Features
diff --git a/TROUBLESHOOTING.md b/TROUBLESHOOTING.md
index 3c3072110..60161aadc 100644
--- a/TROUBLESHOOTING.md
+++ b/TROUBLESHOOTING.md
@@ -2,12 +2,12 @@
## Quick Diagnostics
-| Check | Command |
-|-------|---------|
-| Host architecture | `uname -m` |
-| Node architecture | `node -p "process.arch"` |
+| Check | Command |
+| ------------------- | -------------------------------------- |
+| Host architecture | `uname -m` |
+| Node architecture | `node -p "process.arch"` |
| whisper.cpp install | `which whisper` or `which whisper-cpp` |
-| FFmpeg availability | `ffmpeg -version` |
+| FFmpeg availability | `ffmpeg -version` |
## Common Issues
@@ -16,6 +16,7 @@
**Symptoms:** Crashes on launch, "wrong architecture" errors
**Fix:**
+
1. Check if Node is x86_64 on arm64: `node -p "process.arch"` vs `uname -m`
2. Uninstall mismatched Node and reinstall native build
3. Run `rm -rf node_modules package-lock.json && npm ci`
@@ -28,18 +29,21 @@
**Platform-specific fixes:**
**macOS:**
+
1. Open System Settings → Privacy & Security → Microphone
2. Ensure OpenWhispr is listed and enabled
3. If not listed, click "Grant Access" in the app to trigger the permission prompt
4. You can also click "Open Microphone Privacy" button in the app
**Windows:**
+
1. Open Settings → Privacy → Microphone
2. Ensure "Allow apps to access your microphone" is ON
3. Ensure OpenWhispr is listed and enabled
4. You can also click "Open Privacy Settings" button in the app
**Linux:**
+
1. Check your audio settings (e.g., `pavucontrol`)
2. Ensure the correct input device is selected
3. Linux doesn't have app-level microphone permissions like macOS/Windows
@@ -49,12 +53,14 @@
**Symptoms:** History shows "you" or empty entries
**Causes:**
+
- Microphone permission revoked mid-session
- Stale Whisper cache with corrupted clips
- Hotkey triggering without audio input
- Wrong audio input device selected
**Fix:**
+
1. Check microphone permissions (see above)
2. Open sound settings and verify the correct input device is selected
3. Clear caches: `rm -rf ~/.cache/whisper`
@@ -66,15 +72,28 @@
**Symptoms:** "FFmpeg not found" error, transcription fails immediately
**Fix:**
+
1. Reinstall dependencies: `rm -rf node_modules && npm ci`
2. If using packaged app, try reinstalling
3. **Windows:** check that antivirus / Windows Defender hasn't quarantined the bundled FFmpeg binary
+### Electron Failed to Install Correctly
+
+**Symptoms:** Running `npm run dev` fails with "Electron failed to install correctly".
+
+**Fix:**
+
+1. Use Node.js 24: `node -v`
+2. Ensure npm install scripts are enabled: `npm config set ignore-scripts false`
+3. Rebuild Electron's platform binary: `npm rebuild electron`
+4. If `ELECTRON_SKIP_BINARY_DOWNLOAD` is set, unset it and run `npm install` again
+
### whisper.cpp Issues
**Symptoms:** Local transcription fails, "whisper.cpp not found"
**Fix:**
+
1. The whisper.cpp binary is bundled with the app
2. If running from source, download the current-platform binary: `npm run download:whisper-cpp`
3. If bundled binary fails, install via package manager:
@@ -90,6 +109,7 @@
**Cause:** Electron's main-process clipboard API uses X11 selections (via XWayland), which native Wayland apps cannot read.
**Fix:**
+
1. Install `wl-clipboard` for the most reliable Wayland clipboard support:
- Debian/Ubuntu: `sudo apt install wl-clipboard`
- Fedora/RHEL: `sudo dnf install wl-clipboard`
@@ -104,6 +124,7 @@ OpenWhispr tries clipboard methods in order: `wl-copy` (most reliable) → rende
**Symptoms:** Meeting transcription captures the microphone but not other participants, browser audio, or other system audio.
**Fix:**
+
1. Install PipeWire runtime libraries if they are not already present:
- Debian/Ubuntu: `sudo apt install pipewire libpipewire-0.3-0`
- Fedora/RHEL: `sudo dnf install pipewire pipewire-libs`
@@ -118,11 +139,13 @@ OpenWhispr tries clipboard methods in order: `wl-copy` (most reliable) → rende
**Symptoms:** Meeting detection not working, no transcription, audio not captured
**macOS:**
+
1. Grant Screen Recording permission: System Settings → Privacy & Security → Screen Recording → enable OpenWhispr
2. Restart the app after granting permission
3. Ensure Google Calendar is connected in Integrations
**All Platforms:**
+
1. Check that meeting detection is enabled in settings
2. Verify your OpenAI API key is valid (required for Realtime API transcription)
3. Ensure your meeting app (Zoom, Teams, FaceTime) is running — process detection looks for known meeting applications
@@ -133,6 +156,7 @@ OpenWhispr tries clipboard methods in order: `wl-copy` (most reliable) → rende
**Symptoms:** Agent overlay not appearing, no AI responses, streaming errors
**Fix:**
+
1. Ensure Agent Mode is enabled in Settings → Agent Mode
2. Check that you have a valid API key for your selected provider
3. Verify the agent hotkey doesn't conflict with other global shortcuts
@@ -142,6 +166,7 @@ OpenWhispr tries clipboard methods in order: `wl-copy` (most reliable) → rende
### Windows-Specific Issues
**No window appears (process running in Task Manager but invisible):**
+
1. Check the system tray (click the `^` caret) for the OpenWhispr icon
2. Run with debug logging: `OpenWhispr.exe --log-level=debug`
3. Try disabling GPU acceleration: `OpenWhispr.exe --disable-gpu`
diff --git a/agent-skills/openwhispr-api/SKILL.md b/agent-skills/openwhispr-api/SKILL.md
index 9d8de9306..360763716 100644
--- a/agent-skills/openwhispr-api/SKILL.md
+++ b/agent-skills/openwhispr-api/SKILL.md
@@ -21,12 +21,12 @@ Generate keys from the OpenWhispr desktop app under **Settings > API Keys**. Key
Each key has scoped permissions. The API rejects requests missing the required scope with `403 Forbidden`.
-| Scope | Grants |
-|-------|--------|
-| `notes:read` | List, get, and search notes. List folders. |
-| `notes:write` | Create, update, and delete notes. Create folders. |
-| `transcriptions:read` | List and get transcriptions. |
-| `usage:read` | Read usage statistics. |
+| Scope | Grants |
+| --------------------- | ------------------------------------------------- |
+| `notes:read` | List, get, and search notes. List folders. |
+| `notes:write` | Create, update, and delete notes. Create folders. |
+| `transcriptions:read` | List and get transcriptions. |
+| `usage:read` | Read usage statistics. |
## Base URL
@@ -39,11 +39,13 @@ https://api.openwhispr.com/api/v1
Wrap all responses in a consistent envelope.
**Single resource:**
+
```json
{ "data": { "id": "uuid", "title": "My note", ... } }
```
**Paginated list:**
+
```json
{
"data": [{ ... }, { ... }],
@@ -53,41 +55,42 @@ Wrap all responses in a consistent envelope.
```
**Error:**
+
```json
{ "error": { "code": "not_found", "message": "Note not found" } }
```
### Error Codes
-| HTTP Status | Code | Meaning |
-|-------------|------|---------|
-| 400 | `validation_error` | Invalid request body or query params |
-| 401 | `invalid_api_key` | Missing, malformed, expired, or revoked key |
-| 403 | `forbidden` | Key lacks required scope |
-| 404 | `not_found` | Resource does not exist or belongs to another user |
-| 405 | `method_not_allowed` | Wrong HTTP method |
-| 409 | `conflict` | Duplicate resource (e.g. folder name) |
-| 429 | `rate_limited` | Rate limit exceeded — check `Retry-After` header |
-| 500 | `internal_error` | Server error |
+| HTTP Status | Code | Meaning |
+| ----------- | -------------------- | -------------------------------------------------- |
+| 400 | `validation_error` | Invalid request body or query params |
+| 401 | `invalid_api_key` | Missing, malformed, expired, or revoked key |
+| 403 | `forbidden` | Key lacks required scope |
+| 404 | `not_found` | Resource does not exist or belongs to another user |
+| 405 | `method_not_allowed` | Wrong HTTP method |
+| 409 | `conflict` | Duplicate resource (e.g. folder name) |
+| 429 | `rate_limited` | Rate limit exceeded — check `Retry-After` header |
+| 500 | `internal_error` | Server error |
## Rate Limits
Enforced per API key with minute and daily windows. Search requests cost 5x against the rate limit.
-| Plan | Per Minute | Per Day |
-|------|-----------|---------|
-| Free | 30 | 1,000 |
-| Pro | 120 | 10,000 |
-| Business | 300 | 50,000 |
+| Plan | Per Minute | Per Day |
+| -------- | ---------- | ------- |
+| Free | 30 | 1,000 |
+| Pro | 120 | 10,000 |
+| Business | 300 | 50,000 |
Response headers on every request:
-| Header | Description |
-|--------|-------------|
-| `X-RateLimit-Limit` | Max requests per minute |
-| `X-RateLimit-Remaining` | Remaining in current window |
-| `X-RateLimit-Reset` | Unix timestamp when window resets |
-| `Retry-After` | Seconds to wait (only on 429) |
+| Header | Description |
+| ----------------------- | --------------------------------- |
+| `X-RateLimit-Limit` | Max requests per minute |
+| `X-RateLimit-Remaining` | Remaining in current window |
+| `X-RateLimit-Reset` | Unix timestamp when window resets |
+| `Retry-After` | Seconds to wait (only on 429) |
## Pagination
@@ -169,6 +172,7 @@ Scope: `transcriptions:read`.
**Get Usage** — `GET /usage`
Scope: `usage:read`. Returns:
+
- `words_used` — Words consumed this period
- `words_remaining` — Words left in quota
- `limit` — Total word quota
@@ -188,12 +192,14 @@ https://mcp.openwhispr.com/mcp
Pass the API key via `Authorization: Bearer` header. All V1 endpoints are available as MCP tools. The server uses Streamable HTTP transport (stateless, no sessions).
### Claude Code
+
```bash
claude mcp add openwhispr --transport http https://mcp.openwhispr.com/mcp \
--header "Authorization: Bearer owk_live_YOUR_KEY"
```
### Cursor / VS Code
+
```json
{
"mcpServers": {
@@ -208,12 +214,14 @@ claude mcp add openwhispr --transport http https://mcp.openwhispr.com/mcp \
## Examples
### List recent notes
+
```bash
curl -H "Authorization: Bearer owk_live_YOUR_KEY" \
"https://api.openwhispr.com/api/v1/notes/list?limit=10"
```
### Create a note in a folder
+
```bash
curl -X POST \
-H "Authorization: Bearer owk_live_YOUR_KEY" \
@@ -223,6 +231,7 @@ curl -X POST \
```
### Search notes
+
```bash
curl -X POST \
-H "Authorization: Bearer owk_live_YOUR_KEY" \
@@ -232,6 +241,7 @@ curl -X POST \
```
### Paginate through all notes
+
```bash
cursor=""
while true; do
@@ -245,6 +255,7 @@ done
```
### Check usage
+
```bash
curl -H "Authorization: Bearer owk_live_YOUR_KEY" \
https://api.openwhispr.com/api/v1/usage
diff --git a/agent-skills/openwhispr-cli/SKILL.md b/agent-skills/openwhispr-cli/SKILL.md
index 099e64893..195dff897 100644
--- a/agent-skills/openwhispr-cli/SKILL.md
+++ b/agent-skills/openwhispr-cli/SKILL.md
@@ -19,10 +19,10 @@ Requires Node.js 20 or later. Verify with `openwhispr --version`. If the user re
Every command runs against one of two backends. The behavior is identical from the user's perspective — only the data source differs.
-| Backend | What it talks to | Use when |
-|---------|------------------|----------|
-| **local** | Desktop app's loopback HTTP bridge on `127.0.0.1` | The desktop app is running. Authoritative during/right after a recording. |
-| **remote** | `https://api.openwhispr.com/api/v1` | Desktop is closed, or running on a different machine, or the user wants cloud-side semantics. |
+| Backend | What it talks to | Use when |
+| ---------- | ------------------------------------------------- | --------------------------------------------------------------------------------------------- |
+| **local** | Desktop app's loopback HTTP bridge on `127.0.0.1` | The desktop app is running. Authoritative during/right after a recording. |
+| **remote** | `https://api.openwhispr.com/api/v1` | Desktop is closed, or running on a different machine, or the user wants cloud-side semantics. |
### How the CLI picks a backend
@@ -49,13 +49,13 @@ openwhispr auth logout # clear it
API keys are scoped server-side. Match scopes to the commands the user needs to run:
-| Scope | Commands |
-|-------|----------|
-| `notes:read` | `notes list/get/search`, `folders list` |
-| `notes:write` | `notes create/update/delete`, `folders create` |
-| `transcriptions:read` | `transcriptions list/get` |
-| `transcriptions:delete` | `transcriptions delete` |
-| `usage:read` | (used internally by `doctor` and the remote backend's reachability ping) |
+| Scope | Commands |
+| ----------------------- | ------------------------------------------------------------------------ |
+| `notes:read` | `notes list/get/search`, `folders list` |
+| `notes:write` | `notes create/update/delete`, `folders create` |
+| `transcriptions:read` | `transcriptions list/get` |
+| `transcriptions:delete` | `transcriptions delete` |
+| `usage:read` | (used internally by `doctor` and the remote backend's reachability ping) |
Scopes are enforced server-side; the CLI does not validate them locally. If a scope is missing, the API returns a 401/403 and the CLI exits with code 3.
@@ -80,13 +80,13 @@ Always pass `--format json` when parsing CLI output programmatically.
Honor these exit codes when scripting or recovering from errors:
-| Code | Meaning | Recovery |
-|------|---------|----------|
-| 0 | Success | Continue |
-| 1 | User error (bad args, missing required flag) | Fix the command and rerun |
-| 2 | Backend unreachable | Start the desktop app, or run `auth login` for cloud, or try `--remote`/`--local` explicitly |
-| 3 | Auth failure (missing/invalid key, insufficient scope) | Do not retry — surface to the user |
-| 4 | Not found (no such note/transcription/folder) | Check the ID and rerun |
+| Code | Meaning | Recovery |
+| ---- | ------------------------------------------------------ | -------------------------------------------------------------------------------------------- |
+| 0 | Success | Continue |
+| 1 | User error (bad args, missing required flag) | Fix the command and rerun |
+| 2 | Backend unreachable | Start the desktop app, or run `auth login` for cloud, or try `--remote`/`--local` explicitly |
+| 3 | Auth failure (missing/invalid key, insufficient scope) | Do not retry — surface to the user |
+| 4 | Not found (no such note/transcription/folder) | Check the ID and rerun |
## Commands
@@ -191,21 +191,21 @@ Use the IDs returned to read related notes with `notes get` before composing the
The CLI reads/writes these files. Both should always be `0600`.
-| File | Written by | Contains |
-|------|-----------|----------|
-| `~/.openwhispr/cli-bridge.json` | The desktop app at startup | `{version, port, token}` for the loopback bridge |
-| `~/.openwhispr/cli-config.json` | The CLI's `auth login` and `config set` | `{backend, apiBase, apiKey}` |
+| File | Written by | Contains |
+| ------------------------------- | --------------------------------------- | ------------------------------------------------ |
+| `~/.openwhispr/cli-bridge.json` | The desktop app at startup | `{version, port, token}` for the loopback bridge |
+| `~/.openwhispr/cli-config.json` | The CLI's `auth login` and `config set` | `{backend, apiBase, apiKey}` |
The CLI writes both files with `0600`. If you see them with looser permissions (e.g., after manual editing), tighten with `chmod 0600 <file>`.
## Troubleshooting
-| Symptom | Likely cause | Fix |
-|---------|--------------|-----|
-| `Backend unreachable` (exit 2) on every command | Desktop closed and no API key | Start desktop, or `openwhispr auth login` |
-| `Auth failed` (exit 3) on remote commands only | API key revoked, expired, or missing scope | Regenerate key with the right scopes |
-| `Not found` (exit 4) on a known-existing note | Wrong backend — the note is on the other side, not yet synced | Try the opposite backend (`--local` or `--remote`) |
-| Config file readable by other users | File created or edited outside the CLI | `chmod 0600 ~/.openwhispr/cli-config.json` |
+| Symptom | Likely cause | Fix |
+| ----------------------------------------------- | ------------------------------------------------------------- | -------------------------------------------------- |
+| `Backend unreachable` (exit 2) on every command | Desktop closed and no API key | Start desktop, or `openwhispr auth login` |
+| `Auth failed` (exit 3) on remote commands only | API key revoked, expired, or missing scope | Regenerate key with the right scopes |
+| `Not found` (exit 4) on a known-existing note | Wrong backend — the note is on the other side, not yet synced | Try the opposite backend (`--local` or `--remote`) |
+| Config file readable by other users | File created or edited outside the CLI | `chmod 0600 ~/.openwhispr/cli-config.json` |
## Programmatic invocation
diff --git a/cleanup.js b/cleanup.js
index 24d8c4c41..0398847cc 100644
--- a/cleanup.js
+++ b/cleanup.js
@@ -23,8 +23,8 @@ try {
process.platform === "darwin"
? path.join(os.homedir(), "Library", "Application Support", "open-whispr")
: process.platform === "win32"
- ? path.join(process.env.APPDATA || os.homedir(), "open-whispr")
- : path.join(os.homedir(), ".config", "open-whispr");
+ ? path.join(process.env.APPDATA || os.homedir(), "open-whispr")
+ : path.join(os.homedir(), ".config", "open-whispr");
const devDbPath = path.join(userDataPath, "transcriptions-dev.db");
diff --git a/docs/network-allowlist.md b/docs/network-allowlist.md
index 3f75b2a39..5395cd745 100644
--- a/docs/network-allowlist.md
+++ b/docs/network-allowlist.md
@@ -10,57 +10,57 @@ All connections are client-initiated over TLS. No inbound ports.
Contacted by every install using OpenWhispr Cloud (the default after
onboarding).
-| Host | Protocol | Port | Purpose |
-| --- | --- | --- | --- |
-| `api.openwhispr.com` | HTTPS | 443 | Cloud API: transcription, sync, agent reasoning, settings, usage. |
-| `auth.openwhispr.com` | HTTPS | 443 | Account sign-in and session refresh (Better Auth). |
-| `github.com`, `objects.githubusercontent.com` | HTTPS | 443 | Application auto-update (release artifacts via electron-updater, GitHub provider). |
+| Host | Protocol | Port | Purpose |
+| --------------------------------------------- | -------- | ---- | ---------------------------------------------------------------------------------- |
+| `api.openwhispr.com` | HTTPS | 443 | Cloud API: transcription, sync, agent reasoning, settings, usage. |
+| `auth.openwhispr.com` | HTTPS | 443 | Account sign-in and session refresh (Better Auth). |
+| `github.com`, `objects.githubusercontent.com` | HTTPS | 443 | Application auto-update (release artifacts via electron-updater, GitHub provider). |
## Required for streaming transcription
OpenWhispr Cloud routes streaming sessions through one of three providers.
Allowlist all three unless a specific provider is pinned in configuration.
-| Host | Protocol | Port | Purpose |
-| --- | --- | --- | --- |
-| `api.deepgram.com` | WSS | 443 | Deepgram streaming transcription. |
-| `api.openai.com` | WSS, HTTPS | 443 | OpenAI Realtime streaming transcription. |
-| `streaming.assemblyai.com` | WSS, HTTPS | 443 | AssemblyAI streaming transcription. Token endpoint is HTTPS; live session is WSS. |
+| Host | Protocol | Port | Purpose |
+| -------------------------- | ---------- | ---- | --------------------------------------------------------------------------------- |
+| `api.deepgram.com` | WSS | 443 | Deepgram streaming transcription. |
+| `api.openai.com` | WSS, HTTPS | 443 | OpenAI Realtime streaming transcription. |
+| `streaming.assemblyai.com` | WSS, HTTPS | 443 | AssemblyAI streaming transcription. Token endpoint is HTTPS; live session is WSS. |
## Required for local model downloads
Contacted only when a user opts into a local model (Whisper, Parakeet, or a
local GGUF reasoning model). Not required for cloud-only installs.
-| Host | Protocol | Port | Purpose |
-| --- | --- | --- | --- |
-| `huggingface.co` | HTTPS | 443 | Whisper GGML, Parakeet, GGUF, and embedding model downloads. |
-| `cdn-lfs.huggingface.co`, `cdn-lfs-us-1.huggingface.co` | HTTPS | 443 | HuggingFace large-file CDN (LFS-backed model files). |
-| `github.com`, `objects.githubusercontent.com` | HTTPS | 443 | sherpa-onnx, llama.cpp, whisper.cpp, and Qdrant binaries (GitHub releases). |
+| Host | Protocol | Port | Purpose |
+| ------------------------------------------------------- | -------- | ---- | --------------------------------------------------------------------------- |
+| `huggingface.co` | HTTPS | 443 | Whisper GGML, Parakeet, GGUF, and embedding model downloads. |
+| `cdn-lfs.huggingface.co`, `cdn-lfs-us-1.huggingface.co` | HTTPS | 443 | HuggingFace large-file CDN (LFS-backed model files). |
+| `github.com`, `objects.githubusercontent.com` | HTTPS | 443 | sherpa-onnx, llama.cpp, whisper.cpp, and Qdrant binaries (GitHub releases). |
## Required for Google Calendar (optional feature)
Contacted only if the user connects Google Calendar in settings.
-| Host | Protocol | Port | Purpose |
-| --- | --- | --- | --- |
-| `accounts.google.com` | HTTPS | 443 | OAuth authorization. |
-| `oauth2.googleapis.com` | HTTPS | 443 | OAuth token exchange and revoke. |
-| `www.googleapis.com` | HTTPS | 443 | Calendar event and calendar list reads. |
-| `openwhispr.com` | HTTPS | 443 | OAuth desktop callback redirect (`/auth/desktop-callback`). |
+| Host | Protocol | Port | Purpose |
+| ----------------------- | -------- | ---- | ----------------------------------------------------------- |
+| `accounts.google.com` | HTTPS | 443 | OAuth authorization. |
+| `oauth2.googleapis.com` | HTTPS | 443 | OAuth token exchange and revoke. |
+| `www.googleapis.com` | HTTPS | 443 | Calendar event and calendar list reads. |
+| `openwhispr.com` | HTTPS | 443 | OAuth desktop callback redirect (`/auth/desktop-callback`). |
## BYOK provider hosts (only if configured)
Required only when a user configures their own API key for the corresponding
provider. Skip any provider not in use.
-| Host | Protocol | Port | Used when |
-| --- | --- | --- | --- |
-| `api.openai.com` | HTTPS | 443 | OpenAI API key configured (transcription or reasoning). |
-| `api.anthropic.com` | HTTPS | 443 | Anthropic API key configured. |
-| `generativelanguage.googleapis.com` | HTTPS | 443 | Gemini API key configured. |
-| `api.groq.com` | HTTPS | 443 | Groq API key configured. |
-| `api.mistral.ai` | HTTPS | 443 | Mistral API key configured. |
+| Host | Protocol | Port | Used when |
+| ----------------------------------- | -------- | ---- | ------------------------------------------------------- |
+| `api.openai.com` | HTTPS | 443 | OpenAI API key configured (transcription or reasoning). |
+| `api.anthropic.com` | HTTPS | 443 | Anthropic API key configured. |
+| `generativelanguage.googleapis.com` | HTTPS | 443 | Gemini API key configured. |
+| `api.groq.com` | HTTPS | 443 | Groq API key configured. |
+| `api.mistral.ai` | HTTPS | 443 | Mistral API key configured. |
## Notes
diff --git a/package-lock.json b/package-lock.json
index 3dbabb238..bb87d4e27 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "open-whispr",
- "version": "1.7.2",
+ "version": "1.7.3",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "open-whispr",
- "version": "1.7.2",
+ "version": "1.7.3",
"hasInstallScript": true,
"license": "MIT",
"dependencies": {
diff --git a/package.json b/package.json
index 725cc950c..dc6a56e5f 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "open-whispr",
- "version": "1.7.2",
+ "version": "1.7.3",
"description": "A desktop dictation application using whisper.cpp for speech-to-text transcription",
"main": "main.js",
"private": true,
diff --git a/preload.js b/preload.js
index e75e14ad0..41f9aad4d 100644
--- a/preload.js
+++ b/preload.js
@@ -286,7 +286,6 @@ contextBridge.exposeInMainWorld("electronAPI", {
snapToMeetingMode: () => ipcRenderer.invoke("snap-to-meeting-mode"),
restoreFromMeetingMode: () => ipcRenderer.invoke("restore-from-meeting-mode"),
getPlatform: () => process.platform,
- appQuit: () => ipcRenderer.invoke("app-quit"),
// Cleanup function
cleanupApp: () => ipcRenderer.invoke("cleanup-app"),
diff --git a/scripts/build-meeting-aec-helper.js b/scripts/build-meeting-aec-helper.js
index a22b96d2f..6aefc53a3 100644
--- a/scripts/build-meeting-aec-helper.js
+++ b/scripts/build-meeting-aec-helper.js
@@ -151,22 +151,20 @@ function buildDirect(manifest) {
path.join(sourceDir, "aec_processor.cc"),
path.join(sourceDir, "null_aec_dump_factory.cc"),
];
- log(`Compiling ${manifest.cSources.length + manifest.cxxSources.length + localSources.length} sources`);
+ log(
+ `Compiling ${manifest.cSources.length + manifest.cxxSources.length + localSources.length} sources`
+ );
for (const source of [...manifest.cSources, ...manifest.cxxSources, ...localSources]) {
const outputObject = path.join(objectDir, getSourceObjectName(source));
const compiler = source.endsWith(".c") ? toolchain.cc : toolchain.cxx;
const languageArgs = source.endsWith(".c") ? ["-std=c11"] : ["-std=c++20"];
const perSourceArgs = avx2Set.has(source) ? manifest.avx2CompileOptions : [];
- const result = run(compiler, [
- ...languageArgs,
- ...commonArgs,
- ...perSourceArgs,
- "-c",
- source,
- "-o",
- outputObject,
- ], { logCommand: false });
+ const result = run(
+ compiler,
+ [...languageArgs, ...commonArgs, ...perSourceArgs, "-c", source, "-o", outputObject],
+ { logCommand: false }
+ );
if (result.status !== 0) {
return false;
diff --git a/scripts/download-meeting-aec-helper.js b/scripts/download-meeting-aec-helper.js
index 5cad1dd16..2fb9aaab8 100644
--- a/scripts/download-meeting-aec-helper.js
+++ b/scripts/download-meeting-aec-helper.js
@@ -32,8 +32,7 @@ const TARGETS = [
const binaryName = ({ platform, arch }) =>
`meeting-aec-helper-${platform}-${arch}${platform === "win32" ? ".exe" : ""}`;
-const archiveName = ({ platform, arch, ext }) =>
- `meeting-aec-helper-${platform}-${arch}.${ext}`;
+const archiveName = ({ platform, arch, ext }) => `meeting-aec-helper-${platform}-${arch}.${ext}`;
async function downloadTarget(target, release, force) {
const binary = binaryName(target);
@@ -53,7 +52,10 @@ async function downloadTarget(target, release, force) {
fs.mkdirSync(BIN_DIR, { recursive: true });
const archivePath = path.join(BIN_DIR, archive);
- const extractDir = path.join(BIN_DIR, `temp-meeting-aec-helper-${target.platform}-${target.arch}`);
+ const extractDir = path.join(
+ BIN_DIR,
+ `temp-meeting-aec-helper-${target.platform}-${target.arch}`
+ );
try {
console.log(` Downloading ${archive}...`);
diff --git a/scripts/download-windows-mic-listener.js b/scripts/download-windows-mic-listener.js
index 7ef874bf0..c0289158c 100644
--- a/scripts/download-windows-mic-listener.js
+++ b/scripts/download-windows-mic-listener.js
@@ -57,9 +57,7 @@ async function main() {
if (!release) {
console.error("[windows-mic-listener] Could not find a release matching prefix:", TAG_PREFIX);
- console.log(
- "[windows-mic-listener] Mic detection will use fallback mode (polling)"
- );
+ console.log("[windows-mic-listener] Mic detection will use fallback mode (polling)");
return;
}
@@ -121,9 +119,7 @@ async function main() {
}
// Don't fail the build — mic detection can fall back to polling
- console.log(
- "[windows-mic-listener] Mic detection will use fallback mode (polling)"
- );
+ console.log("[windows-mic-listener] Mic detection will use fallback mode (polling)");
console.log(
"[windows-mic-listener] To compile locally, install Visual Studio Build Tools or MinGW-w64"
);
diff --git a/scripts/lib/meeting-aec-build.js b/scripts/lib/meeting-aec-build.js
index 7ce2094db..a56e7faec 100644
--- a/scripts/lib/meeting-aec-build.js
+++ b/scripts/lib/meeting-aec-build.js
@@ -89,12 +89,7 @@ function moveChildrenUp(dirPath) {
fs.rmSync(nestedDir, { recursive: true, force: true });
}
-async function ensureSourceTree({
- url,
- archiveName,
- outputDir,
- flattenSingleRoot = false,
-}) {
+async function ensureSourceTree({ url, archiveName, outputDir, flattenSingleRoot = false }) {
if (fs.existsSync(outputDir) && listEntries(outputDir).length > 0) {
return outputDir;
}
diff --git a/scripts/meeting-diarization-eval.js b/scripts/meeting-diarization-eval.js
index 016d83659..87520f43e 100644
--- a/scripts/meeting-diarization-eval.js
+++ b/scripts/meeting-diarization-eval.js
@@ -229,7 +229,9 @@ function main() {
if (args.list || !args.actual) {
if (!args.json) {
- console.log(`Loaded ${fixtures.length} diarization fixture${fixtures.length === 1 ? "" : "s"}:\n`);
+ console.log(
+ `Loaded ${fixtures.length} diarization fixture${fixtures.length === 1 ? "" : "s"}:\n`
+ );
for (const fixture of fixtures) {
const inputSummary = summarizeSegments(fixture.input);
const expectedSummary = summarizeSegments(fixture.expected);
@@ -282,7 +284,9 @@ function main() {
} else {
for (const result of results) {
const status = result.pass ? "PASS" : "FAIL";
- console.log(`${status} ${result.name} (${result.actualCount}/${result.expectedCount} segments)`);
+ console.log(
+ `${status} ${result.name} (${result.actualCount}/${result.expectedCount} segments)`
+ );
if (!result.pass) {
for (const mismatch of result.mismatches.slice(0, 8)) {
diff --git a/scripts/run-electron.js b/scripts/run-electron.js
index 68ec180cd..b5209aa5f 100644
--- a/scripts/run-electron.js
+++ b/scripts/run-electron.js
@@ -11,12 +11,38 @@ const path = require("path");
// Remove ELECTRON_RUN_AS_NODE from environment
delete process.env.ELECTRON_RUN_AS_NODE;
-// Get the electron path
-const electronPath = require("electron");
-
// Get the app directory (parent of scripts directory)
const appDir = path.resolve(__dirname, "..");
+function resolveElectronPath() {
+ try {
+ return require("electron");
+ } catch (err) {
+ console.error(
+ "[run-electron] Electron is installed as an npm package, but its platform binary is missing."
+ );
+ console.error(
+ "[run-electron] This usually means npm lifecycle scripts were skipped or the Electron download failed."
+ );
+ if (process.env.ELECTRON_SKIP_BINARY_DOWNLOAD) {
+ console.error(
+ "[run-electron] ELECTRON_SKIP_BINARY_DOWNLOAD is set; unset it before reinstalling Electron."
+ );
+ }
+ console.error(
+ "[run-electron] Try: npm config set ignore-scripts false && npm rebuild electron"
+ );
+ console.error(
+ "[run-electron] If that still fails, remove node_modules and run npm install again."
+ );
+ console.error(err && err.stack ? err.stack : err);
+ process.exit(1);
+ }
+}
+
+// Get the electron path
+const electronPath = resolveElectronPath();
+
// Pass through any command line arguments
const args = process.argv.slice(2);
diff --git a/src/AppRouter.jsx b/src/AppRouter.jsx
index 4089c84f8..4939ad224 100644
--- a/src/AppRouter.jsx
+++ b/src/AppRouter.jsx
@@ -39,6 +39,7 @@ function MainApp() {
const [showOnboarding, setShowOnboarding] = useState(false);
const [needsReauth, setNeedsReauth] = useState(false);
const [isLoading, setIsLoading] = useState(true);
+ const [postOnboardingSettingsSection, setPostOnboardingSettingsSection] = useState(undefined);
const isAgentPanel = window.location.search.includes("agent=true");
const isControlPanel =
@@ -84,17 +85,18 @@ function MainApp() {
}
if (isDictationPanel && !resolved) {
- const rawStep = parseInt(localStorage.getItem("onboardingCurrentStep") || "0");
- const currentStep = Math.max(0, Math.min(rawStep, 5));
- if (currentStep < 4) {
- window.electronAPI?.hideWindow?.();
- }
+ // Keep the dictation overlay hidden during onboarding — OnboardingFlow
+ // shows it explicitly when the user reaches the activation step.
+ window.electronAPI?.hideWindow?.();
}
setIsLoading(false);
}, [authLoaded, isControlPanel, isDictationPanel, isGracePeriodOnly, isSignedIn]);
- const handleOnboardingComplete = () => {
+ const handleOnboardingComplete = (options) => {
+ if (options?.openSettings) {
+ setPostOnboardingSettingsSection("transcription");
+ }
setShowOnboarding(false);
localStorage.setItem("onboardingCompleted", "true");
};
@@ -158,7 +160,7 @@ function MainApp() {
return isControlPanel ? (
<Suspense fallback={<LoadingFallback />}>
- <ControlPanel />
+ <ControlPanel initialSettingsSection={postOnboardingSettingsSection} />
</Suspense>
) : (
<App />
diff --git a/src/assets/icons/providers/corti.svg b/src/assets/icons/providers/corti.svg
new file mode 100644
index 000000000..4525b2f87
--- /dev/null
+++ b/src/assets/icons/providers/corti.svg
@@ -0,0 +1 @@
+<svg fill="currentColor" height="1em" width="1em" viewBox="0 0 603 600" xmlns="http://www.w3.org/2000/svg"><title>Corti</title><path d="M301.476 48.0009C162.593 48.3453 50.1137 161.037 50.1137 300C50.1137 438.831 162.379 551.439 301.08 551.997C301.728 567.993 303.063 583.989 305.076 599.985C304.089 599.994 303.102 600 302.112 600C136.428 600 2.11377 465.684 2.11377 300C2.11377 134.314 136.428 0 302.112 0C303.468 0 304.824 0.00899721 306.174 0.0269344C303.927 16.0182 302.361 32.0094 301.476 48.0009ZM542.841 479.055C544.695 458.244 547.701 437.436 551.862 416.625C566.862 341.625 566.862 266.625 551.862 191.625C547.086 167.732 543.828 143.839 542.094 119.946C579.78 170.095 602.112 232.439 602.112 300C602.112 367.113 580.077 429.078 542.841 479.055ZM445.662 563.49C442.671 514.536 446.073 465.579 455.862 416.625C470.862 341.625 470.862 266.625 455.862 191.625C445.542 140.018 442.323 88.4121 446.205 36.8058C462.717 45.864 478.281 56.4309 492.717 68.3205C491.928 109.422 495.642 150.524 503.862 191.625C518.862 266.625 518.862 341.625 503.862 416.625C496.188 455.004 492.441 493.38 492.621 531.759C478.053 543.747 462.339 554.388 445.662 563.49ZM352.563 595.776C345.486 536.058 347.919 476.343 359.862 416.625C374.862 341.625 374.862 266.625 359.862 191.625C347.382 129.216 345.285 66.8067 353.577 4.39746C369.558 7.16019 385.107 11.1873 400.113 16.372C393.597 74.7897 396.18 133.207 407.862 191.625C422.862 266.625 422.862 341.625 407.862 416.625C396.711 472.389 393.849 528.15 399.282 583.914C384.213 589.071 368.604 593.061 352.563 595.776Z"/></svg>
diff --git a/src/components/AcceptInvitationModal.tsx b/src/components/AcceptInvitationModal.tsx
index 16f7fadc0..ec0ae5aa6 100644
--- a/src/components/AcceptInvitationModal.tsx
+++ b/src/components/AcceptInvitationModal.tsx
@@ -10,6 +10,10 @@ import {
} from "./ui/dialog";
import { Button } from "./ui/button";
import { InvitationsService } from "../services/InvitationsService";
+import {
+ storePendingInvitationToken,
+ clearPendingInvitationToken,
+} from "../utils/pendingInvitationToken";
import { useWorkspaceStore } from "../stores/workspaceStore";
import { useToast } from "./ui/useToast";
import type { InvitationPreview } from "../types/electron";
@@ -21,8 +25,6 @@ interface Props {
onSignIn: () => void;
}
-const STORAGE_KEY = "pendingInvitationToken";
-
export default function AcceptInvitationModal({ token, onClose, isSignedIn, onSignIn }: Props) {
const { t } = useTranslation();
const { toast } = useToast();
@@ -49,14 +51,14 @@ export default function AcceptInvitationModal({ token, onClose, isSignedIn, onSi
async function handleAccept() {
if (!token) return;
if (!isSignedIn) {
- localStorage.setItem(STORAGE_KEY, token);
+ storePendingInvitationToken(token);
onSignIn();
return;
}
setAccepting(true);
try {
const result = await InvitationsService.accept(token);
- localStorage.removeItem(STORAGE_KEY);
+ clearPendingInvitationToken();
await refresh();
setActive(result.workspace_id);
toast({
@@ -78,7 +80,7 @@ export default function AcceptInvitationModal({ token, onClose, isSignedIn, onSi
}
function handleDecline() {
- if (token) localStorage.removeItem(STORAGE_KEY);
+ if (token) clearPendingInvitationToken();
onClose();
}
@@ -115,14 +117,3 @@ export default function AcceptInvitationModal({ token, onClose, isSignedIn, onSi
</Dialog>
);
}
-
-export function consumePendingInvitationToken(): string | null {
- if (typeof window === "undefined") return null;
- const token = localStorage.getItem(STORAGE_KEY);
- return token;
-}
-
-export function clearPendingInvitationToken(): void {
- if (typeof window === "undefined") return;
- localStorage.removeItem(STORAGE_KEY);
-}
diff --git a/src/components/AuthenticationStep.tsx b/src/components/AuthenticationStep.tsx
index a5517467e..079ed7de1 100644
--- a/src/components/AuthenticationStep.tsx
+++ b/src/components/AuthenticationStep.tsx
@@ -604,14 +604,16 @@ export default function AuthenticationStep({
)}
<div className="pt-1">
- <button
+ <Button
type="button"
+ variant="ghost"
+ size="sm"
onClick={onContinueWithoutAccount}
- className="w-full text-center text-xs text-muted-foreground/85 hover:text-foreground transition-colors py-1.5 rounded hover:bg-muted/30"
+ className="w-full font-normal text-muted-foreground/85 hover:text-foreground hover:bg-muted/30"
disabled={isSocialLoading !== null || isCheckingEmail}
>
{t("auth.emailStep.continueWithoutAccount")}
- </button>
+ </Button>
</div>
<p className="text-xs text-muted-foreground/80 leading-tight text-center">
diff --git a/src/components/ControlPanel.tsx b/src/components/ControlPanel.tsx
index cd81bff88..a4f606281 100644
--- a/src/components/ControlPanel.tsx
+++ b/src/components/ControlPanel.tsx
@@ -43,10 +43,11 @@ import { fetchProviders as fetchStreamingProviders } from "../stores/streamingPr
import HistoryView from "./HistoryView";
import BackgroundActionToastListener from "./notes/BackgroundActionToastListener";
import { syncService } from "../services/SyncService.js";
-import AcceptInvitationModal, {
+import AcceptInvitationModal from "./AcceptInvitationModal";
+import {
consumePendingInvitationToken,
clearPendingInvitationToken,
-} from "./AcceptInvitationModal";
+} from "../utils/pendingInvitationToken";
import { WORKSPACES_ENABLED } from "../lib/features";
const platform = getCachedPlatform();
@@ -60,16 +61,23 @@ const IntegrationsView = React.lazy(() => import("./IntegrationsView"));
const ChatView = React.lazy(() => import("./chat/ChatView"));
const CommandSearch = React.lazy(() => import("./CommandSearch"));
-export default function ControlPanel() {
+interface ControlPanelProps {
+ /** Open the settings modal at this section on mount (e.g. after onboarding). */
+ initialSettingsSection?: string;
+}
+
+export default function ControlPanel({ initialSettingsSection }: ControlPanelProps = {}) {
const { t } = useTranslation();
const history = useTranscriptions();
const [isLoading, setIsLoading] = useState(true);
- const [showSettings, setShowSettings] = useState(false);
+ const [showSettings, setShowSettings] = useState(!!initialSettingsSection);
const [showUpgradePrompt, setShowUpgradePrompt] = useState(false);
const [showPostMigration, setShowPostMigration] = useState(false);
const [limitData, setLimitData] = useState<{ wordsUsed: number; limit: number } | null>(null);
const hasShownUpgradePrompt = useRef(false);
- const [settingsSection, setSettingsSection] = useState<string | undefined>();
+ const [settingsSection, setSettingsSection] = useState<string | undefined>(
+ initialSettingsSection
+ );
const [aiCTADismissed, setAiCTADismissed] = useState(
() => localStorage.getItem("aiCTADismissed") === "true"
);
diff --git a/src/components/EmailVerificationStep.tsx b/src/components/EmailVerificationStep.tsx
index e69b8bfdd..998cb0b6e 100644
--- a/src/components/EmailVerificationStep.tsx
+++ b/src/components/EmailVerificationStep.tsx
@@ -9,9 +9,14 @@ import logoIcon from "../assets/icon.png";
interface EmailVerificationStepProps {
email: string;
onVerified: () => void;
+ onBack: () => void;
}
-export default function EmailVerificationStep({ email, onVerified }: EmailVerificationStepProps) {
+export default function EmailVerificationStep({
+ email,
+ onVerified,
+ onBack,
+}: EmailVerificationStepProps) {
const { t } = useTranslation();
const [resendCooldown, setResendCooldown] = useState(60);
const [isResending, setIsResending] = useState(false);
@@ -146,6 +151,16 @@ export default function EmailVerificationStep({ email, onVerified }: EmailVerifi
</>
)}
</Button>
+
+ <Button
+ type="button"
+ variant="ghost"
+ size="sm"
+ onClick={onBack}
+ className="w-full font-normal text-muted-foreground/85 hover:text-foreground hover:bg-muted/30"
+ >
+ {t("emailVerification.backToSignIn")}
+ </Button>
</div>
);
}
diff --git a/src/components/HistoryView.tsx b/src/components/HistoryView.tsx
index d44d4591d..72efff565 100644
--- a/src/components/HistoryView.tsx
+++ b/src/components/HistoryView.tsx
@@ -72,22 +72,24 @@ export default function HistoryView({
return groups;
}, [history, t]);
+ const discardedToggle = (
+ <button
+ onClick={onToggleDiscarded}
+ className="flex items-center gap-1 px-1.5 py-0.5 rounded text-[11px] text-muted-foreground/60 hover:!text-foreground hover:!bg-black/5 dark:hover:!bg-white/5 active:scale-[0.98] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring/30 transition-all duration-200"
+ >
+ <Archive size={11} />
+ <span>
+ {showDiscarded
+ ? t("controlPanel.history.discarded.hide")
+ : t("controlPanel.history.discarded.show")}
+ </span>
+ </button>
+ );
+
return (
<div className="px-4 pt-4 pb-6">
<div className={cn("mx-auto", isConnected ? "max-w-5xl" : "max-w-3xl")}>
- <div className="mb-2 flex justify-end">
- <button
- onClick={onToggleDiscarded}
- className="flex items-center gap-1.5 text-[11px] font-medium text-muted-foreground hover:text-foreground transition-colors"
- >
- <Archive size={12} />
- <span>
- {showDiscarded
- ? t("controlPanel.history.discarded.hide")
- : t("controlPanel.history.discarded.show")}
- </span>
- </button>
- </div>
+ {history.length === 0 && <div className="mb-2 flex justify-end">{discardedToggle}</div>}
{showCloudMigrationBanner && (
<div className="mb-3 relative rounded-lg border border-primary/20 bg-primary/5 dark:bg-primary/10 p-3">
<button
@@ -182,7 +184,7 @@ export default function HistoryView({
</p>
</div>
)}
- {isLoading ? (
+ {isLoading && history.length === 0 ? (
<div className="rounded-lg border border-border bg-card/50 dark:bg-card/60 backdrop-blur-sm">
<div className="flex items-center justify-center gap-2 py-8">
<Loader2 size={14} className="animate-spin text-primary" />
@@ -297,13 +299,16 @@ export default function HistoryView({
{group.label}
</span>
{index === 0 && (
- <button
- onClick={clearAllTranscriptions}
- className="flex items-center gap-1 px-1.5 py-0.5 rounded text-[11px] text-muted-foreground/60 opacity-0 group-hover:opacity-100 hover:!text-destructive hover:!bg-destructive/8 dark:hover:!bg-destructive/10 active:scale-[0.98] focus-visible:opacity-100 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring/30 transition-all duration-200"
- >
- <Trash2 size={11} />
- <span>{t("controlPanel.history.clearAll")}</span>
- </button>
+ <div className="flex items-center gap-1.5 opacity-0 group-hover:opacity-100 focus-within:opacity-100 transition-opacity duration-200">
+ {discardedToggle}
+ <button
+ onClick={clearAllTranscriptions}
+ className="flex items-center gap-1 px-1.5 py-0.5 rounded text-[11px] text-muted-foreground/60 hover:!text-destructive hover:!bg-destructive/8 dark:hover:!bg-destructive/10 active:scale-[0.98] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring/30 transition-all duration-200"
+ >
+ <Trash2 size={11} />
+ <span>{t("controlPanel.history.clearAll")}</span>
+ </button>
+ </div>
)}
</div>
<div className="space-y-1.5 relative z-0">
diff --git a/src/components/MeetingNotificationCard.tsx b/src/components/MeetingNotificationCard.tsx
new file mode 100644
index 000000000..31fae373c
--- /dev/null
+++ b/src/components/MeetingNotificationCard.tsx
@@ -0,0 +1,88 @@
+import { X } from "lucide-react";
+
+interface MeetingNotificationCardProps {
+ title: string;
+ body: string;
+ startLabel: string;
+ onStart?: () => void;
+ onDismiss?: () => void;
+ /** Controls the close button's hover fade. Ignored when `onDismiss` is absent. */
+ closeVisible?: boolean;
+ className?: string;
+ onMouseEnter?: () => void;
+ onMouseLeave?: () => void;
+}
+
+/**
+ * Presentational only — shared by the live always-on-top overlay
+ * (`MeetingNotificationOverlay`) and the onboarding preview so the two never
+ * drift. Behaviour (slide animation, IPC, hover) is layered on by the caller
+ * via `className` and the handler props.
+ */
+export function MeetingNotificationCard({
+ title,
+ body,
+ startLabel,
+ onStart,
+ onDismiss,
+ closeVisible = true,
+ className = "",
+ onMouseEnter,
+ onMouseLeave,
+}: MeetingNotificationCardProps) {
+ return (
+ <div
+ className={[
+ "relative",
+ "bg-card/95 dark:bg-surface-2/95 backdrop-blur-xl",
+ "border border-border/40 dark:border-border-subtle/40",
+ "rounded-xl shadow-lg p-2.5",
+ className,
+ ].join(" ")}
+ onMouseEnter={onMouseEnter}
+ onMouseLeave={onMouseLeave}
+ >
+ {onDismiss && (
+ <button
+ onClick={onDismiss}
+ className={[
+ "absolute -left-2.5 -top-2.5 z-10 size-6 rounded-full",
+ "flex items-center justify-center",
+ "bg-card dark:bg-surface-2 border border-border/40 dark:border-border-subtle/40 shadow-sm",
+ "text-muted-foreground/70 hover:text-foreground hover:bg-muted",
+ "transition-all duration-150",
+ closeVisible ? "opacity-100 scale-100" : "opacity-0 scale-75 pointer-events-none",
+ ].join(" ")}
+ >
+ <X className="size-3" />
+ </button>
+ )}
+
+ <div className="flex items-center gap-2.5">
+ <div className="shrink-0 bg-primary/10 rounded-md p-1">
+ <svg viewBox="0 0 1024 1024" className="w-4.5 h-4.5">
+ <rect width="1024" height="1024" rx="241" fill="#2056DF" />
+ <circle cx="512" cy="512" r="314" fill="#2056DF" stroke="white" strokeWidth="74" />
+ <path d="M512 383V641" stroke="white" strokeWidth="74" strokeLinecap="round" />
+ <path d="M627 457V568" stroke="white" strokeWidth="74" strokeLinecap="round" />
+ <path d="M397 457V568" stroke="white" strokeWidth="74" strokeLinecap="round" />
+ </svg>
+ </div>
+
+ <div className="flex-1 min-w-0">
+ <p className="text-[12px] font-semibold text-foreground leading-tight truncate">
+ {title}
+ </p>
+ <p className="text-[11px] text-muted-foreground leading-tight mt-0.5">{body}</p>
+ </div>
+
+ <button
+ onClick={onStart}
+ className="shrink-0 bg-primary text-primary-foreground hover:bg-primary/90 text-[11px] font-medium px-2.5 py-1 rounded-md transition-colors"
+ >
+ {startLabel}
+ </button>
+ </div>
+ </div>
+ );
+}
diff --git a/src/components/MeetingNotificationOverlay.tsx b/src/components/MeetingNotificationOverlay.tsx
index 170d5ba1c..7046b7464 100644
--- a/src/components/MeetingNotificationOverlay.tsx
+++ b/src/components/MeetingNotificationOverlay.tsx
@@ -1,5 +1,5 @@
import { useState, useEffect, useCallback } from "react";
-import { X } from "lucide-react";
+import { MeetingNotificationCard } from "./MeetingNotificationCard";
interface NotificationData {
detectionId: string;
@@ -61,62 +61,22 @@ export default function MeetingNotificationOverlay() {
return (
<div className="meeting-notification-window w-full h-full bg-transparent p-3">
- <div
+ <MeetingNotificationCard
+ title={data?.title ?? "Meeting Detected"}
+ body={data?.body ?? "Want to take notes?"}
+ startLabel="Start Recording"
+ onStart={() => respond("start")}
+ onDismiss={() => respond("dismiss")}
+ closeVisible={isHovered}
+ onMouseEnter={handleMouseEnter}
+ onMouseLeave={handleMouseLeave}
className={[
- "relative",
- "bg-card/95 dark:bg-surface-2/95 backdrop-blur-xl",
- "border border-border/40 dark:border-border-subtle/40",
- "rounded-xl shadow-lg p-2.5",
"transition-all duration-300 ease-out",
isVisible
? "translate-x-0 opacity-100 scale-100"
: "translate-x-[120%] opacity-0 scale-95",
].join(" ")}
- onMouseEnter={handleMouseEnter}
- onMouseLeave={handleMouseLeave}
- >
- <button
- onClick={() => respond("dismiss")}
- className={[
- "absolute -left-2.5 -top-2.5 z-10 size-6 rounded-full",
- "flex items-center justify-center",
- "bg-card dark:bg-surface-2 border border-border/40 dark:border-border-subtle/40 shadow-sm",
- "text-muted-foreground/70 hover:text-foreground hover:bg-muted",
- "transition-all duration-150",
- isHovered ? "opacity-100 scale-100" : "opacity-0 scale-75 pointer-events-none",
- ].join(" ")}
- >
- <X className="size-3" />
- </button>
-
- <div className="flex items-center gap-2.5">
- <div className="shrink-0 bg-primary/10 rounded-md p-1">
- <svg viewBox="0 0 1024 1024" className="w-4.5 h-4.5">
- <rect width="1024" height="1024" rx="241" fill="#2056DF" />
- <circle cx="512" cy="512" r="314" fill="#2056DF" stroke="white" strokeWidth="74" />
- <path d="M512 383V641" stroke="white" strokeWidth="74" strokeLinecap="round" />
- <path d="M627 457V568" stroke="white" strokeWidth="74" strokeLinecap="round" />
- <path d="M397 457V568" stroke="white" strokeWidth="74" strokeLinecap="round" />
- </svg>
- </div>
-
- <div className="flex-1 min-w-0">
- <p className="text-[12px] font-semibold text-foreground leading-tight truncate">
- {data?.title ?? "Meeting Detected"}
- </p>
- <p className="text-[11px] text-muted-foreground leading-tight mt-0.5">
- {data?.body ?? "Want to take notes?"}
- </p>
- </div>
-
- <button
- onClick={() => respond("start")}
- className="shrink-0 bg-primary text-primary-foreground hover:bg-primary/90 text-[11px] font-medium px-2.5 py-1 rounded-md transition-colors"
- >
- Start Recording
- </button>
- </div>
- </div>
+ />
</div>
);
}
diff --git a/src/components/OnboardingFlow.tsx b/src/components/OnboardingFlow.tsx
index 02cb70e96..b8e7b75c3 100644
--- a/src/components/OnboardingFlow.tsx
+++ b/src/components/OnboardingFlow.tsx
@@ -7,11 +7,13 @@ import {
ChevronRight,
ChevronLeft,
Check,
+ Flag,
Settings,
Shield,
Command,
Sparkles,
UserCircle,
+ Users,
} from "lucide-react";
import TitleBar from "./TitleBar";
import WindowControls from "./WindowControls";
@@ -26,6 +28,7 @@ import { usePermissions } from "../hooks/usePermissions";
import { useClipboard } from "../hooks/useClipboard";
import { useSystemAudioPermission } from "../hooks/useSystemAudioPermission";
import { useSettings } from "../hooks/useSettings";
+import { useSettingsStore } from "../stores/settingsStore";
import LanguageSelector from "./ui/LanguageSelector";
import AuthenticationStep from "./AuthenticationStep";
import EmailVerificationStep from "./EmailVerificationStep";
@@ -42,17 +45,26 @@ import logger from "../utils/logger";
import { ActivationModeSelector } from "./ui/ActivationModeSelector";
import TranscriptionModelPicker from "./TranscriptionModelPicker";
import { ACCESSIBILITY_SKIPPED_KEY, areRequiredPermissionsMet } from "../utils/permissions";
+import UseCaseStep from "./onboarding/UseCaseStep";
+import MeetingSetupStep from "./onboarding/MeetingSetupStep";
+import FinishStep from "./onboarding/FinishStep";
+import { USE_CASE_IDS } from "./onboarding/useCases";
+import { cloudPost } from "../services/cloudApi";
+
+// Highest possible step index across flow variants (skip-auth with meeting step).
+const MAX_STEP_INDEX = 7;
+
+// Steps whose primary action is optional — the user can advance without it.
+const SKIPPABLE_STEPS = new Set(["usecase", "voiceAgent", "meeting"]);
interface OnboardingFlowProps {
- onComplete: () => void;
+ onComplete: (options?: { openSettings?: boolean }) => void;
}
export default function OnboardingFlow({ onComplete }: OnboardingFlowProps) {
const { t } = useTranslation();
const { isSignedIn } = useAuth();
- const getMaxStep = () => (isSignedIn ? 3 : 4);
-
const [currentStep, setCurrentStep, removeCurrentStep] = useLocalStorage(
"onboardingCurrentStep",
0,
@@ -61,11 +73,10 @@ export default function OnboardingFlow({ onComplete }: OnboardingFlowProps) {
deserialize: (value) => {
const parsed = parseInt(value, 10);
// Clamp to valid range to handle users upgrading from older versions
- // with different step counts
+ // with different step counts. The steps array is dynamic, so a second
+ // effect below clamps against the actual flow length.
if (isNaN(parsed) || parsed < 0) return 0;
- const maxStep = getMaxStep();
- if (parsed > maxStep) return maxStep;
- return parsed;
+ return Math.min(parsed, MAX_STEP_INDEX);
},
}
);
@@ -91,6 +102,8 @@ export default function OnboardingFlow({ onComplete }: OnboardingFlowProps) {
xaiApiKey,
mistralApiKey,
dictationKey,
+ meetingKey,
+ setMeetingKey,
voiceAgentKey,
setVoiceAgentKey,
activationMode,
@@ -99,8 +112,15 @@ export default function OnboardingFlow({ onComplete }: OnboardingFlowProps) {
setUseLocalWhisper,
updateTranscriptionSettings,
preferredLanguage,
+ onboardingUseCases,
+ setOnboardingUseCases,
+ onboardingUseCaseNote,
+ setOnboardingUseCaseNote,
} = useSettings();
+ const cortiClientId = useSettingsStore((s) => s.cortiClientId);
+ const cortiClientSecret = useSettingsStore((s) => s.cortiClientSecret);
+
const [hotkey, setHotkey] = useState(dictationKey || getDefaultHotkey());
const [agentName, setAgentName] = useState("OpenWhispr");
const [skipAuth, setSkipAuth] = useState(false);
@@ -109,6 +129,7 @@ export default function OnboardingFlow({ onComplete }: OnboardingFlowProps) {
const { isUsingNativeShortcut, isUsingHyprland, hyprlandConfigStatus, supportsPushToTalk } =
useHotkeyModeInfo("onboarding");
const readableHotkey = formatHotkeyLabel(hotkey);
+ const readableVoiceAgentKey = formatHotkeyLabel(voiceAgentKey);
const { alertDialog, confirmDialog, showAlertDialog, hideAlertDialog, hideConfirmDialog } =
useDialogs();
const [connectivityDialog, setConnectivityDialog] = useState<{
@@ -154,25 +175,43 @@ export default function OnboardingFlow({ onComplete }: OnboardingFlowProps) {
setAccessibilitySkipped,
]);
- // For signed-in users, permissions are folded into the "setup" step.
- const steps = useMemo(
- () =>
- isSignedIn && !skipAuth
- ? [
- { id: "welcome", title: t("onboarding.steps.welcome"), icon: UserCircle },
- { id: "setup", title: t("onboarding.steps.setup"), icon: Settings },
- { id: "activation", title: t("onboarding.steps.activation"), icon: Command },
- { id: "voiceAgent", title: t("onboarding.steps.voiceAgent"), icon: Sparkles },
- ]
- : [
- { id: "welcome", title: t("onboarding.steps.welcome"), icon: UserCircle },
- { id: "setup", title: t("onboarding.steps.setup"), icon: Settings },
- { id: "permissions", title: t("onboarding.steps.permissions"), icon: Shield },
- { id: "activation", title: t("onboarding.steps.activation"), icon: Command },
- { id: "voiceAgent", title: t("onboarding.steps.voiceAgent"), icon: Sparkles },
- ],
- [isSignedIn, skipAuth, t]
- );
+ // Dynamic flow: signed-in users get permissions folded into "setup".
+ // The meeting step is temporarily hidden for all users while it gets more
+ // design polish — the step's render code and MeetingSetupStep stay in place.
+ // Restore by reinstating the relevance check:
+ // systemAudio.granted || onboardingUseCases.includes(USE_CASE_IDS.meetings)
+ const showMeetingStep = false;
+
+ const steps = useMemo(() => {
+ const list = [
+ { id: "welcome", title: t("onboarding.steps.welcome"), icon: UserCircle },
+ { id: "usecase", title: t("onboarding.steps.useCase"), icon: Sparkles },
+ { id: "setup", title: t("onboarding.steps.setup"), icon: Settings },
+ ];
+ if (!(isSignedIn && !skipAuth)) {
+ list.push({ id: "permissions", title: t("onboarding.steps.permissions"), icon: Shield });
+ }
+ list.push({ id: "activation", title: t("onboarding.steps.activation"), icon: Command });
+ // Hidden for continue-without-account users: they have no LLM, so the agent can't run.
+ if (isSignedIn && !skipAuth) {
+ list.push({ id: "voiceAgent", title: t("onboarding.steps.voiceAgent"), icon: Sparkles });
+ }
+ if (showMeetingStep) {
+ list.push({ id: "meeting", title: t("onboarding.steps.meeting"), icon: Users });
+ }
+ list.push({ id: "finish", title: t("onboarding.steps.finish"), icon: Flag });
+ return list;
+ }, [isSignedIn, skipAuth, showMeetingStep, t]);
+
+ const currentStepId = steps[currentStep]?.id;
+
+ // The steps array can shrink (e.g. meeting step removed after deselecting
+ // meetings on the way back) — keep the index in range.
+ useEffect(() => {
+ if (currentStep > steps.length - 1) {
+ setCurrentStep(steps.length - 1);
+ }
+ }, [currentStep, steps.length, setCurrentStep]);
// Only show progress for signed-up users after account creation step
const showProgress = currentStep > 0;
@@ -219,8 +258,7 @@ export default function OnboardingFlow({ onComplete }: OnboardingFlowProps) {
}, [useLocalWhisper, whisperModel, parakeetModel, localTranscriptionProvider]);
// Auto-register default hotkey when entering the activation step
- // (step 3 for non-signed-in, step 2 for signed-in users)
- const activationStepIndex = isSignedIn && !skipAuth ? 2 : 3;
+ const activationStepIndex = steps.findIndex((step) => step.id === "activation");
useEffect(() => {
if (currentStep !== activationStepIndex) {
@@ -342,6 +380,9 @@ export default function OnboardingFlow({ onComplete }: OnboardingFlowProps) {
updateTranscriptionSettings,
]);
+ const [isFinishing, setIsFinishing] = useState(false);
+ const openSettingsOnCompleteRef = useRef(false);
+
const nextStep = useCallback(async () => {
if (currentStep >= steps.length - 1) {
return;
@@ -358,6 +399,16 @@ export default function OnboardingFlow({ onComplete }: OnboardingFlowProps) {
setAccessibilitySkipped(true);
}
+ // Fire-and-forget intent sync — must never block onboarding.
+ if (currentStepId === "usecase" && isSignedIn && !skipAuth) {
+ cloudPost("/api/onboarding-intent", {
+ useCases: onboardingUseCases,
+ note: onboardingUseCaseNote || undefined,
+ }).catch((error) => {
+ logger.warn("Failed to sync onboarding intent", { error }, "onboarding");
+ });
+ }
+
const newStep = currentStep + 1;
setCurrentStep(newStep);
@@ -374,6 +425,8 @@ export default function OnboardingFlow({ onComplete }: OnboardingFlowProps) {
activationStepIndex,
isSignedIn,
skipAuth,
+ onboardingUseCases,
+ onboardingUseCaseNote,
permissionsHook.accessibilityPermissionGranted,
setAccessibilitySkipped,
]);
@@ -385,40 +438,49 @@ export default function OnboardingFlow({ onComplete }: OnboardingFlowProps) {
}
}, [currentStep, setCurrentStep]);
- const finishOnboarding = useCallback(async () => {
- const saved = await saveSettings();
- if (!saved) {
- return;
- }
+ const finishOnboarding = useCallback(
+ async (openSettings = false) => {
+ openSettingsOnCompleteRef.current = openSettings;
+ setIsFinishing(true);
+ try {
+ const saved = await saveSettings();
+ if (!saved) {
+ return;
+ }
- const cloudHealthCheck = window.electronAPI?.cloudHealthCheck;
- if (useLocalWhisper || !cloudHealthCheck) {
- removeCurrentStep();
- onComplete();
- return;
- }
+ const cloudHealthCheck = window.electronAPI?.cloudHealthCheck;
+ if (useLocalWhisper || !cloudHealthCheck) {
+ removeCurrentStep();
+ onComplete({ openSettings });
+ return;
+ }
- let result;
- try {
- result = await cloudHealthCheck();
- } catch (error) {
- logger.error("Cloud health check threw", { error }, "onboarding");
- result = { ok: false } as Awaited<ReturnType<typeof cloudHealthCheck>>;
- }
+ let result;
+ try {
+ result = await cloudHealthCheck();
+ } catch (error) {
+ logger.error("Cloud health check threw", { error }, "onboarding");
+ result = { ok: false } as Awaited<ReturnType<typeof cloudHealthCheck>>;
+ }
- // Any HTTP response (even 4xx) proves the network reached the server.
- // Only a transport-level failure with no status warrants the warning.
- if (result.ok || result.status !== undefined) {
- removeCurrentStep();
- onComplete();
- return;
- }
+ // Any HTTP response (even 4xx) proves the network reached the server.
+ // Only a transport-level failure with no status warrants the warning.
+ if (result.ok || result.status !== undefined) {
+ removeCurrentStep();
+ onComplete({ openSettings });
+ return;
+ }
- setConnectivityDialog({
- open: true,
- cause: t(result.messageKey || "streaming.errors.cloudUnreachable.generic"),
- });
- }, [saveSettings, removeCurrentStep, onComplete, useLocalWhisper, t]);
+ setConnectivityDialog({
+ open: true,
+ cause: t(result.messageKey || "streaming.errors.cloudUnreachable.generic"),
+ });
+ } finally {
+ setIsFinishing(false);
+ }
+ },
+ [saveSettings, removeCurrentStep, onComplete, useLocalWhisper, t]
+ );
const resolveConnectivity = useCallback(
(useLocal: boolean) => {
@@ -427,14 +489,14 @@ export default function OnboardingFlow({ onComplete }: OnboardingFlowProps) {
}
setConnectivityDialog({ open: false, cause: "" });
removeCurrentStep();
- onComplete();
+ onComplete({ openSettings: openSettingsOnCompleteRef.current });
},
[setUseLocalWhisper, removeCurrentStep, onComplete]
);
const renderStep = () => {
- switch (currentStep) {
- case 0: // Authentication (with Welcome)
+ switch (currentStepId) {
+ case "welcome":
if (pendingVerificationEmail) {
return (
<EmailVerificationStep
@@ -443,6 +505,7 @@ export default function OnboardingFlow({ onComplete }: OnboardingFlowProps) {
setPendingVerificationEmail(null);
nextStep();
}}
+ onBack={() => setPendingVerificationEmail(null)}
/>
);
}
@@ -461,7 +524,17 @@ export default function OnboardingFlow({ onComplete }: OnboardingFlowProps) {
/>
);
- case 1: // Setup - Choose Mode & Configure (merged with permissions for signed-in users)
+ case "usecase":
+ return (
+ <UseCaseStep
+ useCases={onboardingUseCases}
+ onUseCasesChange={setOnboardingUseCases}
+ note={onboardingUseCaseNote}
+ onNoteChange={setOnboardingUseCaseNote}
+ />
+ );
+
+ case "setup": // Choose Mode & Configure (merged with permissions for signed-in users)
if (isSignedIn && !skipAuth) {
return (
<div className="space-y-6">
@@ -496,7 +569,11 @@ export default function OnboardingFlow({ onComplete }: OnboardingFlowProps) {
<h3 className="text-sm font-medium text-foreground">
{t("onboarding.permissions.title")}
</h3>
- <PermissionsSection permissions={permissionsHook} systemAudio={systemAudio} />
+ <PermissionsSection
+ permissions={permissionsHook}
+ systemAudio={systemAudio}
+ systemAudioRecommended={onboardingUseCases.includes(USE_CASE_IDS.meetings)}
+ />
</div>
</div>
);
@@ -570,13 +647,7 @@ export default function OnboardingFlow({ onComplete }: OnboardingFlowProps) {
</div>
);
- case 2: // Permissions (only for non-signed-in users) or Activation (for signed-in users)
- // For signed-in users, this is the activation step
- if (isSignedIn && !skipAuth) {
- return renderActivationStep();
- }
-
- // For non-signed-in users, this is the permissions step
+ case "permissions": {
const platform = permissionsHook.pasteToolsInfo?.platform;
const isMacOS = platform === "darwin";
@@ -594,19 +665,40 @@ export default function OnboardingFlow({ onComplete }: OnboardingFlowProps) {
</p>
</div>
- <PermissionsSection permissions={permissionsHook} systemAudio={systemAudio} />
+ <PermissionsSection
+ permissions={permissionsHook}
+ systemAudio={systemAudio}
+ systemAudioRecommended={onboardingUseCases.includes(USE_CASE_IDS.meetings)}
+ />
</div>
);
+ }
- case 3: // Voice agent (signed-in users) or Activation (non-signed-in users)
- if (isSignedIn && !skipAuth) {
- return renderVoiceAgentStep();
- }
+ case "activation":
return renderActivationStep();
- case 4: // Voice agent (only for non-signed-in users)
+ case "voiceAgent":
return renderVoiceAgentStep();
+ case "meeting":
+ return (
+ <MeetingSetupStep
+ meetingKey={meetingKey}
+ setMeetingKey={setMeetingKey}
+ dictationKey={hotkey}
+ />
+ );
+
+ case "finish":
+ return (
+ <FinishStep
+ isCloudUser={isSignedIn && !skipAuth && !useLocalWhisper}
+ useCases={onboardingUseCases}
+ onFinish={(openSettings) => void finishOnboarding(openSettings)}
+ isFinishing={isFinishing}
+ />
+ );
+
default:
return null;
}
@@ -736,6 +828,37 @@ export default function OnboardingFlow({ onComplete }: OnboardingFlowProps) {
</div>
</div>
+ {/* Test area - minimal chrome */}
+ <div className="space-y-2">
+ <div className="flex items-center gap-2">
+ <span className="text-xs font-medium text-muted-foreground uppercase tracking-wide">
+ {t("onboarding.voiceAgent.test")}
+ </span>
+ <span className="text-xs text-muted-foreground/60">
+ {voiceAgentKey
+ ? t("onboarding.voiceAgent.testInstruction", { hotkey: readableVoiceAgentKey })
+ : t("onboarding.voiceAgent.testSetHotkey")}
+ </span>
+ </div>
+ <div className="flex flex-wrap gap-1.5">
+ {(t("onboarding.voiceAgent.examples", { returnObjects: true }) as string[]).map(
+ (example) => (
+ <span
+ key={example}
+ className="rounded-full border border-border-subtle bg-muted px-2.5 py-1 text-xs text-muted-foreground"
+ >
+ {example}
+ </span>
+ )
+ )}
+ </div>
+ <Textarea
+ rows={2}
+ placeholder={t("onboarding.voiceAgent.testPlaceholder")}
+ className="text-sm resize-none"
+ />
+ </div>
+
<p className="text-xs text-muted-foreground/60 text-center">
{t("onboarding.voiceAgent.optionalNote")}
</p>
@@ -743,10 +866,12 @@ export default function OnboardingFlow({ onComplete }: OnboardingFlowProps) {
);
const canProceed = () => {
- switch (currentStep) {
- case 0:
- return isSignedIn || skipAuth; // Authentication step
- case 1:
+ switch (currentStepId) {
+ case "welcome":
+ return isSignedIn || skipAuth;
+ case "usecase":
+ return true; // Selection is optional — Next doubles as skip
+ case "setup":
// For signed-in users: Setup step includes permissions
if (isSignedIn && !skipAuth) {
return areRequiredPermissionsMet(permissionsHook.micPermissionGranted);
@@ -767,30 +892,24 @@ export default function OnboardingFlow({ onComplete }: OnboardingFlowProps) {
return xaiApiKey.trim().length > 0;
} else if (cloudTranscriptionProvider === "mistral") {
return mistralApiKey.trim().length > 0;
+ } else if (cloudTranscriptionProvider === "corti") {
+ return cortiClientId.trim().length > 0 && cortiClientSecret.trim().length > 0;
} else if (cloudTranscriptionProvider === "custom") {
// Custom can work without API key for local endpoints
return true;
}
return openaiApiKey.trim().length > 0; // Default to OpenAI
}
- case 2: {
- // For signed-in users, this is activation step
- if (isSignedIn && !skipAuth) {
- return hotkey.trim() !== "";
- }
-
- // For non-signed-in users, this is permissions step
+ case "permissions":
return areRequiredPermissionsMet(permissionsHook.micPermissionGranted);
- }
- case 3:
- // Voice agent step (signed-in) is optional; activation (non-signed-in)
- // requires a hotkey
- if (isSignedIn && !skipAuth) {
- return true;
- }
+ case "activation":
return hotkey.trim() !== "";
- case 4:
- return true; // Voice agent step is optional for non-signed-in users
+ case "voiceAgent":
+ return true; // Voice agent hotkey is optional
+ case "meeting":
+ return true; // Meeting hotkey is optional
+ case "finish":
+ return true; // FinishStep renders its own actions
default:
return false;
}
@@ -865,12 +984,17 @@ export default function OnboardingFlow({ onComplete }: OnboardingFlowProps) {
showTitle={true}
className="bg-background backdrop-blur-xl border-b border-border shadow-sm"
actions={isSignedIn ? <SupportDropdown /> : undefined}
+ center={
+ onboardingPlatform === "darwin" ? (
+ <StepProgress steps={steps.slice(1)} currentStep={currentStep - 1} />
+ ) : undefined
+ }
></TitleBar>
</div>
)}
- {/* Progress Bar - hidden on welcome/auth step */}
- {showProgress && (
+ {/* Progress bar — on macOS it lives centered in the title bar instead */}
+ {showProgress && onboardingPlatform !== "darwin" && (
<div className="shrink-0 bg-background/80 backdrop-blur-2xl border-b border-white/5 px-6 md:px-12 py-3 z-10">
<div className="max-w-3xl mx-auto">
<StepProgress steps={steps.slice(1)} currentStep={currentStep - 1} />
@@ -912,25 +1036,26 @@ export default function OnboardingFlow({ onComplete }: OnboardingFlowProps) {
{currentStep === 1 && isSignedIn && !skipAuth && <div />}
<div className="flex items-center gap-2">
- {currentStep === steps.length - 1 ? (
- <Button
- onClick={finishOnboarding}
- disabled={!canProceed()}
- variant="success"
- className="h-8 px-6 rounded-full text-xs"
- >
- <Check className="w-3.5 h-3.5" />
- {t("common.complete")}
- </Button>
- ) : (
- <Button
- onClick={nextStep}
- disabled={!canProceed()}
- className="h-8 px-6 rounded-full text-xs"
- >
- {t("common.next")}
- <ChevronRight className="w-3.5 h-3.5" />
- </Button>
+ {currentStepId !== "finish" && (
+ <>
+ {SKIPPABLE_STEPS.has(currentStepId ?? "") && (
+ <Button
+ onClick={nextStep}
+ variant="ghost"
+ className="h-8 px-4 rounded-full text-xs text-muted-foreground"
+ >
+ {t("common.skip")}
+ </Button>
+ )}
+ <Button
+ onClick={nextStep}
+ disabled={!canProceed()}
+ className="h-8 px-6 rounded-full text-xs"
+ >
+ {t("common.next")}
+ <ChevronRight className="w-3.5 h-3.5" />
+ </Button>
+ </>
)}
</div>
</div>
diff --git a/src/components/SettingsModal.tsx b/src/components/SettingsModal.tsx
index 2abd5923d..0b4d9108b 100644
--- a/src/components/SettingsModal.tsx
+++ b/src/components/SettingsModal.tsx
@@ -28,6 +28,7 @@ const SECTION_ALIASES: Record<string, SettingsSectionType> = {
meetings: "llms",
prompts: "llms",
transcription: "speechToText",
+ uploadTranscription: "speechToText",
softwareUpdates: "system",
privacy: "privacyData",
permissions: "privacyData",
@@ -36,6 +37,7 @@ const SECTION_ALIASES: Record<string, SettingsSectionType> = {
const LEGACY_SUB_TAB: Record<string, string> = {
transcription: "dictation",
+ uploadTranscription: "upload",
meetings: "noteFormatting",
intelligence: "dictationCleanup",
agentMode: "chatIntelligence",
diff --git a/src/components/SettingsPage.tsx b/src/components/SettingsPage.tsx
index 36c84d9af..c7dfc1e4d 100644
--- a/src/components/SettingsPage.tsx
+++ b/src/components/SettingsPage.tsx
@@ -33,6 +33,7 @@ import {
MessageSquare,
FileAudio,
Wand2,
+ Upload,
} from "lucide-react";
import { useAuth } from "../hooks/useAuth";
import { AUTH_URL, signOut, deleteAccount } from "../lib/auth";
@@ -80,6 +81,7 @@ import ChatAgentSettings from "./settings/ChatAgentSettings";
import DictationAgentSettings from "./settings/DictationAgentSettings";
import InferenceConfigEditor from "./settings/InferenceConfigEditor";
import { MeetingTranscriptionPanel } from "./settings/MeetingSettings";
+import { UploadTranscriptionPanel } from "./settings/UploadSettings";
import LanguageSelector from "./ui/LanguageSelector";
import { Skeleton } from "./ui/skeleton";
import { Progress } from "./ui/progress";
@@ -462,10 +464,10 @@ function AiModelsSection({ useCleanupModel, setUseCleanupModel, toast }: AiModel
);
}
-type SpeechTab = "dictation" | "noteRecording";
+type SpeechTab = "dictation" | "noteRecording" | "upload";
type LlmTab = "dictationCleanup" | "dictationAgent" | "noteFormatting" | "chatIntelligence";
-const SPEECH_TABS: SpeechTab[] = ["dictation", "noteRecording"];
+const SPEECH_TABS: SpeechTab[] = ["dictation", "noteRecording", "upload"];
const LLM_TABS: LlmTab[] = [
"dictationCleanup",
"dictationAgent",
@@ -513,10 +515,12 @@ function SpeechToTextTabs({
initialTab,
renderDictation,
renderNoteRecording,
+ renderUpload,
}: {
initialTab?: SpeechTab;
renderDictation: () => React.ReactNode;
renderNoteRecording: () => React.ReactNode;
+ renderUpload: () => React.ReactNode;
}) {
const { t } = useTranslation();
const [tab, setTab] = useSubTab<SpeechTab>("settings.speechToTextTab", SPEECH_TABS, initialTab);
@@ -524,6 +528,7 @@ function SpeechToTextTabs({
const subTabs = [
{ id: "dictation", name: t("settingsPage.speechToText.tabs.dictation") },
{ id: "noteRecording", name: t("settingsPage.speechToText.tabs.noteRecording") },
+ { id: "upload", name: t("settingsPage.speechToText.tabs.upload") },
];
return (
@@ -539,6 +544,8 @@ function SpeechToTextTabs({
renderIcon={(id) =>
id === "dictation" ? (
<Mic className="w-3.5 h-3.5" />
+ ) : id === "upload" ? (
+ <Upload className="w-3.5 h-3.5" />
) : (
<FileAudio className="w-3.5 h-3.5" />
)
@@ -546,6 +553,7 @@ function SpeechToTextTabs({
/>
<TabPanel active={tab === "dictation"}>{renderDictation()}</TabPanel>
<TabPanel active={tab === "noteRecording"}>{renderNoteRecording()}</TabPanel>
+ <TabPanel active={tab === "upload"}>{renderUpload()}</TabPanel>
</div>
);
}
@@ -783,8 +791,6 @@ export default function SettingsPage({
const setChatAgentKey = useSettingsStore((s) => s.setChatAgentKey);
const voiceAgentKey = useSettingsStore((s) => s.voiceAgentKey);
const setVoiceAgentKey = useSettingsStore((s) => s.setVoiceAgentKey);
- const meetingAudioDetection = useSettingsStore((s) => s.meetingAudioDetection);
- const setMeetingAudioDetection = useSettingsStore((s) => s.setMeetingAudioDetection);
const { t, i18n } = useTranslation();
const { toast } = useToast();
@@ -2464,32 +2470,6 @@ export default function SettingsPage({
</SettingsPanel>
</div>
- {/* Meeting Detection */}
- <div>
- <SectionHeader
- title={t("calendar.detection.title")}
- description={t("calendar.detection.description")}
- />
- <SettingsPanel>
- <SettingsPanelRow>
- <SettingsRow
- label={t("calendar.detection.audioDetection")}
- description={t("calendar.detection.audioDescription")}
- >
- <Toggle
- checked={meetingAudioDetection}
- onChange={(value) => {
- setMeetingAudioDetection(value);
- window.electronAPI?.meetingDetectionSetPreferences?.({
- audioDetection: value,
- });
- }}
- />
- </SettingsRow>
- </SettingsPanelRow>
- </SettingsPanel>
- </div>
-
{/* Clipboard */}
<div>
<SectionHeader title={t("settingsPage.general.clipboard.title")} />
@@ -3992,6 +3972,11 @@ EOF`,
renderWhisperVadSettings()}
</div>
)}
+ renderUpload={() => (
+ <div className="space-y-6">
+ <UploadTranscriptionPanel />
+ </div>
+ )}
/>
</TabPanel>
)}
diff --git a/src/components/TitleBar.tsx b/src/components/TitleBar.tsx
index c1c417a3c..dcaa6863d 100644
--- a/src/components/TitleBar.tsx
+++ b/src/components/TitleBar.tsx
@@ -1,9 +1,5 @@
-import React, { useState } from "react";
-import { useTranslation } from "react-i18next";
+import React from "react";
import WindowControls from "./WindowControls";
-import { Button } from "./ui/button";
-import { Power } from "lucide-react";
-import { ConfirmDialog } from "./ui/dialog";
interface TitleBarProps {
title?: string;
@@ -11,6 +7,7 @@ interface TitleBarProps {
children?: React.ReactNode;
className?: string;
actions?: React.ReactNode;
+ center?: React.ReactNode;
}
export default function TitleBar({
@@ -19,56 +16,30 @@ export default function TitleBar({
children,
className = "",
actions,
+ center,
}: TitleBarProps) {
- const { t } = useTranslation();
- const [showQuitConfirm, setShowQuitConfirm] = useState(false);
-
const platform =
typeof window !== "undefined" && window.electronAPI?.getPlatform
? window.electronAPI.getPlatform()
: "darwin";
- const handleQuit = async () => {
- try {
- await window.electronAPI?.appQuit?.();
- } catch {
- // noop
- }
- };
-
- const getActionsContent = () => {
- if (!actions) return null;
-
- if (platform !== "darwin" && React.isValidElement(actions)) {
- const el = actions as React.ReactElement<{ children?: React.ReactNode }>;
- const childrenArray = React.Children.toArray(el.props.children);
- return <>{[...childrenArray].reverse()}</>;
- }
-
- return actions;
- };
-
return (
<div className={`bg-background border-b border-border select-none ${className}`}>
<div
- className="flex items-center justify-between h-12 px-4"
+ className="relative flex items-center justify-between h-12 px-4"
style={{ WebkitAppRegion: "drag" }}
>
+ {center && (
+ <div
+ className="absolute left-1/2 -translate-x-1/2"
+ style={{ WebkitAppRegion: "no-drag" }}
+ >
+ {center}
+ </div>
+ )}
<div className="flex items-center gap-2" style={{ WebkitAppRegion: "no-drag" }}>
{platform !== "darwin" ? (
- <>
- <Button
- variant="ghost"
- size="icon"
- onClick={() => setShowQuitConfirm(true)}
- className="h-8 w-8 text-destructive hover:text-destructive/90 hover:bg-destructive/10"
- title={t("titleBar.quitTitle")}
- aria-label={t("titleBar.quitTitle")}
- >
- <Power size={16} />
- </Button>
- {getActionsContent()}
- </>
+ actions
) : (
<>
{showTitle && title && (
@@ -80,37 +51,9 @@ export default function TitleBar({
</div>
<div className="flex items-center gap-2" style={{ WebkitAppRegion: "no-drag" }}>
- {platform !== "darwin" ? (
- <>
- <WindowControls />
- </>
- ) : (
- <>
- {actions}
- <Button
- variant="ghost"
- size="icon"
- onClick={() => setShowQuitConfirm(true)}
- className="h-8 w-8 text-destructive hover:text-destructive/90 hover:bg-destructive/10"
- title={t("titleBar.quitTitle")}
- aria-label={t("titleBar.quitTitle")}
- >
- <Power size={16} />
- </Button>
- </>
- )}
+ {platform !== "darwin" ? <WindowControls /> : actions}
</div>
</div>
- <ConfirmDialog
- open={showQuitConfirm}
- onOpenChange={setShowQuitConfirm}
- title={t("titleBar.quitConfirmTitle")}
- description={t("titleBar.quitConfirmDescription")}
- confirmText={t("titleBar.quit")}
- cancelText={t("titleBar.cancel")}
- onConfirm={handleQuit}
- variant="destructive"
- />
</div>
);
}
diff --git a/src/components/TranscriptionModelPicker.tsx b/src/components/TranscriptionModelPicker.tsx
index 125eac3d8..c695f6e93 100644
--- a/src/components/TranscriptionModelPicker.tsx
+++ b/src/components/TranscriptionModelPicker.tsx
@@ -245,7 +245,7 @@ const PROVIDER_CREDENTIALS: Record<
fields: [{ key: "mistralApiKey", input: "secret" }],
},
corti: {
- consoleUrl: "https://console.corti.app",
+ consoleUrl: "https://www.corti.ai/?utm_source=referral&utm_content=&utm_campaign=openwhispr",
fields: [
{ key: "cortiClientId", input: "secret", labelKey: "transcription.corti.clientId" },
{ key: "cortiClientSecret", input: "secret", labelKey: "transcription.corti.clientSecret" },
diff --git a/src/components/notes/ShareNoteDialog.tsx b/src/components/notes/ShareNoteDialog.tsx
index ce5978ba9..aec3b0790 100644
--- a/src/components/notes/ShareNoteDialog.tsx
+++ b/src/components/notes/ShareNoteDialog.tsx
@@ -62,7 +62,7 @@ export default function ShareNoteDialog({ open, onOpenChange, note }: ShareNoteD
const showDomainOption = ownerDomain && !isPersonalEmailDomain(ownerDomain);
const share = cached?.share ?? null;
- const invitations = cached?.invitations ?? [];
+ const invitations = useMemo(() => cached?.invitations ?? [], [cached?.invitations]);
// Load share state once per open. The dialog is the only place that reads
// share settings — invalidating on close keeps the cache scoped.
diff --git a/src/components/notes/UploadAudioView.tsx b/src/components/notes/UploadAudioView.tsx
index 74e09755e..51ecfec90 100644
--- a/src/components/notes/UploadAudioView.tsx
+++ b/src/components/notes/UploadAudioView.tsx
@@ -1,17 +1,7 @@
-import React, { useState, useRef, useEffect, Suspense } from "react";
+import React, { useState, useRef, useEffect } from "react";
import { useTranslation } from "react-i18next";
-import {
- Upload,
- FileAudio,
- X,
- AlertCircle,
- Cloud,
- ChevronRight,
- Key,
- FolderOpen,
- Plus,
- Settings,
-} from "lucide-react";
+import { Upload, FileAudio, X, AlertCircle, FolderOpen, Plus, Settings } from "lucide-react";
+import { useShallow } from "zustand/react/shallow";
import { Button } from "../ui/button";
import { cn } from "../lib/utils";
import {
@@ -29,18 +19,18 @@ import { findDefaultFolder, MEETINGS_FOLDER_NAME } from "./shared";
import { useAuth } from "../../hooks/useAuth";
import { useUsage } from "../../hooks/useUsage";
import { useSettings } from "../../hooks/useSettings";
+import { useStartOnboarding } from "../../hooks/useStartOnboarding";
import { withSessionRefresh } from "../../lib/auth";
import { getAllReasoningModels } from "../../models/ModelRegistry";
import {
useSettingsStore,
selectIsCloudCleanupMode,
+ selectResolvedUploadTranscription,
getSettings,
} from "../../stores/settingsStore";
import { generateNoteTitle } from "../../utils/generateTitle";
import { getBaseLanguageCode } from "../../utils/languageSupport";
-const TranscriptionModelPicker = React.lazy(() => import("../TranscriptionModelPicker"));
-
type UploadState = "idle" | "selected" | "transcribing" | "complete" | "error";
const SUPPORTED_EXTENSIONS = ["mp3", "wav", "m4a", "webm", "ogg", "oga", "flac", "aac"];
@@ -80,48 +70,38 @@ export default function UploadAudioView({ onNoteCreated, onOpenSettings }: Uploa
chunksCompleted: number;
} | null>(null);
const progressCleanupRef = useRef<(() => void) | null>(null);
+ const runIdRef = useRef(0);
const [folders, setFolders] = useState<FolderItem[]>([]);
const [selectedFolderId, setSelectedFolderId] = useState<string>("");
const [showNewFolderDialog, setShowNewFolderDialog] = useState(false);
const [newFolderName, setNewFolderName] = useState("");
- const [setupDismissed, setSetupDismissed] = useState(
- () =>
- localStorage.getItem("uploadSetupComplete") === "true" ||
- localStorage.getItem("notesOnboardingComplete") === "true"
- );
- const [advancedOpen, setAdvancedOpen] = useState(false);
const [providerReady, setProviderReady] = useState<boolean | null>(null);
const { isSignedIn } = useAuth();
const usage = useUsage();
const isProUser = usage?.isSubscribed || usage?.isTrial;
+ const { openaiApiKey, groqApiKey, xaiApiKey, mistralApiKey, customTranscriptionApiKey } =
+ useSettings();
+
const {
useLocalWhisper,
- setUseLocalWhisper,
whisperModel,
- setWhisperModel,
localTranscriptionProvider,
- setLocalTranscriptionProvider,
parakeetModel,
- setParakeetModel,
cloudTranscriptionProvider,
- setCloudTranscriptionProvider,
cloudTranscriptionModel,
- setCloudTranscriptionModel,
cloudTranscriptionBaseUrl,
- setCloudTranscriptionBaseUrl,
cloudTranscriptionMode,
- setCloudTranscriptionMode,
- openaiApiKey,
- groqApiKey,
- xaiApiKey,
- mistralApiKey,
- customTranscriptionApiKey,
- updateTranscriptionSettings,
- } = useSettings();
+ } = useSettingsStore(useShallow(selectResolvedUploadTranscription));
+
+ const setUploadTranscriptionMode = useSettingsStore((s) => s.setUploadTranscriptionMode);
+ const setUploadCloudTranscriptionMode = useSettingsStore(
+ (s) => s.setUploadCloudTranscriptionMode
+ );
+ const setUploadUseLocalWhisper = useSettingsStore((s) => s.setUploadUseLocalWhisper);
const cortiClientId = useSettingsStore((s) => s.cortiClientId);
const cortiClientSecret = useSettingsStore((s) => s.cortiClientSecret);
@@ -136,10 +116,6 @@ export default function UploadAudioView({ onNoteCreated, onOpenSettings }: Uploa
const isOpenWhisprCloud =
isSignedIn && cloudTranscriptionMode === "openwhispr" && !useLocalWhisper;
- const usageLoaded = usage?.hasLoaded ?? false;
- const showSetup = usageLoaded && !isProUser && !setupDismissed && state === "idle";
- const showModelPicker = !isSignedIn || cloudTranscriptionMode === "byok" || useLocalWhisper;
- const shouldCenter = !showSetup && !advancedOpen;
// Mode detection
const isByok = !useLocalWhisper && !isOpenWhisprCloud;
@@ -333,8 +309,14 @@ export default function UploadAudioView({ onNoteCreated, onOpenSettings }: Uploa
if (personal) setSelectedFolderId(String(personal.id));
};
+ const cancelTranscription = () => {
+ runIdRef.current++;
+ reset();
+ };
+
const handleTranscribe = async () => {
if (!file) return;
+ const runId = ++runIdRef.current;
setState("transcribing");
setError(null);
setProgress(0);
@@ -396,6 +378,8 @@ export default function UploadAudioView({ onNoteCreated, onOpenSettings }: Uploa
});
}
+ if (runId !== runIdRef.current) return;
+
if (progressRef.current) clearInterval(progressRef.current);
if (progressCleanupRef.current) progressCleanupRef.current();
progressCleanupRef.current = null;
@@ -410,6 +394,7 @@ export default function UploadAudioView({ onNoteCreated, onOpenSettings }: Uploa
? textFallback + (res.text.trim().split(/\s+/).length > 6 ? "..." : "")
: file.name.replace(/\.[^.]+$/, "");
const aiTitle = await generateTitle(res.text);
+ if (runId !== runIdRef.current) return;
const title = aiTitle || fallbackTitle;
const folderId = selectedFolderId ? Number(selectedFolderId) : null;
@@ -433,6 +418,7 @@ export default function UploadAudioView({ onNoteCreated, onOpenSettings }: Uploa
setState("error");
}
} catch (err) {
+ if (runId !== runIdRef.current) return;
if (progressRef.current) clearInterval(progressRef.current);
if (progressCleanupRef.current) progressCleanupRef.current();
progressCleanupRef.current = null;
@@ -442,11 +428,6 @@ export default function UploadAudioView({ onNoteCreated, onOpenSettings }: Uploa
}
};
- const dismissSetup = () => {
- localStorage.setItem("uploadSetupComplete", "true");
- setSetupDismissed(true);
- };
-
const handleCreateFolder = async () => {
const trimmed = newFolderName.trim();
if (!trimmed) return;
@@ -474,17 +455,12 @@ export default function UploadAudioView({ onNoteCreated, onOpenSettings }: Uploa
}
};
- const handleCreateAccount = () => {
- localStorage.setItem("pendingCloudMigration", "true");
- localStorage.setItem("onboardingCurrentStep", "0");
- localStorage.removeItem("onboardingCompleted");
- window.location.reload();
- };
+ const handleCreateAccount = useStartOnboarding();
const switchToCloud = () => {
- setCloudTranscriptionMode("openwhispr");
- setUseLocalWhisper(false);
- updateTranscriptionSettings({ useLocalWhisper: false });
+ setUploadTranscriptionMode("openwhispr");
+ setUploadCloudTranscriptionMode("openwhispr");
+ setUploadUseLocalWhisper(false);
};
const getTranscribingLabel = (): string => {
@@ -493,110 +469,15 @@ export default function UploadAudioView({ onNoteCreated, onOpenSettings }: Uploa
return t("notes.upload.transcribingProvider", { provider: cloudTranscriptionProvider });
};
- const modeSelector = isSignedIn ? (
- <div className="flex items-center rounded-md border border-foreground/6 dark:border-white/6 bg-surface-1/30 dark:bg-white/[0.02] p-0.5 mb-3">
- <button
- onClick={() => {
- setCloudTranscriptionMode("openwhispr");
- setUseLocalWhisper(false);
- updateTranscriptionSettings({ useLocalWhisper: false });
- }}
- className={cn(
- "flex-1 flex items-center justify-center gap-1.5 h-7 rounded text-xs font-medium transition-colors duration-150",
- isOpenWhisprCloud
- ? "bg-foreground/[0.06] dark:bg-white/8 text-foreground/70"
- : "text-foreground/30 hover:text-foreground/50"
- )}
- >
- <Cloud size={11} />
- {t("notes.upload.openwhisprCloud")}
- </button>
- <button
- onClick={() => setCloudTranscriptionMode("byok")}
- className={cn(
- "flex-1 flex items-center justify-center gap-1.5 h-7 rounded text-xs font-medium transition-colors duration-150",
- !isOpenWhisprCloud
- ? "bg-foreground/[0.06] dark:bg-white/8 text-foreground/70"
- : "text-foreground/30 hover:text-foreground/50"
- )}
- >
- <Key size={11} />
- {t("notes.upload.custom")}
- </button>
- </div>
- ) : null;
-
- const modelPicker = showModelPicker ? (
- <Suspense fallback={null}>
- <TranscriptionModelPicker
- selectedCloudProvider={cloudTranscriptionProvider}
- onCloudProviderSelect={setCloudTranscriptionProvider}
- selectedCloudModel={cloudTranscriptionModel}
- onCloudModelSelect={setCloudTranscriptionModel}
- selectedLocalModel={localTranscriptionProvider === "nvidia" ? parakeetModel : whisperModel}
- onLocalModelSelect={(modelId) => {
- if (localTranscriptionProvider === "nvidia") {
- setParakeetModel(modelId);
- } else {
- setWhisperModel(modelId);
- }
- }}
- selectedLocalProvider={localTranscriptionProvider}
- onLocalProviderSelect={(id) => setLocalTranscriptionProvider(id as "whisper" | "nvidia")}
- useLocalWhisper={useLocalWhisper}
- onModeChange={(isLocal) => {
- setUseLocalWhisper(isLocal);
- updateTranscriptionSettings({ useLocalWhisper: isLocal });
- if (isLocal) setCloudTranscriptionMode("byok");
- }}
- cloudTranscriptionBaseUrl={cloudTranscriptionBaseUrl}
- setCloudTranscriptionBaseUrl={setCloudTranscriptionBaseUrl}
- variant="settings"
- />
- </Suspense>
- ) : null;
-
return (
<div className="flex flex-col items-center h-full overflow-y-auto px-6">
<div
- className={cn("w-full max-w-md shrink-0", shouldCenter ? "my-auto" : "pt-4 pb-8")}
+ className="w-full max-w-md shrink-0 my-auto"
style={{ animation: "float-up 0.4s ease-out" }}
>
- {showSetup && (
- <div className="mb-6" style={{ animation: "float-up 0.3s ease-out" }}>
- <div className="flex flex-col items-center mb-5">
- <div className="w-10 h-10 rounded-[10px] bg-linear-to-b from-primary/10 to-primary/[0.03] dark:from-primary/15 dark:to-primary/5 border border-primary/15 dark:border-primary/20 flex items-center justify-center mb-3">
- <Upload size={17} strokeWidth={1.5} className="text-primary/50" />
- </div>
- <h2 className="text-xs font-semibold text-foreground mb-1">
- {t("notes.upload.setupTitle")}
- </h2>
- <p className="text-xs text-foreground/30 text-center leading-relaxed max-w-[280px]">
- {t("notes.upload.setupDescription")}
- </p>
- </div>
-
- {modeSelector}
- {modelPicker}
-
- <div className="flex justify-center mt-4">
- <Button
- variant="default"
- size="sm"
- onClick={dismissSetup}
- className="h-8 text-xs px-6"
- >
- {t("notes.upload.continue")}
- </Button>
- </div>
-
- <div className="h-px bg-foreground/5 dark:bg-white/5 my-5" />
- </div>
- )}
-
<div className="max-w-[320px] mx-auto">
{state === "idle" && providerReady === false && (
- <NoProviderView t={t} onOpenSettings={() => onOpenSettings?.("transcription")} />
+ <NoProviderView t={t} onOpenSettings={() => onOpenSettings?.("uploadTranscription")} />
)}
{state === "idle" && providerReady !== false && (
@@ -637,6 +518,7 @@ export default function UploadAudioView({ onNoteCreated, onOpenSettings }: Uploa
getTranscribingLabel={getTranscribingLabel}
file={file}
chunkProgress={chunkProgress}
+ onCancel={cancelTranscription}
/>
)}
@@ -657,28 +539,6 @@ export default function UploadAudioView({ onNoteCreated, onOpenSettings }: Uploa
<ErrorView t={t} error={error} reset={reset} handleTranscribe={handleTranscribe} />
)}
</div>
-
- {!showSetup && (state === "idle" || state === "selected") && (
- <div className="mx-auto mt-5" style={{ maxWidth: advancedOpen ? "448px" : "320px" }}>
- <button
- onClick={() => setAdvancedOpen(!advancedOpen)}
- className="flex items-center gap-1.5 text-xs text-foreground/25 hover:text-foreground/40 transition-colors mx-auto"
- >
- <ChevronRight
- size={10}
- className={cn("transition-transform duration-200", advancedOpen && "rotate-90")}
- />
- {t("notes.upload.transcriptionSettings")}
- </button>
-
- {advancedOpen && (
- <div className="mt-3" style={{ animation: "float-up 0.2s ease-out" }}>
- {modeSelector}
- {modelPicker}
- </div>
- )}
- </div>
- )}
</div>
<Dialog open={showNewFolderDialog} onOpenChange={setShowNewFolderDialog}>
@@ -1046,6 +906,7 @@ interface TranscribingViewProps {
getTranscribingLabel: () => string;
file: { name: string; path: string; size: string; sizeBytes: number } | null;
chunkProgress: { chunksTotal: number; chunksCompleted: number } | null;
+ onCancel: () => void;
}
function TranscribingView({
@@ -1054,6 +915,7 @@ function TranscribingView({
getTranscribingLabel,
file,
chunkProgress,
+ onCancel,
}: TranscribingViewProps) {
const hasChunkInfo = chunkProgress !== null && chunkProgress.chunksTotal > 0;
@@ -1092,6 +954,14 @@ function TranscribingView({
{!hasChunkInfo && file ? (
<p className="text-xs text-foreground/20 mt-1 truncate max-w-50">{file.name}</p>
) : null}
+ <Button
+ variant="ghost"
+ size="sm"
+ onClick={onCancel}
+ className="h-7 text-xs text-foreground/30 mt-4"
+ >
+ {t("notes.upload.cancelTranscription")}
+ </Button>
</div>
);
}
diff --git a/src/components/onboarding/FinishStep.tsx b/src/components/onboarding/FinishStep.tsx
new file mode 100644
index 000000000..1e27fd361
--- /dev/null
+++ b/src/components/onboarding/FinishStep.tsx
@@ -0,0 +1,192 @@
+import { useState } from "react";
+import { useTranslation } from "react-i18next";
+import { Check, ExternalLink, Settings, Stethoscope } from "lucide-react";
+import { Button } from "../ui/button";
+import ApiKeyInput from "../ui/ApiKeyInput";
+import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "../ui/select";
+import { getTranscriptionProviders } from "../../models/ModelRegistry";
+import { useSettingsStore } from "../../stores/settingsStore";
+import { USE_CASE_IDS } from "./useCases";
+
+const CORTI_SIGNUP_URL =
+ "https://www.corti.ai/?utm_source=referral&utm_content=&utm_campaign=openwhispr";
+
+interface FinishStepProps {
+ isCloudUser: boolean;
+ useCases: string[];
+ onFinish: (openSettings: boolean) => void;
+ isFinishing: boolean;
+}
+
+export default function FinishStep({
+ isCloudUser,
+ useCases,
+ onFinish,
+ isFinishing,
+}: FinishStepProps) {
+ const { t } = useTranslation();
+ const setCloudTranscriptionForAllScopes = useSettingsStore(
+ (s) => s.setCloudTranscriptionForAllScopes
+ );
+ const cortiClientId = useSettingsStore((s) => s.cortiClientId);
+ const setCortiClientId = useSettingsStore((s) => s.setCortiClientId);
+ const cortiClientSecret = useSettingsStore((s) => s.cortiClientSecret);
+ const setCortiClientSecret = useSettingsStore((s) => s.setCortiClientSecret);
+ const cortiEnvironment = useSettingsStore((s) => s.cortiEnvironment);
+ const setCortiEnvironment = useSettingsStore((s) => s.setCortiEnvironment);
+
+ // The Corti pitch only renders once the Corti provider ships in the model
+ // registry (separate PR) — until then healthcare users see the default finish.
+ const cortiProvider = getTranscriptionProviders().find((p) => p.id === "corti");
+ const [showCorti, setShowCorti] = useState(
+ !!cortiProvider && useCases.includes(USE_CASE_IDS.healthcare)
+ );
+ const hasCortiCredentials =
+ cortiClientId.trim().length > 0 && cortiClientSecret.trim().length > 0;
+
+ const startWithCorti = () => {
+ setCloudTranscriptionForAllScopes({
+ useLocalWhisper: false,
+ cloudTranscriptionMode: "byok",
+ cloudTranscriptionProvider: "corti",
+ cloudTranscriptionModel: cortiProvider?.models[0]?.id,
+ });
+ onFinish(false);
+ };
+
+ if (showCorti) {
+ return (
+ <div className="space-y-4">
+ <div className="text-center space-y-0.5">
+ <div className="w-12 h-12 bg-primary/10 rounded-full flex items-center justify-center mx-auto mb-3">
+ <Stethoscope className="w-6 h-6 text-primary" />
+ </div>
+ <h2 className="text-lg font-semibold text-foreground tracking-tight">
+ {t("onboarding.finish.corti.title")}
+ </h2>
+ <p className="text-xs text-muted-foreground">
+ {t("onboarding.finish.corti.description")}
+ </p>
+ </div>
+
+ <div className="flex items-center justify-between gap-3 rounded-md border border-border bg-surface-1 p-3">
+ <button
+ onClick={() => window.electronAPI?.openExternal?.(CORTI_SIGNUP_URL)}
+ className="inline-flex items-center gap-1 text-xs font-medium text-link hover:underline"
+ >
+ {t("onboarding.finish.corti.createAccount")}
+ <ExternalLink className="w-3 h-3" />
+ </button>
+ <span className="inline-flex items-center px-2 py-0.5 text-[11px] font-medium rounded bg-success/10 text-success shrink-0">
+ {t("onboarding.finish.corti.creditBadge")}
+ </span>
+ </div>
+
+ <ol className="list-decimal list-inside space-y-0.5 px-1 text-xs text-muted-foreground">
+ <li>{t("onboarding.finish.corti.step1")}</li>
+ <li>{t("onboarding.finish.corti.step2")}</li>
+ <li>{t("onboarding.finish.corti.step3")}</li>
+ </ol>
+
+ <div className="space-y-2">
+ <div className="space-y-1.5">
+ <label className="text-xs font-medium text-foreground">
+ {t("transcription.corti.clientId")}
+ </label>
+ <ApiKeyInput apiKey={cortiClientId} setApiKey={setCortiClientId} label="" helpText="" />
+ </div>
+ <div className="space-y-1.5">
+ <label className="text-xs font-medium text-foreground">
+ {t("transcription.corti.clientSecret")}
+ </label>
+ <ApiKeyInput
+ apiKey={cortiClientSecret}
+ setApiKey={setCortiClientSecret}
+ label=""
+ helpText=""
+ />
+ </div>
+ <div className="space-y-1.5">
+ <label className="text-xs font-medium text-foreground">
+ {t("transcription.corti.environment")}
+ </label>
+ <Select value={cortiEnvironment} onValueChange={setCortiEnvironment}>
+ <SelectTrigger className="h-8 text-sm">
+ <SelectValue />
+ </SelectTrigger>
+ <SelectContent>
+ <SelectItem value="us">US</SelectItem>
+ <SelectItem value="eu">EU</SelectItem>
+ </SelectContent>
+ </Select>
+ <p className="text-xs text-muted-foreground/70">
+ {t("onboarding.finish.corti.regionHint")}
+ </p>
+ </div>
+ </div>
+
+ <div className="flex items-center justify-center gap-2">
+ <Button
+ variant="outline"
+ onClick={() => setShowCorti(false)}
+ disabled={isFinishing}
+ className="h-8 px-5 rounded-full text-xs"
+ >
+ {t("onboarding.finish.corti.skip")}
+ </Button>
+ <Button
+ onClick={startWithCorti}
+ disabled={isFinishing || !hasCortiCredentials}
+ className="h-8 px-6 rounded-full text-xs"
+ >
+ <Check className="w-3.5 h-3.5" />
+ {t("onboarding.finish.corti.useCorti")}
+ </Button>
+ </div>
+ </div>
+ );
+ }
+
+ return (
+ <div className="space-y-4">
+ <div className="text-center space-y-0.5">
+ <div className="w-12 h-12 bg-green-500/10 rounded-full flex items-center justify-center mx-auto mb-3">
+ <Check className="w-6 h-6 text-green-500" />
+ </div>
+ <h2 className="text-lg font-semibold text-foreground tracking-tight">
+ {t("onboarding.finish.title")}
+ </h2>
+ <p className="text-xs text-muted-foreground">
+ {isCloudUser
+ ? t("onboarding.finish.cloudDescription")
+ : t("onboarding.finish.localDescription")}
+ </p>
+ </div>
+
+ <p className="text-xs text-muted-foreground text-center">
+ {t("onboarding.finish.cleanupNote")}
+ </p>
+
+ <div className="flex items-center justify-center gap-2">
+ <Button
+ variant="outline"
+ onClick={() => onFinish(true)}
+ disabled={isFinishing}
+ className="h-8 px-5 rounded-full text-xs"
+ >
+ <Settings className="w-3.5 h-3.5" />
+ {t("onboarding.finish.openSettings")}
+ </Button>
+ <Button
+ variant="success"
+ onClick={() => onFinish(false)}
+ disabled={isFinishing}
+ className="h-8 px-6 rounded-full text-xs"
+ >
+ <Check className="w-3.5 h-3.5" />
+ {t("onboarding.finish.skipForNow")}
+ </Button>
+ </div>
+ </div>
+ );
+}
diff --git a/src/components/onboarding/MeetingSetupStep.tsx b/src/components/onboarding/MeetingSetupStep.tsx
new file mode 100644
index 000000000..542e30335
--- /dev/null
+++ b/src/components/onboarding/MeetingSetupStep.tsx
@@ -0,0 +1,99 @@
+import { useCallback } from "react";
+import { useTranslation } from "react-i18next";
+import { MeetingNotificationCard } from "../MeetingNotificationCard";
+import { HotkeyInput } from "../ui/HotkeyInput";
+import { useHotkeyRegistration } from "../../hooks/useHotkeyRegistration";
+import { validateHotkeyForSlot } from "../../utils/hotkeyValidation";
+
+interface MeetingSetupStepProps {
+ meetingKey: string;
+ setMeetingKey: (key: string) => void;
+ dictationKey: string;
+}
+
+export default function MeetingSetupStep({
+ meetingKey,
+ setMeetingKey,
+ dictationKey,
+}: MeetingSetupStepProps) {
+ const { t } = useTranslation();
+
+ const meetingRegisterFn = useCallback(async (hotkey: string) => {
+ const result = await window.electronAPI?.registerMeetingHotkey?.(hotkey);
+ return result ?? { success: false, message: "Electron API unavailable" };
+ }, []);
+
+ const { registerHotkey: registerMeetingHotkey, isRegistering } = useHotkeyRegistration({
+ onSuccess: (registeredHotkey) => {
+ setMeetingKey(registeredHotkey);
+ },
+ showSuccessToast: false,
+ showErrorToast: true,
+ registerFn: meetingRegisterFn,
+ });
+
+ const validateMeetingHotkey = useCallback(
+ (hotkey: string) =>
+ validateHotkeyForSlot(hotkey, { "settingsPage.general.hotkey.title": dictationKey }, t),
+ [dictationKey, t]
+ );
+
+ return (
+ <div className="space-y-4">
+ <div className="text-center space-y-0.5">
+ <h2 className="text-lg font-semibold text-foreground tracking-tight">
+ {t("onboarding.meeting.title")}
+ </h2>
+ <p className="text-xs text-muted-foreground">{t("onboarding.meeting.description")}</p>
+ </div>
+
+ <div className="space-y-2">
+ {/* A faithful preview of the real notification, framed like a desktop corner */}
+ <div className="relative overflow-hidden rounded-lg border border-border-subtle bg-gradient-to-br from-surface-2/50 via-surface-1 to-primary/5 px-4 pt-4 pb-9">
+ <div className="pointer-events-none select-none">
+ <MeetingNotificationCard
+ title={t("onboarding.meeting.notification.title")}
+ body={t("onboarding.meeting.notification.body")}
+ startLabel={t("onboarding.meeting.notification.cta")}
+ className="ml-auto w-full max-w-[300px] shadow-xl"
+ />
+ </div>
+ </div>
+ <p className="px-2 text-center text-xs text-muted-foreground/80 leading-snug">
+ {t("onboarding.meeting.autoDetect")}
+ </p>
+ </div>
+
+ <div className="rounded-lg border border-border-subtle bg-surface-1 p-4">
+ <div className="mb-3">
+ <span className="text-xs font-medium text-muted-foreground uppercase tracking-wide">
+ {t("onboarding.meeting.hotkeyLabel")}
+ </span>
+ <p className="text-xs text-muted-foreground/70 mt-0.5">
+ {t("onboarding.meeting.hotkeyHint")}
+ </p>
+ </div>
+ <HotkeyInput
+ value={meetingKey}
+ onChange={async (newHotkey) => {
+ await registerMeetingHotkey(newHotkey);
+ }}
+ disabled={isRegistering}
+ validate={validateMeetingHotkey}
+ />
+ {meetingKey && (
+ <button
+ onClick={async () => {
+ await window.electronAPI?.registerMeetingHotkey?.("");
+ setMeetingKey("");
+ }}
+ disabled={isRegistering}
+ className="mt-2 text-xs text-muted-foreground/70 hover:text-foreground transition-colors disabled:opacity-50"
+ >
+ {t("settingsPage.general.meetingHotkey.clear")}
+ </button>
+ )}
+ </div>
+ </div>
+ );
+}
diff --git a/src/components/onboarding/UseCaseStep.tsx b/src/components/onboarding/UseCaseStep.tsx
new file mode 100644
index 000000000..90091c1dc
--- /dev/null
+++ b/src/components/onboarding/UseCaseStep.tsx
@@ -0,0 +1,66 @@
+import { useTranslation } from "react-i18next";
+import { Textarea } from "../ui/textarea";
+import OptionCard from "../ui/OptionCard";
+import { USE_CASE_OPTIONS } from "./useCases";
+
+interface UseCaseStepProps {
+ useCases: string[];
+ onUseCasesChange: (useCases: string[]) => void;
+ note: string;
+ onNoteChange: (note: string) => void;
+}
+
+export default function UseCaseStep({
+ useCases,
+ onUseCasesChange,
+ note,
+ onNoteChange,
+}: UseCaseStepProps) {
+ const { t } = useTranslation();
+
+ const toggleUseCase = (id: string) => {
+ onUseCasesChange(useCases.includes(id) ? useCases.filter((c) => c !== id) : [...useCases, id]);
+ };
+
+ return (
+ <div className="space-y-4">
+ <div className="text-center space-y-1">
+ <h2 className="text-lg font-semibold text-foreground tracking-tight">
+ {t("onboarding.useCase.title")}
+ </h2>
+ <p className="text-xs text-muted-foreground leading-relaxed max-w-md mx-auto">
+ {t("onboarding.useCase.description")}
+ </p>
+ </div>
+
+ <div className="space-y-1.5">
+ <p className="text-xs font-medium text-muted-foreground uppercase tracking-wide">
+ {t("onboarding.useCase.selectHint")}
+ </p>
+ {USE_CASE_OPTIONS.map(({ id, icon }) => (
+ <OptionCard
+ key={id}
+ icon={icon}
+ title={t(`onboarding.useCase.options.${id}.title`)}
+ description={t(`onboarding.useCase.options.${id}.description`)}
+ selected={useCases.includes(id)}
+ onSelect={() => toggleUseCase(id)}
+ />
+ ))}
+ </div>
+
+ <div className="space-y-1.5">
+ <label className="block text-xs font-medium text-muted-foreground">
+ {t("onboarding.useCase.noteLabel")}
+ </label>
+ <Textarea
+ rows={2}
+ value={note}
+ onChange={(e) => onNoteChange(e.target.value)}
+ placeholder={t("onboarding.useCase.notePlaceholder")}
+ className="text-sm resize-none"
+ />
+ </div>
+ </div>
+ );
+}
diff --git a/src/components/onboarding/useCases.ts b/src/components/onboarding/useCases.ts
new file mode 100644
index 000000000..88bae3066
--- /dev/null
+++ b/src/components/onboarding/useCases.ts
@@ -0,0 +1,26 @@
+import { Bot, FileAudio, Languages, LucideIcon, PenLine, Stethoscope, Users } from "lucide-react";
+
+export const USE_CASE_IDS = {
+ dictation: "dictation",
+ meetings: "meetings",
+ healthcare: "healthcare",
+ translation: "translation",
+ ai: "ai",
+ upload: "upload",
+} as const;
+
+export type UseCaseId = (typeof USE_CASE_IDS)[keyof typeof USE_CASE_IDS];
+
+export interface UseCaseOption {
+ id: UseCaseId;
+ icon: LucideIcon;
+}
+
+export const USE_CASE_OPTIONS: UseCaseOption[] = [
+ { id: USE_CASE_IDS.dictation, icon: PenLine },
+ { id: USE_CASE_IDS.meetings, icon: Users },
+ { id: USE_CASE_IDS.healthcare, icon: Stethoscope },
+ { id: USE_CASE_IDS.translation, icon: Languages },
+ { id: USE_CASE_IDS.ai, icon: Bot },
+ { id: USE_CASE_IDS.upload, icon: FileAudio },
+];
diff --git a/src/components/settings/MeetingSettings.tsx b/src/components/settings/MeetingSettings.tsx
index 5794dbc98..3f3bc2da9 100644
--- a/src/components/settings/MeetingSettings.tsx
+++ b/src/components/settings/MeetingSettings.tsx
@@ -8,6 +8,7 @@ import { Toggle } from "../ui/toggle";
import TranscriptionModelPicker from "../TranscriptionModelPicker";
import SelfHostedPanel from "../SelfHostedPanel";
import type { InferenceMode } from "../../types/electron";
+import { useStartOnboarding } from "../../hooks/useStartOnboarding";
export function MeetingSpeakerDetectionRow() {
const { t } = useTranslation();
@@ -26,15 +27,6 @@ export function MeetingSpeakerDetectionRow() {
const noop = () => {};
-function useStartOnboarding() {
- return useCallback(() => {
- localStorage.setItem("pendingCloudMigration", "true");
- localStorage.setItem("onboardingCurrentStep", "0");
- localStorage.removeItem("onboardingCompleted");
- window.location.reload();
- }, []);
-}
-
export function MeetingTranscriptionPanel() {
const { t } = useTranslation();
const startOnboarding = useStartOnboarding();
diff --git a/src/components/settings/UploadSettings.tsx b/src/components/settings/UploadSettings.tsx
new file mode 100644
index 000000000..8fe3702cf
--- /dev/null
+++ b/src/components/settings/UploadSettings.tsx
@@ -0,0 +1,113 @@
+import { useCallback } from "react";
+import { useTranslation } from "react-i18next";
+import { Cloud, Key, Cpu } from "lucide-react";
+import { useSettingsStore } from "../../stores/settingsStore";
+import { InferenceModeSelector } from "../ui/SettingsSection";
+import type { InferenceModeOption } from "../ui/SettingsSection";
+import TranscriptionModelPicker from "../TranscriptionModelPicker";
+import type { InferenceMode } from "../../types/electron";
+import { useStartOnboarding } from "../../hooks/useStartOnboarding";
+
+export function UploadTranscriptionPanel() {
+ const { t } = useTranslation();
+ const startOnboarding = useStartOnboarding();
+
+ const {
+ isSignedIn,
+ uploadTranscriptionMode,
+ setUploadTranscriptionMode,
+ setUploadUseLocalWhisper,
+ uploadWhisperModel,
+ setUploadWhisperModel,
+ uploadLocalTranscriptionProvider,
+ setUploadLocalTranscriptionProvider,
+ uploadParakeetModel,
+ setUploadParakeetModel,
+ uploadCloudTranscriptionProvider,
+ setUploadCloudTranscriptionProvider,
+ uploadCloudTranscriptionModel,
+ setUploadCloudTranscriptionModel,
+ uploadCloudTranscriptionBaseUrl,
+ setUploadCloudTranscriptionBaseUrl,
+ setUploadCloudTranscriptionMode,
+ } = useSettingsStore();
+
+ const transcriptionModes: InferenceModeOption[] = [
+ {
+ id: "openwhispr",
+ label: t("settingsPage.transcription.modes.openwhispr"),
+ description: t("settingsPage.transcription.modes.openwhisprDesc"),
+ icon: <Cloud className="w-4 h-4" />,
+ disabled: !isSignedIn,
+ badge: !isSignedIn ? t("common.freeAccountRequired") : undefined,
+ },
+ {
+ id: "providers",
+ label: t("settingsPage.transcription.modes.providers"),
+ description: t("settingsPage.transcription.modes.providersDesc"),
+ icon: <Key className="w-4 h-4" />,
+ },
+ {
+ id: "local",
+ label: t("settingsPage.transcription.modes.local"),
+ description: t("settingsPage.transcription.modes.localDesc"),
+ icon: <Cpu className="w-4 h-4" />,
+ },
+ ];
+
+ const handleTranscriptionModeSelect = (mode: InferenceMode) => {
+ if (mode === "openwhispr" && !isSignedIn) {
+ startOnboarding();
+ return;
+ }
+ if (mode === uploadTranscriptionMode) return;
+ setUploadTranscriptionMode(mode);
+ setUploadUseLocalWhisper(mode === "local");
+ setUploadCloudTranscriptionMode(mode === "openwhispr" ? "openwhispr" : "byok");
+ };
+
+ const handleLocalTranscriptionModelSelect = useCallback(
+ (modelId: string) => {
+ if (uploadLocalTranscriptionProvider === "nvidia") {
+ setUploadParakeetModel(modelId);
+ } else {
+ setUploadWhisperModel(modelId);
+ }
+ },
+ [uploadLocalTranscriptionProvider, setUploadParakeetModel, setUploadWhisperModel]
+ );
+
+ const renderTranscriptionPicker = (mode: "cloud" | "local") => (
+ <TranscriptionModelPicker
+ selectedCloudProvider={uploadCloudTranscriptionProvider}
+ onCloudProviderSelect={setUploadCloudTranscriptionProvider}
+ selectedCloudModel={uploadCloudTranscriptionModel}
+ onCloudModelSelect={setUploadCloudTranscriptionModel}
+ selectedLocalModel={
+ uploadLocalTranscriptionProvider === "nvidia" ? uploadParakeetModel : uploadWhisperModel
+ }
+ onLocalModelSelect={handleLocalTranscriptionModelSelect}
+ selectedLocalProvider={uploadLocalTranscriptionProvider}
+ onLocalProviderSelect={setUploadLocalTranscriptionProvider}
+ useLocalWhisper={mode === "local"}
+ onModeChange={() => {}}
+ mode={mode}
+ cloudTranscriptionBaseUrl={uploadCloudTranscriptionBaseUrl}
+ setCloudTranscriptionBaseUrl={setUploadCloudTranscriptionBaseUrl}
+ variant="settings"
+ />
+ );
+
+ return (
+ <div className="space-y-3">
+ <InferenceModeSelector
+ modes={transcriptionModes}
+ activeMode={uploadTranscriptionMode}
+ onSelect={handleTranscriptionModeSelect}
+ />
+
+ {uploadTranscriptionMode === "providers" && renderTranscriptionPicker("cloud")}
+ {uploadTranscriptionMode === "local" && renderTranscriptionPicker("local")}
+ </div>
+ );
+}
diff --git a/src/components/ui/MicrophoneSettings.tsx b/src/components/ui/MicrophoneSettings.tsx
index 129b399e9..215f5d3bc 100644
--- a/src/components/ui/MicrophoneSettings.tsx
+++ b/src/components/ui/MicrophoneSettings.tsx
@@ -48,11 +48,16 @@ export const MicrophoneSettings: React.FC<MicrophoneSettingsProps> = ({
setError(null);
try {
- // Request permission first to get device labels
- const stream = await navigator.mediaDevices.getUserMedia({ audio: true });
- stream.getTracks().forEach((track) => track.stop());
+ // Acquiring the mic just to read labels interrupts other audio (pauses
+ // music on macOS), so only do it when labels are missing (no permission yet).
+ let allDevices = await navigator.mediaDevices.enumerateDevices();
+ const hasLabels = allDevices.some((d) => d.kind === "audioinput" && d.label);
+ if (!hasLabels) {
+ const stream = await navigator.mediaDevices.getUserMedia({ audio: true });
+ stream.getTracks().forEach((track) => track.stop());
+ allDevices = await navigator.mediaDevices.enumerateDevices();
+ }
- const allDevices = await navigator.mediaDevices.enumerateDevices();
const audioInputs = allDevices
.filter((d) => d.kind === "audioinput")
.map((d) => ({
diff --git a/src/components/ui/OptionCard.tsx b/src/components/ui/OptionCard.tsx
new file mode 100644
index 000000000..6e8f63776
--- /dev/null
+++ b/src/components/ui/OptionCard.tsx
@@ -0,0 +1,64 @@
+import { Check, LucideIcon } from "lucide-react";
+import { cn } from "../lib/utils";
+
+interface OptionCardProps {
+ icon: LucideIcon;
+ title: string;
+ description: string;
+ selected: boolean;
+ onSelect: () => void;
+ disabled?: boolean;
+}
+
+export default function OptionCard({
+ icon: Icon,
+ title,
+ description,
+ selected,
+ onSelect,
+ disabled = false,
+}: OptionCardProps) {
+ return (
+ <button
+ type="button"
+ onClick={onSelect}
+ disabled={disabled}
+ aria-pressed={selected}
+ className={cn(
+ "group relative w-full rounded-md p-3 text-left transition-colors duration-150",
+ "border focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background",
+ selected
+ ? "bg-primary/5 border-primary/40 dark:bg-primary/10 dark:border-primary/30"
+ : "bg-surface-1 border-border hover:bg-surface-2 hover:border-border-hover",
+ disabled && "cursor-not-allowed border-border-subtle bg-muted text-muted-foreground"
+ )}
+ >
+ <div className="flex items-center gap-3">
+ <div
+ className={cn(
+ "w-8 h-8 rounded-md flex items-center justify-center shrink-0 transition-colors duration-150",
+ selected
+ ? "bg-primary/15 dark:bg-primary/20"
+ : "bg-primary/10 dark:bg-primary/15 group-hover:bg-primary/15"
+ )}
+ >
+ <Icon className="w-4 h-4 text-primary" />
+ </div>
+
+ <div className="flex-1 min-w-0">
+ <h3 className="text-xs font-medium text-foreground">{title}</h3>
+ <p className="text-xs text-muted-foreground leading-snug mt-0.5">{description}</p>
+ </div>
+
+ <div
+ className={cn(
+ "w-4 h-4 rounded-sm border flex items-center justify-center shrink-0 transition-colors duration-150",
+ selected ? "bg-primary border-primary" : "border-border-hover bg-transparent"
+ )}
+ >
+ {selected && <Check className="w-3 h-3 text-primary-foreground" strokeWidth={3} />}
+ </div>
+ </div>
+ </button>
+ );
+}
diff --git a/src/components/ui/PermissionsSection.tsx b/src/components/ui/PermissionsSection.tsx
index bfa52fc6c..c9d9e84fd 100644
--- a/src/components/ui/PermissionsSection.tsx
+++ b/src/components/ui/PermissionsSection.tsx
@@ -12,9 +12,15 @@ interface PermissionsSectionProps {
systemAudio: Pick<SystemAudioAccessResult, "granted" | "mode" | "supportsOnboardingGrant"> & {
request: () => Promise<boolean>;
};
+ /** Badge system audio as "Recommended" (e.g. when the user came for meeting notes). */
+ systemAudioRecommended?: boolean;
}
-export default function PermissionsSection({ permissions, systemAudio }: PermissionsSectionProps) {
+export default function PermissionsSection({
+ permissions,
+ systemAudio,
+ systemAudioRecommended = false,
+}: PermissionsSectionProps) {
const { t } = useTranslation();
const platform = permissions.pasteToolsInfo?.platform;
const isMacOS = platform === "darwin";
@@ -57,7 +63,11 @@ export default function PermissionsSection({ permissions, systemAudio }: Permiss
granted={systemAudio.granted}
onRequest={systemAudio.request}
buttonText={t("onboarding.permissions.grantAccess")}
- badge={t("onboarding.permissions.optional")}
+ badge={
+ systemAudioRecommended
+ ? t("onboarding.permissions.recommended")
+ : t("onboarding.permissions.optional")
+ }
/>
)}
</div>
diff --git a/src/components/ui/StepProgress.tsx b/src/components/ui/StepProgress.tsx
index e4fa91a25..f2718b349 100644
--- a/src/components/ui/StepProgress.tsx
+++ b/src/components/ui/StepProgress.tsx
@@ -14,7 +14,7 @@ interface StepProgressProps {
export default function StepProgress({ steps, currentStep, className = "" }: StepProgressProps) {
return (
- <div className={`flex items-center justify-center gap-0.5 ${className}`}>
+ <div className={`flex items-center justify-center gap-0.5 whitespace-nowrap ${className}`}>
{steps.map((step, index) => {
const Icon = step.icon;
const isActive = index === currentStep;
diff --git a/src/helpers/audioManager.js b/src/helpers/audioManager.js
index 03d1c0c07..20d4d24cf 100644
--- a/src/helpers/audioManager.js
+++ b/src/helpers/audioManager.js
@@ -12,10 +12,15 @@ import {
} from "./localSpeechGate";
import { reacquireIfDead } from "./micTrackHealth";
import { shouldSaveDiscardedRecording } from "./discardedRecording";
-import { getSettings, getEffectiveCleanupModel, isCloudCleanupMode } from "../stores/settingsStore";
+import {
+ getSettings,
+ getEffectiveCleanupModel,
+ isCloudCleanupMode,
+ isCloudDictationAgentMode,
+} from "../stores/settingsStore";
import { shouldSkipTranscriptionApiKey } from "./transcriptionAuth";
import { detectAgentName } from "../config/agentDetection";
-import { resolveDictationRouteKind } from "./dictationRouting";
+import { resolveDictationRouteKind, resolveDictationAgentReachability } from "./dictationRouting";
import { resolvePrompt } from "../config/prompts";
import { syncService } from "../services/SyncService.js";
import { matchesDictionaryPrompt } from "../utils/dictionaryEchoFilter.js";
@@ -24,11 +29,29 @@ import { getDictionaryHintWords } from "../utils/snippets";
const REASONING_CACHE_TTL = 30000; // 30 seconds
const REALTIME_MODELS = new Set(["gpt-4o-mini-transcribe", "gpt-4o-transcribe"]);
+function dictationAgentReachable(settings) {
+ return resolveDictationAgentReachability({
+ useDictationAgent: settings.useDictationAgent,
+ dictationAgentModel: settings.dictationAgentModel,
+ isCloudAgent: isCloudDictationAgentMode(),
+ isSelfHostedAgent:
+ settings.dictationAgentMode === "self-hosted" && !!settings.dictationAgentRemoteUrl?.trim(),
+ });
+}
+
function resolveReasoningRoute(text, settings, agentName, voiceAgentRequested) {
const cleanupReachable =
!!settings.useCleanupModel && (!!settings.cleanupModel?.trim() || isCloudCleanupMode());
const agentModel = settings.dictationAgentModel?.trim() || "";
- const agentReachable = !!settings.useDictationAgent && agentModel.length > 0;
+ const isCloudAgent = isCloudDictationAgentMode();
+ const isSelfHostedAgent =
+ settings.dictationAgentMode === "self-hosted" && !!settings.dictationAgentRemoteUrl?.trim();
+ const agentReachable = resolveDictationAgentReachability({
+ useDictationAgent: settings.useDictationAgent,
+ dictationAgentModel: agentModel,
+ isCloudAgent,
+ isSelfHostedAgent,
+ });
const kind = resolveDictationRouteKind({
cleanupReachable,
@@ -37,9 +60,9 @@ function resolveReasoningRoute(text, settings, agentName, voiceAgentRequested) {
voiceAgentRequested,
});
if (kind === "agent") {
- const provider = settings.dictationAgentProvider?.trim() || undefined;
- const isSelfHostedAgent =
- settings.dictationAgentMode === "self-hosted" && !!settings.dictationAgentRemoteUrl;
+ const provider = isCloudAgent
+ ? "openwhispr"
+ : settings.dictationAgentProvider?.trim() || undefined;
const isCustomAgent = settings.dictationAgentMode === "providers" && provider === "custom";
return {
kind: "agent",
@@ -1061,8 +1084,7 @@ registerProcessor("pcm-streaming-processor", PCMStreamingProcessor);
}
const s = getSettings();
- const useReasoning =
- !!s.useCleanupModel || (!!s.useDictationAgent && !!s.dictationAgentModel?.trim());
+ const useReasoning = !!s.useCleanupModel || dictationAgentReachable(s);
const now = Date.now();
const cacheValid =
this.reasoningAvailabilityCache &&
@@ -1156,9 +1178,8 @@ registerProcessor("pcm-streaming-processor", PCMStreamingProcessor);
const isCloud = isCloudCleanupMode();
const settings = getSettings();
const cleanupProvider = settings.cleanupProvider || "auto";
- const hasAgentModel = !!settings.dictationAgentModel?.trim();
const cleanupReachable = !!settings.useCleanupModel && (!!cleanupModel || isCloud);
- const agentReachable = !!settings.useDictationAgent && hasAgentModel;
+ const agentReachable = dictationAgentReachable(settings);
const agentName =
typeof window !== "undefined" && window.localStorage
? localStorage.getItem("agentName") || null
@@ -2797,7 +2818,12 @@ registerProcessor("pcm-streaming-processor", PCMStreamingProcessor);
if (finalText && !this.skipReasoning) {
const reasoningStart = performance.now();
const agentName = localStorage.getItem("agentName") || null;
- const route = resolveReasoningRoute(finalText, stSettings, agentName);
+ const route = resolveReasoningRoute(
+ finalText,
+ stSettings,
+ agentName,
+ this.voiceAgentRequested
+ );
const cleanupCloudMode = stSettings.cleanupCloudMode || "openwhispr";
try {
diff --git a/src/helpers/clipboard.js b/src/helpers/clipboard.js
index cd3bbaf6b..11b31fdae 100644
--- a/src/helpers/clipboard.js
+++ b/src/helpers/clipboard.js
@@ -54,11 +54,11 @@ const PASTE_DELAYS = {
};
const RESTORE_DELAYS = {
- darwin: 450,
- win32_nircmd: 80,
- win32_pwsh: 80,
- linux: 200,
- linux_kde_wayland: 600,
+ darwin: 2000,
+ win32_nircmd: 500,
+ win32_pwsh: 500,
+ linux: 800,
+ linux_kde_wayland: 1200,
};
function writeClipboardInRenderer(webContents, text) {
@@ -83,6 +83,7 @@ class ClipboardManager {
this.linuxFastPasteChecked = false;
this.portalDenied = false;
this._kwinScriptPath = null;
+ this.pasteQueue = Promise.resolve();
process.on("exit", () => {
if (this._kwinScriptPath) {
@@ -249,7 +250,7 @@ class ClipboardManager {
this.nircmdPath = nircmdPath;
return nircmdPath;
}
- } catch (error) {}
+ } catch {}
}
this.safeLog("⚠️ nircmd.exe not found, will use PowerShell fallback");
@@ -557,11 +558,10 @@ class ClipboardManager {
// Try user journal first; fall back to system journal when
// /var/log/journal/ is missing and entries land there instead.
for (const prefix of [["--user"], []]) {
- const journalResult = spawnSync(
- "journalctl",
- [...prefix, ...baseJournalArgs],
- { timeout: 1000, stdio: "pipe" }
- );
+ const journalResult = spawnSync("journalctl", [...prefix, ...baseJournalArgs], {
+ timeout: 1000,
+ stdio: "pipe",
+ });
if (journalResult.status === 0) {
const lines = journalResult.stdout.toString().split("\n");
for (let i = lines.length - 1; i >= 0; i--) {
@@ -632,6 +632,37 @@ class ClipboardManager {
this.safeLog("🔄 Clipboard restored");
}
+ async _restoreClipboardAfterDelay(original, { delayMs, expectedText, restore } = {}) {
+ if (!original) return;
+ await new Promise((resolve) => setTimeout(resolve, delayMs));
+
+ if (typeof expectedText === "string") {
+ let currentText = null;
+ try {
+ currentText = clipboard.readText();
+ } catch {}
+
+ if (currentText !== expectedText) {
+ debugLogger.debug(
+ "Skipping clipboard restore because clipboard changed",
+ {
+ expectedLength: expectedText.length,
+ currentLength: typeof currentText === "string" ? currentText.length : null,
+ },
+ "clipboard"
+ );
+ return;
+ }
+ }
+
+ if (restore) {
+ restore();
+ return;
+ }
+
+ this._restoreClipboard(original);
+ }
+
safeLog(...args) {
if (process.env.NODE_ENV === "development") {
try {
@@ -671,6 +702,25 @@ class ClipboardManager {
}
async pasteText(text, options = {}) {
+ const previousPaste = this.pasteQueue.catch(() => {});
+ let markRestoreComplete;
+ const restoreGate = new Promise((resolve) => {
+ markRestoreComplete = resolve;
+ });
+
+ this.pasteQueue = previousPaste.then(() => restoreGate).catch(() => {});
+ await previousPaste;
+
+ try {
+ const result = await this._pasteText(text, options);
+ Promise.resolve(result?.restoreComplete).then(markRestoreComplete, markRestoreComplete);
+ } catch (error) {
+ markRestoreComplete();
+ throw error;
+ }
+ }
+
+ async _pasteText(text, options = {}) {
const startTime = Date.now();
const platform = process.platform;
let method = "unknown";
@@ -698,6 +748,8 @@ class ClipboardManager {
}
this.safeLog("📋 Text copied to clipboard:", text.substring(0, 50) + "...");
+ let pasteResult = { restoreComplete: Promise.resolve() };
+
if (platform === "darwin") {
method = this.resolveFastPasteBinary() ? "cgevent" : "applescript";
this.safeLog("🔍 Checking accessibility permissions for paste operation...");
@@ -707,7 +759,7 @@ class ClipboardManager {
this.safeLog("⚠️ No accessibility permissions - text copied to clipboard only");
if (allowClipboardFallback) {
this.safeLog("✅ Clipboard fallback used (manual paste required)");
- return;
+ return { restoreComplete: Promise.resolve() };
}
const errorMsg =
"Accessibility permissions required for automatic pasting. Text has been copied to clipboard - please paste manually with Cmd+V.";
@@ -716,12 +768,18 @@ class ClipboardManager {
this.safeLog("✅ Permissions granted, attempting to paste...");
try {
- await this.pasteMacOS(originalClipboard, options);
+ pasteResult = await this.pasteMacOS(originalClipboard, {
+ ...options,
+ expectedClipboardText: text,
+ });
} catch (firstError) {
this.safeLog("⚠️ First paste attempt failed, retrying...", firstError?.message);
clipboard.writeText(text);
await new Promise((r) => setTimeout(r, 200));
- await this.pasteMacOS(originalClipboard, options);
+ pasteResult = await this.pasteMacOS(originalClipboard, {
+ ...options,
+ expectedClipboardText: text,
+ });
}
} else if (platform === "win32") {
const winFastPaste = this.resolveWindowsFastPasteBinary();
@@ -731,11 +789,14 @@ class ClipboardManager {
const nircmdPath = this.getNircmdPath();
method = nircmdPath ? "nircmd" : "powershell";
}
- await this.pasteWindows(originalClipboard);
+ pasteResult = await this.pasteWindows(originalClipboard, { expectedClipboardText: text });
} else {
- method =
- (await this.pasteLinux(originalClipboard, { ...options, originalPrimary })) ||
- "linux-tools";
+ pasteResult = await this.pasteLinux(originalClipboard, {
+ ...options,
+ originalPrimary,
+ expectedClipboardText: text,
+ });
+ method = pasteResult?.method || "linux-tools";
}
this.safeLog("✅ Paste operation complete", {
@@ -744,6 +805,7 @@ class ClipboardManager {
elapsedMs: Date.now() - startTime,
textLength: text.length,
});
+ return pasteResult || { restoreComplete: Promise.resolve() };
} catch (error) {
this.safeLog("❌ Paste operation failed", {
platform,
@@ -784,23 +846,29 @@ class ClipboardManager {
if (code === 0) {
this.safeLog(`Text pasted successfully via ${useFastPaste ? "CGEvent" : "osascript"}`);
if (originalClipboard != null) {
- setTimeout(() => {
- this._restoreClipboard(originalClipboard);
- }, RESTORE_DELAYS.darwin);
+ resolve({
+ restoreComplete: this._restoreClipboardAfterDelay(originalClipboard, {
+ delayMs: RESTORE_DELAYS.darwin,
+ expectedText: options.expectedClipboardText,
+ }),
+ });
+ } else {
+ resolve({ restoreComplete: Promise.resolve() });
}
- resolve();
} else if (useFastPaste) {
this.safeLog(
code === 2
? "CGEvent binary lacks accessibility trust, falling back to osascript"
- : `CGEvent paste failed (code ${code}), falling back to osascript`
+ : `CGEvent paste failed (code ${code}), falling back to osascript`,
+ { stderr: errorOutput.trim() }
);
this.fastPasteChecked = true;
this.fastPastePath = null;
- this.pasteMacOSWithOsascript(originalClipboard).then(resolve).catch(reject);
+ this.pasteMacOSWithOsascript(originalClipboard, options).then(resolve).catch(reject);
} else {
this.accessibilityCache = { value: null, expiresAt: 0 };
- const errorMsg = `Paste failed (code ${code}). Text is copied to clipboard - please paste manually with Cmd+V.`;
+ const stderr = errorOutput.trim();
+ const errorMsg = `Paste failed (code ${code}${stderr ? `: ${stderr}` : ""}). Text is copied to clipboard - please paste manually with Cmd+V.`;
reject(new Error(errorMsg));
}
});
@@ -814,7 +882,7 @@ class ClipboardManager {
this.safeLog("CGEvent paste error, falling back to osascript");
this.fastPasteChecked = true;
this.fastPastePath = null;
- this.pasteMacOSWithOsascript(originalClipboard).then(resolve).catch(reject);
+ this.pasteMacOSWithOsascript(originalClipboard, options).then(resolve).catch(reject);
} else {
const errorMsg = `Paste command failed: ${error.message}. Text is copied to clipboard - please paste manually with Cmd+V.`;
reject(new Error(errorMsg));
@@ -833,7 +901,7 @@ class ClipboardManager {
});
}
- async pasteMacOSWithOsascript(originalClipboard) {
+ async pasteMacOSWithOsascript(originalClipboard, options = {}) {
return new Promise((resolve, reject) => {
const pasteProcess = spawn("osascript", [
"-e",
@@ -850,11 +918,15 @@ class ClipboardManager {
if (code === 0) {
this.safeLog("Text pasted successfully via osascript fallback");
if (originalClipboard != null) {
- setTimeout(() => {
- this._restoreClipboard(originalClipboard);
- }, RESTORE_DELAYS.darwin);
+ resolve({
+ restoreComplete: this._restoreClipboardAfterDelay(originalClipboard, {
+ delayMs: RESTORE_DELAYS.darwin,
+ expectedText: options.expectedClipboardText,
+ }),
+ });
+ } else {
+ resolve({ restoreComplete: Promise.resolve() });
}
- resolve();
} else {
this.accessibilityCache = { value: null, expiresAt: 0 };
const errorMsg = `Paste failed (code ${code}). Text is copied to clipboard - please paste manually with Cmd+V.`;
@@ -883,17 +955,17 @@ class ClipboardManager {
});
}
- async pasteWindows(originalClipboard) {
+ async pasteWindows(originalClipboard, options = {}) {
const fastPastePath = this.resolveWindowsFastPasteBinary();
if (fastPastePath) {
- return this.pasteWithFastPaste(fastPastePath, originalClipboard);
+ return this.pasteWithFastPaste(fastPastePath, originalClipboard, options);
}
- return this.pasteWithNircmdOrPowerShell(originalClipboard);
+ return this.pasteWithNircmdOrPowerShell(originalClipboard, options);
}
- async pasteWithFastPaste(fastPastePath, originalClipboard) {
+ async pasteWithFastPaste(fastPastePath, originalClipboard, options = {}) {
return new Promise((resolve, reject) => {
setTimeout(() => {
let hasTimedOut = false;
@@ -930,17 +1002,23 @@ class ClipboardManager {
output,
});
if (originalClipboard != null) {
- setTimeout(() => {
- this._restoreClipboard(originalClipboard);
- }, RESTORE_DELAYS.win32_nircmd);
+ resolve({
+ restoreComplete: this._restoreClipboardAfterDelay(originalClipboard, {
+ delayMs: RESTORE_DELAYS.win32_nircmd,
+ expectedText: options.expectedClipboardText,
+ }),
+ });
+ } else {
+ resolve({ restoreComplete: Promise.resolve() });
}
- resolve();
} else {
this.safeLog(
`❌ Windows fast-paste failed (code ${code}), falling back to nircmd/PowerShell`,
{ elapsedMs: elapsed, stderr: stderrData.trim() }
);
- this.pasteWithNircmdOrPowerShell(originalClipboard).then(resolve).catch(reject);
+ this.pasteWithNircmdOrPowerShell(originalClipboard, options)
+ .then(resolve)
+ .catch(reject);
}
});
@@ -951,7 +1029,7 @@ class ClipboardManager {
elapsedMs: Date.now() - startTime,
error: error.message,
});
- this.pasteWithNircmdOrPowerShell(originalClipboard).then(resolve).catch(reject);
+ this.pasteWithNircmdOrPowerShell(originalClipboard, options).then(resolve).catch(reject);
});
const timeoutId = setTimeout(() => {
@@ -959,21 +1037,21 @@ class ClipboardManager {
this.safeLog("⏱️ Windows fast-paste timeout, falling back to nircmd/PowerShell");
killProcess(pasteProcess, "SIGKILL");
pasteProcess.removeAllListeners();
- this.pasteWithNircmdOrPowerShell(originalClipboard).then(resolve).catch(reject);
+ this.pasteWithNircmdOrPowerShell(originalClipboard, options).then(resolve).catch(reject);
}, 2000);
}, PASTE_DELAYS.win32_fast);
});
}
- async pasteWithNircmdOrPowerShell(originalClipboard) {
+ async pasteWithNircmdOrPowerShell(originalClipboard, options = {}) {
const nircmdPath = this.getNircmdPath();
if (nircmdPath) {
- return this.pasteWithNircmd(nircmdPath, originalClipboard);
+ return this.pasteWithNircmd(nircmdPath, originalClipboard, options);
}
- return this.pasteWithPowerShell(originalClipboard);
+ return this.pasteWithPowerShell(originalClipboard, options);
}
- async pasteWithNircmd(nircmdPath, originalClipboard) {
+ async pasteWithNircmd(nircmdPath, originalClipboard, options = {}) {
return new Promise((resolve, reject) => {
const pasteDelay = PASTE_DELAYS.win32_nircmd;
const restoreDelay = RESTORE_DELAYS.win32_nircmd;
@@ -1004,17 +1082,21 @@ class ClipboardManager {
restoreDelayMs: restoreDelay,
});
if (originalClipboard != null) {
- setTimeout(() => {
- this._restoreClipboard(originalClipboard);
- }, restoreDelay);
+ resolve({
+ restoreComplete: this._restoreClipboardAfterDelay(originalClipboard, {
+ delayMs: restoreDelay,
+ expectedText: options.expectedClipboardText,
+ }),
+ });
+ } else {
+ resolve({ restoreComplete: Promise.resolve() });
}
- resolve();
} else {
this.safeLog(`❌ nircmd failed (code ${code}), falling back to PowerShell`, {
elapsedMs: elapsed,
stderr: errorOutput,
});
- this.pasteWithPowerShell(originalClipboard).then(resolve).catch(reject);
+ this.pasteWithPowerShell(originalClipboard, options).then(resolve).catch(reject);
}
});
@@ -1026,7 +1108,7 @@ class ClipboardManager {
elapsedMs: elapsed,
error: error.message,
});
- this.pasteWithPowerShell(originalClipboard).then(resolve).catch(reject);
+ this.pasteWithPowerShell(originalClipboard, options).then(resolve).catch(reject);
});
const timeoutId = setTimeout(() => {
@@ -1035,13 +1117,13 @@ class ClipboardManager {
this.safeLog(`⏱️ nircmd timeout, falling back to PowerShell`, { elapsedMs: elapsed });
killProcess(pasteProcess, "SIGKILL");
pasteProcess.removeAllListeners();
- this.pasteWithPowerShell(originalClipboard).then(resolve).catch(reject);
+ this.pasteWithPowerShell(originalClipboard, options).then(resolve).catch(reject);
}, 2000);
}, pasteDelay);
});
}
- async pasteWithPowerShell(originalClipboard) {
+ async pasteWithPowerShell(originalClipboard, options = {}) {
return new Promise((resolve, reject) => {
const pasteDelay = PASTE_DELAYS.win32_pwsh;
const restoreDelay = RESTORE_DELAYS.win32_pwsh;
@@ -1081,11 +1163,15 @@ class ClipboardManager {
restoreDelayMs: restoreDelay,
});
if (originalClipboard != null) {
- setTimeout(() => {
- this._restoreClipboard(originalClipboard);
- }, restoreDelay);
+ resolve({
+ restoreComplete: this._restoreClipboardAfterDelay(originalClipboard, {
+ delayMs: restoreDelay,
+ expectedText: options.expectedClipboardText,
+ }),
+ });
+ } else {
+ resolve({ restoreComplete: Promise.resolve() });
}
- resolve();
} else {
this.safeLog(`❌ PowerShell paste failed`, {
code,
@@ -1136,6 +1222,7 @@ class ClipboardManager {
getLinuxSessionInfo();
const webContents = options.webContents;
const originalPrimary = options.originalPrimary ?? null;
+ const expectedText = options.expectedClipboardText;
const xdotoolExists = this.commandExists("xdotool");
const wtypeExists = this.commandExists("wtype");
const ydotoolExists = this.commandExists("ydotool");
@@ -1167,17 +1254,32 @@ class ClipboardManager {
const restoreClipboard = () => {
const delay = isKde && isWayland ? RESTORE_DELAYS.linux_kde_wayland : RESTORE_DELAYS.linux;
if (originalClipboard != null) {
- setTimeout(() => {
- if (isWayland && originalClipboard.type === "text") {
- this._writeClipboardWayland(originalClipboard.data, webContents);
- } else {
- this._restoreClipboard(originalClipboard);
- }
- }, delay);
+ return this._restoreClipboardAfterDelay(originalClipboard, {
+ delayMs: delay,
+ expectedText,
+ restore: () => {
+ if (isWayland && originalClipboard.type === "text") {
+ this._writeClipboardWayland(originalClipboard.data, webContents);
+ } else {
+ this._restoreClipboard(originalClipboard);
+ }
+ if (originalPrimary != null) {
+ this._writePrimarySelection(originalPrimary);
+ }
+ },
+ });
}
if (originalPrimary != null) {
- setTimeout(() => this._writePrimarySelection(originalPrimary), delay);
+ return this._restoreClipboardAfterDelay(
+ { type: "text", data: "" },
+ {
+ delayMs: delay,
+ expectedText,
+ restore: () => this._writePrimarySelection(originalPrimary),
+ }
+ );
}
+ return Promise.resolve();
};
const terminalClasses = [
@@ -1386,7 +1488,7 @@ class ClipboardManager {
{ tool: "linux-fast-paste", method: "uinput", detectedWindowClass },
"clipboard"
);
- restoreClipboard();
+ return { restoreComplete: restoreClipboard() };
};
const tryPortalPaste = async () => {
@@ -1403,8 +1505,7 @@ class ClipboardManager {
{ tool: "linux-fast-paste", method: "portal", token: !!portalResult },
"clipboard"
);
- restoreClipboard();
- return true;
+ return { restoreComplete: restoreClipboard() };
} catch (portalError) {
if (portalError?.message === "portal-dismissed") {
debugLogger.warn(
@@ -1439,17 +1540,18 @@ class ClipboardManager {
// GNOME: uinput first because the portal often times out or shows a
// confusing permission dialog, causing a 10s+ delay (issue #494).
if (isKde && linuxFastPaste && !this.portalDenied) {
- if (await tryPortalPaste()) return "portal";
+ const portalPaste = await tryPortalPaste();
+ if (portalPaste) return { method: "portal", ...portalPaste };
try {
- await tryUinputPaste();
- return "uinput";
+ const uinputPaste = await tryUinputPaste();
+ return { method: "uinput", ...uinputPaste };
} catch (uinputError) {
debugLogger.warn("uinput paste failed", { error: uinputError?.message }, "clipboard");
}
} else if (isGnome && linuxFastPaste) {
try {
- await tryUinputPaste();
- return "uinput";
+ const uinputPaste = await tryUinputPaste();
+ return { method: "uinput", ...uinputPaste };
} catch (uinputError) {
debugLogger.warn(
"uinput paste failed on GNOME, trying portal",
@@ -1457,12 +1559,15 @@ class ClipboardManager {
"clipboard"
);
}
- if (!this.portalDenied && (await tryPortalPaste())) return "portal";
+ if (!this.portalDenied) {
+ const portalPaste = await tryPortalPaste();
+ if (portalPaste) return { method: "portal", ...portalPaste };
+ }
} else {
// Other compositors (wlroots, etc.): try uinput only
try {
- await tryUinputPaste();
- return "uinput";
+ const uinputPaste = await tryUinputPaste();
+ return { method: "uinput", ...uinputPaste };
} catch (uinputError) {
debugLogger.warn("uinput paste failed", { error: uinputError?.message }, "clipboard");
}
@@ -1482,8 +1587,10 @@ class ClipboardManager {
{ tool: "linux-fast-paste", method: "xtest-xwayland" },
"clipboard"
);
- restoreClipboard();
- return "xtest-xwayland";
+ return {
+ method: "xtest-xwayland",
+ restoreComplete: restoreClipboard(),
+ };
} catch (xtestError) {
debugLogger.warn(
"XTest/XWayland fallback also failed",
@@ -1507,8 +1614,10 @@ class ClipboardManager {
{ tool: "linux-fast-paste", method: "xtest" },
"clipboard"
);
- restoreClipboard();
- return "xtest";
+ return {
+ method: "xtest",
+ restoreComplete: restoreClipboard(),
+ };
} catch (error) {
this.safeLog(
`⚠️ Native linux-fast-paste failed: ${error?.message || error}, falling back to system tools`
@@ -1656,8 +1765,7 @@ class ClipboardManager {
if (code === 0) {
debugLogger.debug("Paste successful", { cmd: tool.cmd }, "clipboard");
- restoreClipboard();
- resolve();
+ resolve({ restoreComplete: restoreClipboard() });
} else {
debugLogger.error(
"Paste command failed",
@@ -1698,10 +1806,10 @@ class ClipboardManager {
const failedAttempts = [];
for (const tool of available) {
try {
- await pasteWith(tool);
+ const pasteResult = await pasteWith(tool);
this.safeLog(`✅ Paste successful using ${tool.cmd}`);
debugLogger.info("Paste successful", { tool: tool.cmd }, "clipboard");
- return tool.cmd;
+ return { method: tool.cmd, ...pasteResult };
} catch (error) {
const failureInfo = {
tool: tool.cmd,
@@ -1733,10 +1841,10 @@ class ClipboardManager {
: ["type", "--clearmodifiers", "--", textToType];
try {
- await pasteWith({ cmd: "xdotool", args: typeArgs });
+ const pasteResult = await pasteWith({ cmd: "xdotool", args: typeArgs });
this.safeLog("✅ Paste successful using xdotool type fallback");
debugLogger.info("Terminal paste successful via xdotool type", {}, "clipboard");
- return "xdotool-type";
+ return { method: "xdotool-type", ...pasteResult };
} catch (error) {
const fallbackFailure = {
tool: "xdotool type",
@@ -1974,7 +2082,7 @@ Would you like to open System Settings now?`;
};
}
- const { isWayland, xwaylandAvailable, isGnome, isKde, isWlroots } = getLinuxSessionInfo();
+ const { isWayland, xwaylandAvailable, isWlroots } = getLinuxSessionInfo();
const linuxFastPaste = this.resolveLinuxFastPasteBinary();
const hasNativeBinary = !!linuxFastPaste;
diff --git a/src/helpers/cortiStreaming.js b/src/helpers/cortiStreaming.js
index c057ec89d..d7dd8b21f 100644
--- a/src/helpers/cortiStreaming.js
+++ b/src/helpers/cortiStreaming.js
@@ -4,10 +4,7 @@ const debugLogger = require("./debugLogger");
const SAMPLE_RATE = 16000;
const WEBSOCKET_TIMEOUT_MS = 30000;
const TERMINATION_TIMEOUT_MS = 5000;
-// Corti rejects audio sent before it acknowledges the config message, so buffer
-// any frames that arrive during the brief connect handshake.
-const PRECONFIG_BUFFER_MAX = 3 * SAMPLE_RATE * 2; // 3 seconds of 16-bit PCM
-const AUDIO_FORMAT = `audio/pcm; rate=${SAMPLE_RATE}; channels=1; bits=16`;
+const KEEPALIVE_INTERVAL_MS = 15000;
// Corti's WSS transport: OAuth token in the query, a JSON config message after
// open, then raw PCM frames. Mirrors the AssemblyAI/Deepgram streaming classes.
@@ -25,7 +22,7 @@ class CortiStreaming {
this.connectionTimeout = null;
this.accumulatedText = "";
this.completedSegments = [];
- this.closeResolve = null;
+ this.pendingAck = null;
this.isDisconnecting = false;
this.configAccepted = false;
this.preConfigBuffer = [];
@@ -33,6 +30,12 @@ class CortiStreaming {
this.sessionStartedAt = null;
this.audioBytesSent = 0;
this.currentModel = "corti-transcribe";
+ this.sampleRate = SAMPLE_RATE;
+ this.warmConnection = null;
+ this.warmConnectionReady = false;
+ this.warmSessionId = null;
+ this.warmSessionStartedAt = null;
+ this.keepAliveInterval = null;
}
buildWebSocketUrl(options) {
@@ -48,7 +51,7 @@ class CortiStreaming {
primaryLanguage: options.language && options.language !== "auto" ? options.language : "en",
interimResults: true,
automaticPunctuation: true,
- audioFormat: AUDIO_FORMAT,
+ audioFormat: `audio/pcm; rate=${this.sampleRate}; channels=1; bits=16`,
};
if (options.keyterms && options.keyterms.length > 0) {
configuration.keyterms = { terms: options.keyterms.map((term) => ({ term })) };
@@ -73,6 +76,13 @@ class CortiStreaming {
this.preConfigBuffer = [];
this.preConfigBufferSize = 0;
this.audioBytesSent = 0;
+ this.sampleRate = options.sampleRate || SAMPLE_RATE;
+
+ // Reuse the pre-warmed socket for an instant start; cold-connect otherwise.
+ if (this.useWarmConnection()) {
+ debugLogger.debug("Corti using warm connection - instant start");
+ return;
+ }
const url = this.buildWebSocketUrl(options);
const configuration = this.buildConfiguration(options);
@@ -88,50 +98,210 @@ class CortiStreaming {
}, WEBSOCKET_TIMEOUT_MS);
this.ws = new WebSocket(url);
-
this.ws.on("open", () => {
debugLogger.debug("Corti WebSocket connected, sending config");
this.ws.send(JSON.stringify({ type: "config", configuration }));
});
+ this.attachSocketHandlers(this.ws);
+ });
+ }
+
+ // Live-socket wiring shared by the cold connect and a promoted warm connection.
+ attachSocketHandlers(ws) {
+ ws.on("message", (data) => {
+ this.handleMessage(data);
+ });
+
+ ws.on("error", (error) => {
+ debugLogger.error("Corti WebSocket error", { error: error.message });
+ this.cleanup();
+ if (this.pendingReject) {
+ this.pendingReject(error);
+ this.pendingReject = null;
+ this.pendingResolve = null;
+ }
+ this.onError?.(error);
+ });
- this.ws.on("message", (data) => {
- this.handleMessage(data);
+ ws.on("close", (code, reason) => {
+ const wasActive = this.isConnected;
+ debugLogger.debug("Corti WebSocket closed", {
+ code,
+ reason: reason?.toString(),
+ wasActive,
});
+ if (this.pendingReject) {
+ this.pendingReject(new Error(`Corti WebSocket closed before ready (code: ${code})`));
+ this.pendingReject = null;
+ this.pendingResolve = null;
+ }
+ this.resolvePendingAck();
+ this.cleanup();
+ if (wasActive && !this.isDisconnecting) {
+ this.onError?.(new Error(`Connection lost (code: ${code})`));
+ }
+ });
+ }
- this.ws.on("error", (error) => {
- debugLogger.error("Corti WebSocket error", { error: error.message });
- this.cleanup();
- if (this.pendingReject) {
- this.pendingReject(error);
- this.pendingReject = null;
- this.pendingResolve = null;
+ // Pre-open the socket and finish the config handshake before recording, so the
+ // first words aren't lost waiting for CONFIG_ACCEPTED. Mirrors Deepgram/AssemblyAI.
+ async warmup(options = {}) {
+ const { token, environment, tenant } = options;
+ if (!token || !environment || !tenant) {
+ throw new Error("Corti warmup requires token, environment, and tenant");
+ }
+ if (this.warmConnection) {
+ debugLogger.debug(
+ this.warmConnectionReady
+ ? "Corti connection already warm"
+ : "Corti warmup already in progress, skipping"
+ );
+ return;
+ }
+
+ this.warmConnectionReady = false;
+ this.warmSessionId = null;
+ this.sampleRate = options.sampleRate || SAMPLE_RATE;
+
+ const url = this.buildWebSocketUrl(options);
+ const configuration = this.buildConfiguration(options);
+ debugLogger.debug("Corti warming up connection", { environment, tenant });
+
+ return new Promise((resolve, reject) => {
+ let settled = false;
+ const warmupTimeout = setTimeout(() => {
+ if (settled) return;
+ settled = true;
+ this.cleanupWarmConnection();
+ reject(new Error("Corti warmup connection timeout"));
+ }, WEBSOCKET_TIMEOUT_MS);
+
+ this.warmConnection = new WebSocket(url);
+
+ this.warmConnection.on("open", () => {
+ debugLogger.debug("Corti warm connection opened, sending config");
+ this.warmConnection.send(JSON.stringify({ type: "config", configuration }));
+ });
+
+ this.warmConnection.on("message", (data) => {
+ let message;
+ try {
+ message = JSON.parse(data.toString());
+ } catch (err) {
+ return;
+ }
+ if (message.type === "CONFIG_ACCEPTED" && !settled) {
+ settled = true;
+ clearTimeout(warmupTimeout);
+ this.warmConnectionReady = true;
+ this.warmSessionId = message.sessionId || null;
+ this.warmSessionStartedAt = Date.now();
+ this.startKeepAlive();
+ debugLogger.debug("Corti connection warmed up", { sessionId: this.warmSessionId });
+ resolve();
+ }
+ });
+
+ this.warmConnection.on("error", (error) => {
+ debugLogger.error("Corti warmup connection error", { error: error.message });
+ this.cleanupWarmConnection();
+ if (!settled) {
+ settled = true;
+ clearTimeout(warmupTimeout);
+ reject(error);
}
- this.onError?.(error);
});
- this.ws.on("close", (code, reason) => {
- const wasActive = this.isConnected;
- debugLogger.debug("Corti WebSocket closed", {
+ this.warmConnection.on("close", (code, reason) => {
+ clearTimeout(warmupTimeout);
+ const wasReady = this.warmConnectionReady;
+ debugLogger.debug("Corti warm connection closed", {
code,
reason: reason?.toString(),
- wasActive,
+ wasReady,
});
- if (this.pendingReject) {
- this.pendingReject(new Error(`Corti WebSocket closed before ready (code: ${code})`));
- this.pendingReject = null;
- this.pendingResolve = null;
- }
- if (this.closeResolve) {
- this.closeResolve({ text: this.accumulatedText });
- }
- this.cleanup();
- if (wasActive && !this.isDisconnecting) {
- this.onError?.(new Error(`Connection lost (code: ${code})`));
+ this.cleanupWarmConnection();
+ if (!settled) {
+ settled = true;
+ reject(new Error(`Corti warmup connection closed (code: ${code})`));
}
});
});
}
+ hasWarmConnection() {
+ return (
+ this.warmConnection !== null &&
+ this.warmConnectionReady &&
+ this.warmConnection.readyState === WebSocket.OPEN
+ );
+ }
+
+ // Promote the warm socket to the active session — config is already accepted, so
+ // audio flows immediately. Returns false (clearing any stale socket) if none usable.
+ useWarmConnection() {
+ if (!this.hasWarmConnection()) {
+ this.cleanupWarmConnection();
+ return false;
+ }
+
+ this.stopKeepAlive();
+ this.ws = this.warmConnection;
+ this.isConnected = true;
+ this.configAccepted = true;
+ this.sessionId = this.warmSessionId || null;
+ this.sessionStartedAt = this.warmSessionStartedAt || Date.now();
+ this.warmConnection = null;
+ this.warmConnectionReady = false;
+ this.warmSessionId = null;
+ this.warmSessionStartedAt = null;
+
+ this.ws.removeAllListeners("open");
+ this.ws.removeAllListeners("message");
+ this.ws.removeAllListeners("error");
+ this.ws.removeAllListeners("close");
+ this.attachSocketHandlers(this.ws);
+ return true;
+ }
+
+ startKeepAlive() {
+ this.stopKeepAlive();
+ this.keepAliveInterval = setInterval(() => {
+ if (this.warmConnection?.readyState === WebSocket.OPEN) {
+ try {
+ this.warmConnection.ping();
+ } catch (err) {
+ debugLogger.debug("Corti keep-alive ping failed", { error: err.message });
+ this.cleanupWarmConnection();
+ }
+ } else {
+ this.stopKeepAlive();
+ }
+ }, KEEPALIVE_INTERVAL_MS);
+ }
+
+ stopKeepAlive() {
+ if (this.keepAliveInterval) {
+ clearInterval(this.keepAliveInterval);
+ this.keepAliveInterval = null;
+ }
+ }
+
+ cleanupWarmConnection() {
+ this.stopKeepAlive();
+ if (this.warmConnection) {
+ try {
+ this.warmConnection.close(1000);
+ } catch (err) {
+ // Ignore close errors
+ }
+ this.warmConnection = null;
+ }
+ this.warmConnectionReady = false;
+ this.warmSessionId = null;
+ this.warmSessionStartedAt = null;
+ }
+
handleMessage(data) {
let message;
try {
@@ -176,13 +346,17 @@ class CortiStreaming {
break;
}
- case "delta_usage":
- if (this.closeResolve) {
- this.closeResolve({ text: this.accumulatedText });
- this.closeResolve = null;
+ case "flushed":
+ case "ended":
+ if (this.pendingAck?.type === message.type) {
+ this.resolvePendingAck();
}
break;
+ case "delta_usage":
+ case "usage":
+ break;
+
case "error":
debugLogger.error("Corti streaming error", { error: message.error });
this.onError?.(new Error(message.error?.title || message.error?.details || "Corti error"));
@@ -213,7 +387,8 @@ class CortiStreaming {
}
if (!this.configAccepted) {
- if (this.preConfigBufferSize < PRECONFIG_BUFFER_MAX) {
+ // Corti rejects audio sent before it acks config; cap the handshake buffer at ~3s.
+ if (this.preConfigBufferSize < 3 * this.sampleRate * 2) {
const copy = Buffer.from(pcmBuffer);
this.preConfigBuffer.push(copy);
this.preConfigBufferSize += copy.length;
@@ -235,34 +410,41 @@ class CortiStreaming {
return true;
}
+ // Resolves a single in-flight waitForAck (server ack or socket close).
+ resolvePendingAck() {
+ if (!this.pendingAck) return;
+ clearTimeout(this.pendingAck.timer);
+ this.pendingAck.resolve();
+ this.pendingAck = null;
+ }
+
+ waitForAck(type) {
+ return new Promise((resolve) => {
+ const timer = setTimeout(() => {
+ this.pendingAck = null;
+ resolve();
+ }, TERMINATION_TIMEOUT_MS);
+ this.pendingAck = { type, resolve, timer };
+ });
+ }
+
async disconnect(closeStream = true) {
if (!this.ws) return { text: this.accumulatedText };
this.isDisconnecting = true;
if (closeStream && this.ws.readyState === WebSocket.OPEN) {
- // Flush buffered audio, wait for the trailing finals, then end the session.
+ // Corti's close handshake: flush buffered audio, wait for the trailing
+ // finals (`flushed`), then signal `end` and close cleanly.
this.ws.send(JSON.stringify({ type: "flush" }));
-
- let timeoutId;
- const result = await Promise.race([
- new Promise((resolve) => {
- this.closeResolve = resolve;
- }),
- new Promise((resolve) => {
- timeoutId = setTimeout(() => {
- debugLogger.debug("Corti close timeout, using accumulated text");
- resolve({ text: this.accumulatedText });
- }, TERMINATION_TIMEOUT_MS);
- }),
- ]);
- clearTimeout(timeoutId);
+ await this.waitForAck("flushed");
if (this.ws?.readyState === WebSocket.OPEN) {
this.ws.send(JSON.stringify({ type: "end" }));
}
- this.closeResolve = null;
- this.onSessionEnd?.({ text: result.text });
+
+ const result = { text: this.accumulatedText };
+ this.onSessionEnd?.(result);
this.cleanup();
this.isDisconnecting = false;
return result;
@@ -282,7 +464,7 @@ class CortiStreaming {
if (this.ws) {
try {
- this.ws.close();
+ this.ws.close(1000);
} catch (err) {
// Ignore close errors
}
@@ -292,7 +474,7 @@ class CortiStreaming {
this.isConnected = false;
this.configAccepted = false;
this.sessionId = null;
- this.closeResolve = null;
+ this.resolvePendingAck();
}
getStatus() {
diff --git a/src/helpers/dictationRouting.js b/src/helpers/dictationRouting.js
index e1bd6db7c..06f914d0f 100644
--- a/src/helpers/dictationRouting.js
+++ b/src/helpers/dictationRouting.js
@@ -1,3 +1,17 @@
+// Whether the dictation agent can actually run. Mirrors ReasoningService.processText,
+// which accepts an empty model only for the cloud ("openwhispr") and self-hosted ("lan")
+// providers; every other mode (BYOK, local, enterprise) requires an explicit model.
+export function resolveDictationAgentReachability({
+ useDictationAgent,
+ dictationAgentModel,
+ isCloudAgent,
+ isSelfHostedAgent,
+}) {
+ if (!useDictationAgent) return false;
+ if (isCloudAgent || isSelfHostedAgent) return true;
+ return (dictationAgentModel?.trim()?.length ?? 0) > 0;
+}
+
// Decides which reasoning path ("agent" | "cleanup" | "skip") a finished
// dictation takes. A recording started via the voice agent hotkey always takes
// the agent path — no wake word needed — and never falls back to cleanup.
diff --git a/src/helpers/ipcHandlers.js b/src/helpers/ipcHandlers.js
index 392d9dc54..d42426546 100644
--- a/src/helpers/ipcHandlers.js
+++ b/src/helpers/ipcHandlers.js
@@ -55,6 +55,10 @@ const ALLOWED_MEETING_PROVIDERS = new Set([
"corti-realtime",
]);
+// Meeting capture runs at 24 kHz (see meetingRecordingStore AudioContext); cloud
+// streaming providers must be told the true PCM rate or they misread the audio.
+const MEETING_STREAM_SAMPLE_RATE = 24000;
+
function parseAttendees(raw) {
if (!raw) return [];
if (Array.isArray(raw)) return raw;
@@ -748,10 +752,6 @@ class IPCHandlers {
this.meetingDetectionEngine?.setMeetingModeActive(false);
});
- ipcMain.handle("app-quit", () => {
- app.quit();
- });
-
ipcMain.handle("hide-window", () => {
if (process.platform === "darwin") {
this.windowManager.hideDictationPanel();
@@ -4481,6 +4481,7 @@ class IPCHandlers {
environment: options.environment,
tenant: options.tenant,
keyterms: options.keyterms,
+ sampleRate: MEETING_STREAM_SAMPLE_RATE,
};
const { mode: systemAudioMode } = await getMeetingSystemAudioPlan();
let pairs;
@@ -6284,15 +6285,24 @@ class IPCHandlers {
if (!Object.keys(authHeader).length) throw new Error("Not authenticated");
const method = (opts.method || "GET").toUpperCase();
- const headers = { ...authHeader };
- const fetchOpts = { method, headers };
+ const sendWith = (header) => {
+ const headers = { ...header };
+ const fetchOpts = { method, headers };
+ if (opts.body !== undefined) {
+ headers["Content-Type"] = "application/json";
+ fetchOpts.body = JSON.stringify(opts.body);
+ }
+ return proxyFetch(`${apiUrl}${opts.path}`, fetchOpts);
+ };
- if (opts.body !== undefined) {
- headers["Content-Type"] = "application/json";
- fetchOpts.body = JSON.stringify(opts.body);
- }
+ let response = await sendWith(authHeader);
- const response = await proxyFetch(`${apiUrl}${opts.path}`, fetchOpts);
+ // A stale bearer is rejected even when the window still holds a valid session
+ // cookie; retry with the cookie alone (a tagging-along bearer overrides it).
+ if (response.status === 401 && authHeader.Authorization) {
+ const cookieHeader = await getSessionCookies(event);
+ if (cookieHeader) response = await sendWith({ Cookie: cookieHeader });
+ }
if (response.status === 401) {
return {
@@ -7284,7 +7294,20 @@ class IPCHandlers {
ipcMain.handle("corti-streaming-warmup", async (_event, options = {}) => {
try {
- await this._mintStoredCortiToken(options);
+ if (!this.cortiStreaming) {
+ this.cortiStreaming = new CortiStreaming();
+ }
+ if (this.cortiStreaming.hasWarmConnection() || this.cortiStreaming.isConnected) {
+ return { success: true, alreadyWarm: true };
+ }
+ const { token, environment, tenant } = await this._mintStoredCortiToken(options);
+ await this.cortiStreaming.warmup({
+ token,
+ environment,
+ tenant,
+ language: options.language,
+ keyterms: options.keyterms,
+ });
return { success: true };
} catch (error) {
return { success: false, error: error.message, code: error.code };
@@ -7605,6 +7628,12 @@ class IPCHandlers {
this.windowManager.notificationPrefs[k] = !!v;
}
}
+ // Detection only serves the notification, so the toggle also gates the detector.
+ const { notificationsEnabled, notifyMeetingDetection } =
+ this.windowManager.notificationPrefs;
+ this.meetingDetectionEngine?.setPreferences({
+ audioDetection: notificationsEnabled && notifyMeetingDetection,
+ });
return { success: true };
} catch (error) {
return { success: false, error: error.message };
diff --git a/src/hooks/useNotesOnboarding.ts b/src/hooks/useNotesOnboarding.ts
index e845f0e77..eec0194df 100644
--- a/src/hooks/useNotesOnboarding.ts
+++ b/src/hooks/useNotesOnboarding.ts
@@ -26,7 +26,6 @@ export function useNotesOnboarding(): UseNotesOnboardingReturn {
const complete = useCallback(() => {
localStorage.setItem("notesOnboardingComplete", "true");
- localStorage.setItem("uploadSetupComplete", "true");
setIsComplete(true);
}, []);
diff --git a/src/hooks/useSettings.ts b/src/hooks/useSettings.ts
index 93ddee5de..276870df8 100644
--- a/src/hooks/useSettings.ts
+++ b/src/hooks/useSettings.ts
@@ -48,6 +48,11 @@ export interface HotkeySettings {
activationMode: "tap" | "push";
}
+export interface OnboardingSettings {
+ onboardingUseCases: string[];
+ onboardingUseCaseNote: string;
+}
+
export interface MicrophoneSettings {
preferBuiltInMic: boolean;
selectedMicDeviceId: string;
@@ -270,6 +275,10 @@ function useSettingsInternal() {
setDictationKey: store.setDictationKey,
setMeetingKey: store.setMeetingKey,
setVoiceAgentKey: store.setVoiceAgentKey,
+ onboardingUseCases: store.onboardingUseCases,
+ setOnboardingUseCases: store.setOnboardingUseCases,
+ onboardingUseCaseNote: store.onboardingUseCaseNote,
+ setOnboardingUseCaseNote: store.setOnboardingUseCaseNote,
setTheme: store.setTheme,
activationMode: store.activationMode,
setActivationMode: store.setActivationMode,
diff --git a/src/hooks/useStartOnboarding.ts b/src/hooks/useStartOnboarding.ts
new file mode 100644
index 000000000..1e5b9d5fd
--- /dev/null
+++ b/src/hooks/useStartOnboarding.ts
@@ -0,0 +1,12 @@
+import { useCallback } from "react";
+
+// Restart the onboarding flow from the cloud-migration step (used when a
+// settings panel needs the user to sign in for OpenWhispr Cloud).
+export function useStartOnboarding() {
+ return useCallback(() => {
+ localStorage.setItem("pendingCloudMigration", "true");
+ localStorage.setItem("onboardingCurrentStep", "0");
+ localStorage.removeItem("onboardingCompleted");
+ window.location.reload();
+ }, []);
+}
diff --git a/src/locales/de/translation.json b/src/locales/de/translation.json
index 55a65136d..6680de6e4 100644
--- a/src/locales/de/translation.json
+++ b/src/locales/de/translation.json
@@ -101,13 +101,6 @@
"accessibility": "Bedienungshilfen-Einstellungen sind auf dieser Plattform nicht verfügbar.",
"systemAudio": "Systemaudio-Einstellungen sind auf dieser Plattform nicht verfügbar."
},
- "titleBar": {
- "quitTitle": "OpenWhispr beenden",
- "quitConfirmTitle": "OpenWhispr beenden?",
- "quitConfirmDescription": "Dadurch wird OpenWhispr geschlossen und Hintergrundprozesse werden gestoppt.",
- "quit": "Beenden",
- "cancel": "Abbrechen"
- },
"upgradePrompt": {
"paymentFailed": "Ihre Zahlung konnte nicht verarbeitet werden",
"weeklyLimit": "Sie haben Ihr Wochenlimit erreicht",
@@ -165,14 +158,18 @@
"unknownError": "Ein unbekannter Fehler ist aufgetreten",
"copy": "Kopieren",
"copied": "Kopiert",
- "done": "Fertig"
+ "done": "Fertig",
+ "skip": "Überspringen"
},
"onboarding": {
"steps": {
"welcome": "Willkommen",
"setup": "Einrichtung",
"permissions": "Berechtigungen",
- "activation": "Aktivierung",
+ "activation": "Diktat",
+ "useCase": "Über dich",
+ "meeting": "Meetings",
+ "finish": "Fertig",
"voiceAgent": "Sprachagent"
},
"hotkey": {
@@ -187,17 +184,17 @@
"permissions": {
"title": "Berechtigungen",
"microphoneTitle": "Mikrofon",
- "microphoneDescription": "Nimmt Ihre Stimme für die Transkription auf",
+ "microphoneDescription": "Wandelt deine Sprache in Text um. Es wird nichts aufgenommen, bis du deinen Hotkey drückst.",
"grant": "Erteilen",
"grantAccess": "Zugriff gewähren",
"accessibilityTitle": "Bedienungshilfen",
- "accessibilityDescription": "Ermöglicht das automatische Einfügen transkribierter Texte in jede App",
+ "accessibilityDescription": "Fügt den fertigen Text direkt in die App ein, in der du gerade bist — Dokumente, E-Mail, Chat.",
"testAndGrant": "Testen & erteilen",
"requiredForApp": "Erforderlich, damit OpenWhispr funktioniert",
"microphoneRequired": "Mikrofonzugriff erforderlich",
"openSystemSettings": "Systemeinstellungen öffnen",
"systemAudioTitle": "Systemaudio",
- "systemAudioDescription": "Transkribiert Meetings, Anrufe, Vorträge, Podcasts und andere Systemaudios.",
+ "systemAudioDescription": "Lässt den Meeting-Rekorder die Gegenseite deiner Anrufe hören — Meetings, Vorlesungen, Podcasts. Kann später in den Einstellungen aktiviert werden.",
"optional": "Optional",
"recommended": "Empfohlen",
"accessibilityTroubleshooting": "Schalte in Systemeinstellungen → Bedienungshilfen den Schalter für OpenWhispr aus und wieder ein. Wenn das nicht hilft, entferne OpenWhispr aus der Liste und füge es erneut hinzu. Klappt's immer noch nicht? Schreib an [email protected]."
@@ -208,7 +205,7 @@
"preferredLanguage": "Bevorzugte Sprache"
},
"activation": {
- "title": "Aktivierungs-Einrichtung",
+ "title": "Diktat-Einrichtung",
"description": "Legen Sie fest, wie Sie das Diktat auslösen",
"hotkey": "Hotkey",
"mode": "Modus",
@@ -220,10 +217,19 @@
"textareaPlaceholder": "Hier klicken und Hotkey zum Diktieren verwenden..."
},
"voiceAgent": {
- "title": "Sprachagent-Hotkey",
+ "title": "Sprachagent-Einrichtung",
"description": "Sprechen Sie mit Ihrem KI-Agenten per Tastendruck",
"hotkey": "Hotkey",
"howItWorks": "Drücken Sie die Taste und sagen Sie, was Sie möchten — zum Beispiel „schreibe eine kurze Dankesnachricht“. {{agentName}} schreibt das Ergebnis direkt an Ihren Cursor. Sie müssen nicht zuerst „Hey {{agentName}}“ sagen.",
+ "test": "Ausprobieren",
+ "testInstruction": "Klicke unten, drücke {{hotkey}} und sprich einen Befehl",
+ "testSetHotkey": "Lege oben einen Hotkey fest, um es auszuprobieren",
+ "testPlaceholder": "Klicke hier, drücke deinen Hotkey und sprich eines der Beispiele...",
+ "examples": [
+ "Übersetze ins Italienische: „Ich spreche schneller, als ich tippe“",
+ "Schreibe eine kurze E-Mail an meinen Chef, dass ich eine Beförderung möchte, sein Name ist Mark",
+ "Was ist 5 × 5?"
+ ],
"optionalNote": "Optional — Sie können ihn jederzeit in den Einstellungen festlegen oder ändern."
},
"connectivity": {
@@ -231,6 +237,71 @@
"body": "{{cause}} Sie können zur lokalen Engine wechseln oder fortfahren und es später erneut versuchen.",
"useLocal": "Lokale Engine verwenden",
"continue": "Trotzdem fortfahren"
+ },
+ "useCase": {
+ "title": "Was führt dich hierher?",
+ "description": "Wir sind ein kleines Team und liefern jede Woche. Deine Auswahl richtet die App für dich ein — und sagt uns, was wir als Nächstes bauen sollen.",
+ "noteLabel": "Möchtest du uns noch etwas mitteilen?",
+ "notePlaceholder": "Optional",
+ "options": {
+ "dictation": {
+ "title": "Schneller schreiben",
+ "description": "Diktiere in jede App, statt zu tippen"
+ },
+ "meetings": {
+ "title": "Meeting-Notizen & Zusammenfassungen",
+ "description": "Meetings aufnehmen, transkribieren und zusammenfassen"
+ },
+ "healthcare": {
+ "title": "Medizinische, klinische & Therapie-Transkription",
+ "description": "Diktiere Patientennotizen, Sitzungsnotizen und Berichte"
+ },
+ "translation": {
+ "title": "Sprachen übersetzen",
+ "description": "Sprich eine Sprache, schreibe eine andere"
+ },
+ "ai": {
+ "title": "Mit meiner KI sprechen",
+ "description": "Steuere ChatGPT, Claude und andere Agenten per Stimme"
+ },
+ "upload": {
+ "title": "Audiodateien hochladen",
+ "description": "Lade MP3, OGG und mehr hoch und transkribiere sie"
+ }
+ },
+ "selectHint": "Wähle alles Zutreffende aus"
+ },
+ "meeting": {
+ "title": "Meeting-Notizen",
+ "description": "Erfasse und fasse deine Meetings zusammen",
+ "autoDetect": "OpenWhispr erkennt automatisch, wenn du in einem Meeting bist, und bietet an, Notizen zu starten — ohne dich wird nichts aufgenommen.",
+ "notification": {
+ "title": "Meeting erkannt",
+ "body": "Es klingt, als wärst du in einem Meeting. Notizen aufnehmen?",
+ "cta": "Aufnahme starten"
+ },
+ "hotkeyLabel": "Meeting-Hotkey",
+ "hotkeyHint": "Optional — drücke ihn in jedem Meeting, um sofort eine Notiz zu starten."
+ },
+ "finish": {
+ "title": "Alles bereit",
+ "cloudDescription": "Du nutzt OpenWhispr Cloud — schnell, präzise, keine Datenspeicherung und 2.000 Wörter gratis pro Woche. Lieber alles auf dem Gerät? Wechsle in den Einstellungen zur lokalen Verarbeitung.",
+ "localDescription": "Du bist mit lokaler Verarbeitung oder deinem eigenen Schlüssel eingerichtet. Passe die Audioverarbeitung jederzeit in den Einstellungen an.",
+ "cleanupNote": "Die KI-Textbereinigung läuft mit sinnvollen Standardwerten. Du kannst sie jederzeit in den Einstellungen anpassen.",
+ "openSettings": "Einstellungen öffnen",
+ "skipForNow": "Vorerst überspringen",
+ "corti": {
+ "title": "Du hast uns gesagt, dass du für klinische Transkription hier bist",
+ "description": "Wir sind eine Partnerschaft mit Corti eingegangen — klinische Spracherkennung mit höchster Genauigkeit, HIPAA-konform.",
+ "createAccount": "Corti-Konto erstellen",
+ "creditBadge": "50 $ Gratis-Guthaben",
+ "regionHint": "Wähle, wo dein Audio verarbeitet wird — USA oder EU.",
+ "useCorti": "Corti verwenden",
+ "skip": "Jetzt nicht",
+ "step1": "Registriere dich auf corti.ai",
+ "step2": "Öffne die Corti-Konsole und erstelle API-Zugangsdaten",
+ "step3": "Füge Client-ID und Secret unten ein"
+ }
}
},
"streaming": {
@@ -744,7 +815,8 @@
"resendIn": "Erneut senden in {{seconds}}s",
"verifiedDescription": "Ihr Konto ist eingerichtet.",
"verifiedTitle": "E-Mail bestätigt",
- "waiting": "Warte auf Bestätigung..."
+ "waiting": "Warte auf Bestätigung...",
+ "backToSignIn": "Zurück zur Anmeldung"
},
"errorBoundary": {
"description": "Ein unerwarteter Fehler ist aufgetreten. Bitte laden Sie die Seite neu.",
@@ -1309,7 +1381,10 @@
"linuxPttPermissionDescription": "Führen Sie diesen Befehl aus und melden Sie sich ab/an: sudo usermod -aG input $USER",
"linuxPttSetupTitle": "Gedrückt halten zum Sprechen erfordert Einrichtung",
"linuxPttSetupDescription": "Ihr Benutzer benötigt Zugriff auf die Tastatureingabegeräte.",
- "linuxPttSetupNote": "Melden Sie sich nach dem Ausführen des Befehls ab und wieder an."
+ "linuxPttSetupNote": "Melden Sie sich nach dem Ausführen des Befehls ab und wieder an.",
+ "hyprlandConfigWriteWarningTitle": "Hyprland-Tastenkombinationen bleiben nicht bestehen",
+ "hyprlandConfigWriteWarningDescription": "OpenWhispr kann nicht in {{path}} schreiben, daher überstehen Tastenkombinationen kein Neuladen der Hyprland-Konfiguration. Stellen Sie sicher, dass die Datei existiert und beschreibbar ist.",
+ "hyprlandUnbindDescription": "Unter Hyprland beansprucht OpenWhispr die ausgewählte Tastenkombination. Jede vorhandene Hyprland-Bindung mit derselben Tastenkombination wird aufgehoben, wenn OpenWhispr seine Tastenkombination registriert."
},
"meetingHotkey": {
"title": "Meeting-Modus-Hotkey",
@@ -1546,7 +1621,8 @@
"description": "Wählen Sie eine Engine für Diktat und Notizaufnahme",
"tabs": {
"dictation": "Diktat",
- "noteRecording": "Notizaufnahme"
+ "noteRecording": "Notizaufnahme",
+ "upload": "Audio-Upload"
},
"selfHostedStreamingNote": "Erfordert einen Server, der Streaming-Transkription unterstützt."
},
@@ -2000,18 +2076,15 @@
"transcribingCloud": "Wird über die Cloud transkribiert...",
"transcribingLocal": "Wird lokal transkribiert...",
"transcribingProvider": "Wird über {{provider}} transkribiert...",
+ "cancelTranscription": "Transkription abbrechen",
"transcriptionComplete": "Transkription abgeschlossen",
"openNote": "Notiz öffnen",
"uploadAnother": "Weitere hochladen",
"retry": "Erneut versuchen",
"startOver": "Neu beginnen",
- "transcriptionSettings": "Transkriptionseinstellungen",
"newFolder": "Neuer Ordner",
"folderName": "Ordnername",
"create": "Erstellen",
- "setupTitle": "Transkription einrichten",
- "setupDescription": "Wähle, wie dein Audio transkribiert werden soll. Dies gilt auch für die Live-Diktierfunktion.",
- "continue": "Weiter",
"openwhisprCloud": "OpenWhispr Cloud",
"custom": "Benutzerdefiniert",
"selectFolder": "Ordner auswählen",
@@ -2551,15 +2624,7 @@
"noUpcoming": "Keine anstehenden Ereignisse",
"meetingStarting": "Meeting beginnt jetzt",
"today": "Heute",
- "tomorrow": "Morgen",
- "detection": {
- "title": "Meeting-Erkennung",
- "description": "Automatisch erkennen, wenn du in einem Meeting bist",
- "processDetection": "App-Erkennung",
- "processDescription": "Erkennen, welche App du verwendest, wenn ein Meeting erkannt wird",
- "audioDetection": "Audio-Erkennung",
- "audioDescription": "Benachrichtigung bei anhaltender Mikrofonaktivität"
- }
+ "tomorrow": "Morgen"
},
"upcoming": {
"title": "Anstehende Meetings",
diff --git a/src/locales/en/translation.json b/src/locales/en/translation.json
index 06f20ae19..c8d059f19 100644
--- a/src/locales/en/translation.json
+++ b/src/locales/en/translation.json
@@ -101,13 +101,6 @@
"accessibility": "Accessibility settings are not available on this platform.",
"systemAudio": "System audio settings are not available on this platform."
},
- "titleBar": {
- "quitTitle": "Quit OpenWhispr",
- "quitConfirmTitle": "Quit OpenWhispr?",
- "quitConfirmDescription": "This will close OpenWhispr and stop background processes.",
- "quit": "Quit",
- "cancel": "Cancel"
- },
"upgradePrompt": {
"paymentFailed": "We couldn't process your payment",
"weeklyLimit": "You've reached your weekly limit",
@@ -165,14 +158,18 @@
"unknownError": "An unknown error occurred",
"copy": "Copy",
"copied": "Copied",
- "done": "Done"
+ "done": "Done",
+ "skip": "Skip"
},
"onboarding": {
"steps": {
"welcome": "Welcome",
"setup": "Setup",
"permissions": "Permissions",
- "activation": "Activation",
+ "activation": "Dictation",
+ "useCase": "About you",
+ "meeting": "Meetings",
+ "finish": "Finish",
"voiceAgent": "Voice Agent"
},
"hotkey": {
@@ -187,17 +184,17 @@
"permissions": {
"title": "Permissions",
"microphoneTitle": "Microphone",
- "microphoneDescription": "Captures your voice for transcription",
+ "microphoneDescription": "Turns your speech into text. Nothing is recorded until you press your hotkey.",
"grant": "Grant",
"grantAccess": "Grant Access",
"accessibilityTitle": "Accessibility",
- "accessibilityDescription": "Allows auto-pasting transcribed text into any app",
+ "accessibilityDescription": "Types the finished text straight into whatever app you're in — docs, email, chat.",
"testAndGrant": "Test & Grant",
"requiredForApp": "Required for OpenWhispr to work",
"microphoneRequired": "Microphone access required",
"openSystemSettings": "Open System Settings",
"systemAudioTitle": "System Audio",
- "systemAudioDescription": "Transcribe meetings, calls, lectures, podcasts, and other system audio.",
+ "systemAudioDescription": "Lets the meeting recorder hear the other side of your calls — meetings, lectures, podcasts. You can turn this on later in Settings.",
"optional": "Optional",
"recommended": "Recommended",
"accessibilityTroubleshooting": "In System Settings → Accessibility, switch OpenWhispr's toggle off and back on. If that doesn't work, remove OpenWhispr from the list and add it back. Still stuck? Email [email protected]."
@@ -208,7 +205,7 @@
"preferredLanguage": "Preferred Language"
},
"activation": {
- "title": "Activation Setup",
+ "title": "Dictation Setup",
"description": "Configure how you trigger dictation",
"hotkey": "Hotkey",
"mode": "Mode",
@@ -220,10 +217,19 @@
"textareaPlaceholder": "Click here and use your hotkey to dictate..."
},
"voiceAgent": {
- "title": "Voice Agent Hotkey",
+ "title": "Voice Agent Setup",
"description": "Talk to your AI agent with a single keypress",
"hotkey": "Hotkey",
"howItWorks": "Press the key and say what you want — for example “write a short thank-you note”. {{agentName}} types the result wherever your cursor is. No need to say “Hey {{agentName}}” first.",
+ "test": "Try it",
+ "testInstruction": "Click below, press {{hotkey}} and say a command",
+ "testSetHotkey": "Set a hotkey above to try it",
+ "testPlaceholder": "Click here, press your hotkey and say one of the examples...",
+ "examples": [
+ "Translate to Italian: “I talk faster than I type”",
+ "Write a short email to my boss telling him I want a promotion, his name is Mark",
+ "What is 5 × 5?"
+ ],
"optionalNote": "Optional — you can set or change it anytime in Settings."
},
"connectivity": {
@@ -231,6 +237,71 @@
"body": "{{cause}} You can switch to the local engine, or continue and try again later.",
"useLocal": "Use local engine",
"continue": "Continue anyway"
+ },
+ "useCase": {
+ "title": "Why are you here?",
+ "description": "We're a small team shipping every week. What you pick sets up the app for you — and tells us what to build next.",
+ "noteLabel": "Anything else you'd like us to know?",
+ "notePlaceholder": "Optional",
+ "options": {
+ "dictation": {
+ "title": "Writing faster",
+ "description": "Dictate into any app instead of typing"
+ },
+ "meetings": {
+ "title": "Meeting notes & summaries",
+ "description": "Record, transcribe and summarize meetings"
+ },
+ "healthcare": {
+ "title": "Medical, clinical & therapy transcription",
+ "description": "Dictate patient notes, session notes and reports"
+ },
+ "translation": {
+ "title": "Translating languages",
+ "description": "Speak one language, type another"
+ },
+ "ai": {
+ "title": "Talking to my AI",
+ "description": "Voice-drive ChatGPT, Claude and other agents"
+ },
+ "upload": {
+ "title": "Uploading audio files",
+ "description": "Upload and transcribe MP3, OGG and more"
+ }
+ },
+ "selectHint": "Select all that apply"
+ },
+ "meeting": {
+ "title": "Meeting notes",
+ "description": "Capture and summarize your meetings",
+ "autoDetect": "OpenWhispr automatically detects when you're in a meeting and offers to start notes — nothing is recorded without you.",
+ "notification": {
+ "title": "Meeting detected",
+ "body": "It sounds like you're in a meeting. Want to take notes?",
+ "cta": "Start Recording"
+ },
+ "hotkeyLabel": "Meeting hotkey",
+ "hotkeyHint": "Optional — press it in any meeting to start a note instantly."
+ },
+ "finish": {
+ "title": "You're all set",
+ "cloudDescription": "You're on OpenWhispr Cloud — fast, accurate, zero data retention, 2,000 words free every week. Prefer everything on-device? Switch to local processing in Settings.",
+ "localDescription": "You're set up with local processing or your own key. Adjust how your audio is processed anytime in Settings.",
+ "cleanupNote": "AI text cleanup runs with sensible defaults. You can adjust it anytime in Settings.",
+ "openSettings": "Open Settings",
+ "skipForNow": "Skip for now",
+ "corti": {
+ "title": "You told us you're here for clinical transcription",
+ "description": "We've partnered with Corti — clinical-grade speech-to-text with the highest accuracy, and it's HIPAA compliant.",
+ "createAccount": "Create your Corti account",
+ "creditBadge": "$50 free credit",
+ "regionHint": "Choose where your audio is processed — US or EU.",
+ "useCorti": "Use Corti",
+ "skip": "Not now",
+ "step1": "Sign up on corti.ai",
+ "step2": "Open the Corti console and create API credentials",
+ "step3": "Paste your Client ID and Secret below"
+ }
}
},
"streaming": {
@@ -687,15 +758,7 @@
"noUpcoming": "No upcoming events",
"meetingStarting": "Meeting starting now",
"today": "Today",
- "tomorrow": "Tomorrow",
- "detection": {
- "title": "Meeting Detection",
- "description": "Automatically detect when you're in a meeting",
- "processDetection": "App Detection",
- "processDescription": "Identify which app you're using when a meeting is detected",
- "audioDetection": "Audio Detection",
- "audioDescription": "Prompt when sustained microphone activity is detected"
- }
+ "tomorrow": "Tomorrow"
},
"upcoming": {
"title": "Upcoming Meetings",
@@ -840,7 +903,8 @@
"resendIn": "Resend in {{seconds}}s",
"verifiedDescription": "Your account is all set.",
"verifiedTitle": "Email verified",
- "waiting": "Waiting for verification..."
+ "waiting": "Waiting for verification...",
+ "backToSignIn": "Back to sign in"
},
"errorBoundary": {
"description": "An unexpected error occurred. Please reload to try again.",
@@ -1730,7 +1794,8 @@
"description": "Pick an engine for dictation and note recording",
"tabs": {
"dictation": "Dictation",
- "noteRecording": "Note Recording"
+ "noteRecording": "Note Recording",
+ "upload": "Audio Upload"
},
"selfHostedStreamingNote": "Requires a server that supports streaming transcription."
},
@@ -2210,18 +2275,15 @@
"transcribingCloud": "Transcribing via cloud...",
"transcribingLocal": "Transcribing locally...",
"transcribingProvider": "Transcribing via {{provider}}...",
+ "cancelTranscription": "Cancel transcription",
"transcriptionComplete": "Transcription complete",
"openNote": "Open Note",
"uploadAnother": "Upload Another",
"retry": "Retry",
"startOver": "Start Over",
- "transcriptionSettings": "Transcription Settings",
"newFolder": "New Folder",
"folderName": "Folder name",
"create": "Create",
- "setupTitle": "Set up transcription",
- "setupDescription": "Choose how to transcribe your audio. This also applies to live dictation.",
- "continue": "Continue",
"openwhisprCloud": "OpenWhispr Cloud",
"custom": "Custom",
"selectFolder": "Select folder",
diff --git a/src/locales/es/translation.json b/src/locales/es/translation.json
index 43859a61a..8e22c4713 100644
--- a/src/locales/es/translation.json
+++ b/src/locales/es/translation.json
@@ -101,13 +101,6 @@
"accessibility": "La configuración de accesibilidad no está disponible en esta plataforma.",
"systemAudio": "La configuración de audio del sistema no está disponible en esta plataforma."
},
- "titleBar": {
- "quitTitle": "Salir de OpenWhispr",
- "quitConfirmTitle": "¿Salir de OpenWhispr?",
- "quitConfirmDescription": "Esto cerrará OpenWhispr y detendrá los procesos en segundo plano.",
- "quit": "Salir",
- "cancel": "Cancelar"
- },
"upgradePrompt": {
"paymentFailed": "No pudimos procesar tu pago",
"weeklyLimit": "Has alcanzado tu límite semanal",
@@ -165,14 +158,18 @@
"unknownError": "Ocurrió un error desconocido",
"copy": "Copiar",
"copied": "Copiado",
- "done": "Listo"
+ "done": "Listo",
+ "skip": "Omitir"
},
"onboarding": {
"steps": {
"welcome": "Bienvenido",
"setup": "Configuración",
"permissions": "Permisos",
- "activation": "Activación",
+ "activation": "Dictado",
+ "useCase": "Sobre ti",
+ "meeting": "Reuniones",
+ "finish": "Listo",
"voiceAgent": "Agente de voz"
},
"hotkey": {
@@ -187,17 +184,17 @@
"permissions": {
"title": "Permisos",
"microphoneTitle": "Micrófono",
- "microphoneDescription": "Captura tu voz para la transcripción",
+ "microphoneDescription": "Convierte tu voz en texto. No se graba nada hasta que pulsas tu atajo.",
"grant": "Conceder",
"grantAccess": "Conceder acceso",
"accessibilityTitle": "Accesibilidad",
- "accessibilityDescription": "Permite pegar automáticamente el texto transcrito en cualquier aplicación",
+ "accessibilityDescription": "Escribe el texto final directamente en la aplicación que estés usando: documentos, correo, chat.",
"testAndGrant": "Probar y conceder",
"requiredForApp": "Necesario para que OpenWhispr funcione",
"microphoneRequired": "Se requiere acceso al micrófono",
"openSystemSettings": "Abrir Ajustes del Sistema",
"systemAudioTitle": "Audio del Sistema",
- "systemAudioDescription": "Transcribe reuniones, llamadas, clases, podcasts y otros audios del sistema.",
+ "systemAudioDescription": "Permite que el grabador de reuniones escuche al resto de participantes de tus llamadas: reuniones, clases, pódcasts. Puedes activarlo más tarde en Ajustes.",
"optional": "Opcional",
"recommended": "Recomendado",
"accessibilityTroubleshooting": "En Configuración del Sistema → Accesibilidad, desactiva el interruptor de OpenWhispr y vuelve a activarlo. Si eso no funciona, elimina OpenWhispr de la lista y añádelo de nuevo. ¿Sigues con problemas? Escribe a [email protected]."
@@ -208,7 +205,7 @@
"preferredLanguage": "Idioma preferido"
},
"activation": {
- "title": "Configuración de activación",
+ "title": "Configuración de dictado",
"description": "Configura cómo activar el dictado",
"hotkey": "Atajo",
"mode": "Modo",
@@ -220,10 +217,19 @@
"textareaPlaceholder": "Haz clic aquí y usa tu atajo para dictar..."
},
"voiceAgent": {
- "title": "Atajo del agente de voz",
+ "title": "Configuración del agente de voz",
"description": "Habla con tu agente de IA con una sola pulsación",
"hotkey": "Atajo",
"howItWorks": "Pulsa la tecla y di lo que quieres, por ejemplo «escribe una breve nota de agradecimiento». {{agentName}} escribe el resultado donde esté el cursor. No hace falta decir «Hey {{agentName}}» antes.",
+ "test": "Pruébalo",
+ "testInstruction": "Haz clic abajo, pulsa {{hotkey}} y di un comando",
+ "testSetHotkey": "Configura un atajo arriba para probarlo",
+ "testPlaceholder": "Haz clic aquí, pulsa tu atajo y di uno de los ejemplos...",
+ "examples": [
+ "Traduce al italiano: «Hablo más rápido de lo que escribo»",
+ "Escribe un correo breve a mi jefe diciéndole que quiero un ascenso, se llama Mark",
+ "¿Cuánto es 5 × 5?"
+ ],
"optionalNote": "Opcional: puedes configurarlo o cambiarlo en cualquier momento en los ajustes."
},
"connectivity": {
@@ -231,6 +237,71 @@
"body": "{{cause}} Puedes cambiar al motor local o continuar e intentarlo más tarde.",
"useLocal": "Usar motor local",
"continue": "Continuar de todos modos"
+ },
+ "useCase": {
+ "title": "¿Qué te trae por aquí?",
+ "description": "Somos un equipo pequeño que lanza mejoras cada semana. Lo que elijas configura la aplicación a tu medida y nos dice qué construir a continuación.",
+ "noteLabel": "¿Algo más que quieras contarnos?",
+ "notePlaceholder": "Opcional",
+ "options": {
+ "dictation": {
+ "title": "Escribir más rápido",
+ "description": "Dicta en cualquier aplicación en lugar de teclear"
+ },
+ "meetings": {
+ "title": "Notas y resúmenes de reuniones",
+ "description": "Graba, transcribe y resume tus reuniones"
+ },
+ "healthcare": {
+ "title": "Transcripción médica, clínica y terapéutica",
+ "description": "Dicta notas de pacientes, notas de sesión e informes"
+ },
+ "translation": {
+ "title": "Traducir idiomas",
+ "description": "Habla un idioma, escribe en otro"
+ },
+ "ai": {
+ "title": "Hablar con mi IA",
+ "description": "Controla por voz ChatGPT, Claude y otros agentes"
+ },
+ "upload": {
+ "title": "Subir archivos de audio",
+ "description": "Sube y transcribe MP3, OGG y más"
+ }
+ },
+ "selectHint": "Selecciona todas las que correspondan"
+ },
+ "meeting": {
+ "title": "Notas de reuniones",
+ "description": "Captura y resume tus reuniones",
+ "autoDetect": "OpenWhispr detecta automáticamente cuando estás en una reunión y te ofrece iniciar notas; no se graba nada sin tu permiso.",
+ "notification": {
+ "title": "Reunión detectada",
+ "body": "Parece que estás en una reunión. ¿Quieres tomar notas?",
+ "cta": "Empezar a grabar"
+ },
+ "hotkeyLabel": "Atajo de reunión",
+ "hotkeyHint": "Opcional: púlsalo en cualquier reunión para iniciar una nota al instante."
+ },
+ "finish": {
+ "title": "Todo listo",
+ "cloudDescription": "Estás en OpenWhispr Cloud: rápido, preciso, sin retención de datos y con 2.000 palabras gratis a la semana. ¿Prefieres que todo quede en tu equipo? Cambia al procesamiento local en Ajustes.",
+ "localDescription": "Has configurado el procesamiento local o tu propia clave. Ajusta cómo se procesa tu audio cuando quieras en Ajustes.",
+ "cleanupNote": "La limpieza de texto con IA funciona con valores predeterminados razonables. Puedes ajustarla en Ajustes.",
+ "openSettings": "Abrir Ajustes",
+ "skipForNow": "Omitir por ahora",
+ "corti": {
+ "title": "Nos dijiste que vienes por la transcripción clínica",
+ "description": "Nos hemos asociado con Corti: voz a texto de nivel clínico con la máxima precisión y conforme a la HIPAA.",
+ "createAccount": "Crea tu cuenta de Corti",
+ "creditBadge": "50 $ de crédito gratis",
+ "regionHint": "Elige dónde se procesa tu audio: EE. UU. o UE.",
+ "useCorti": "Usar Corti",
+ "skip": "Ahora no",
+ "step1": "Regístrate en corti.ai",
+ "step2": "Abre la consola de Corti y crea credenciales de API",
+ "step3": "Pega tu Client ID y Secret abajo"
+ }
}
},
"streaming": {
@@ -792,7 +863,8 @@
"resendIn": "Reenviar en {{seconds}}s",
"verifiedDescription": "Tu cuenta está lista.",
"verifiedTitle": "Correo verificado",
- "waiting": "Esperando verificación..."
+ "waiting": "Esperando verificación...",
+ "backToSignIn": "Volver a iniciar sesión"
},
"errorBoundary": {
"description": "Ocurrió un error inesperado. Recarga para intentar de nuevo.",
@@ -1357,7 +1429,10 @@
"linuxPttPermissionDescription": "Ejecuta este comando y cierra sesión: sudo usermod -aG input $USER",
"linuxPttSetupTitle": "Mantener para hablar requiere configuración",
"linuxPttSetupDescription": "Tu usuario necesita acceso a los dispositivos de entrada del teclado.",
- "linuxPttSetupNote": "Después de ejecutar el comando, cierra sesión y vuelve a iniciarla."
+ "linuxPttSetupNote": "Después de ejecutar el comando, cierra sesión y vuelve a iniciarla.",
+ "hyprlandConfigWriteWarningTitle": "Los atajos de Hyprland no se conservarán",
+ "hyprlandConfigWriteWarningDescription": "OpenWhispr no puede escribir en {{path}}, así que los atajos no sobrevivirán a una recarga de la configuración de Hyprland. Asegúrate de que el archivo exista y se pueda escribir.",
+ "hyprlandUnbindDescription": "En Hyprland, OpenWhispr reclama el atajo seleccionado. Cualquier atajo existente de Hyprland que use la misma combinación de teclas se desvinculará cuando OpenWhispr registre su atajo."
},
"meetingHotkey": {
"title": "Atajo modo reunión",
@@ -1594,7 +1669,8 @@
"description": "Elige un motor para dictado y grabación de notas",
"tabs": {
"dictation": "Dictado",
- "noteRecording": "Grabación de notas"
+ "noteRecording": "Grabación de notas",
+ "upload": "Subir audio"
},
"selfHostedStreamingNote": "Requiere un servidor que admita transcripción en streaming."
},
@@ -2048,18 +2124,15 @@
"transcribingCloud": "Transcribiendo en la nube...",
"transcribingLocal": "Transcribiendo localmente...",
"transcribingProvider": "Transcribiendo con {{provider}}...",
+ "cancelTranscription": "Cancelar transcripción",
"transcriptionComplete": "Transcripción completada",
"openNote": "Abrir nota",
"uploadAnother": "Subir otro",
"retry": "Reintentar",
"startOver": "Empezar de nuevo",
- "transcriptionSettings": "Configuración de transcripción",
"newFolder": "Nueva carpeta",
"folderName": "Nombre de la carpeta",
"create": "Crear",
- "setupTitle": "Configurar transcripción",
- "setupDescription": "Elige cómo transcribir tu audio. Esto también se aplica al dictado en vivo.",
- "continue": "Continuar",
"openwhisprCloud": "OpenWhispr Cloud",
"custom": "Personalizado",
"selectFolder": "Seleccionar carpeta",
@@ -2599,15 +2672,7 @@
"noUpcoming": "No hay eventos próximos",
"meetingStarting": "La reunión comienza ahora",
"today": "Hoy",
- "tomorrow": "Mañana",
- "detection": {
- "title": "Detección de Reuniones",
- "description": "Detectar automáticamente cuando estás en una reunión",
- "processDetection": "Detección de Aplicaciones",
- "processDescription": "Identificar qué aplicación estás usando cuando se detecta una reunión",
- "audioDetection": "Detección de Audio",
- "audioDescription": "Notificar cuando se detecta actividad sostenida del micrófono"
- }
+ "tomorrow": "Mañana"
},
"upcoming": {
"title": "Próximas reuniones",
diff --git a/src/locales/fr/translation.json b/src/locales/fr/translation.json
index f3bbbd7bf..865c9499b 100644
--- a/src/locales/fr/translation.json
+++ b/src/locales/fr/translation.json
@@ -101,13 +101,6 @@
"accessibility": "Les paramètres d'accessibilité ne sont pas disponibles sur cette plateforme.",
"systemAudio": "Les paramètres audio système ne sont pas disponibles sur cette plateforme."
},
- "titleBar": {
- "quitTitle": "Quitter OpenWhispr",
- "quitConfirmTitle": "Quitter OpenWhispr ?",
- "quitConfirmDescription": "Cela fermera OpenWhispr et arrêtera les processus en arrière-plan.",
- "quit": "Quitter",
- "cancel": "Annuler"
- },
"upgradePrompt": {
"paymentFailed": "Nous n'avons pas pu traiter votre paiement",
"weeklyLimit": "Vous avez atteint votre limite hebdomadaire",
@@ -165,14 +158,18 @@
"unknownError": "Une erreur inconnue s'est produite",
"copy": "Copier",
"copied": "Copié",
- "done": "Terminé"
+ "done": "Terminé",
+ "skip": "Passer"
},
"onboarding": {
"steps": {
"welcome": "Bienvenue",
"setup": "Configuration",
"permissions": "Permissions",
- "activation": "Activation",
+ "activation": "Dictée",
+ "useCase": "À propos de vous",
+ "meeting": "Réunions",
+ "finish": "Terminer",
"voiceAgent": "Agent vocal"
},
"hotkey": {
@@ -187,17 +184,17 @@
"permissions": {
"title": "Permissions",
"microphoneTitle": "Microphone",
- "microphoneDescription": "Capture votre voix pour la transcription",
+ "microphoneDescription": "Transforme votre voix en texte. Rien n'est enregistré tant que vous n'appuyez pas sur votre raccourci.",
"grant": "Autoriser",
"grantAccess": "Accorder l'accès",
"accessibilityTitle": "Accessibilité",
- "accessibilityDescription": "Permet de coller automatiquement le texte transcrit dans n'importe quelle application",
+ "accessibilityDescription": "Saisit le texte final directement dans l'application où vous êtes : documents, e-mail, chat.",
"testAndGrant": "Tester et autoriser",
"requiredForApp": "Nécessaire pour le bon fonctionnement d'OpenWhispr",
"microphoneRequired": "Accès microphone requis",
"openSystemSettings": "Ouvrir les Réglages Système",
"systemAudioTitle": "Audio Système",
- "systemAudioDescription": "Transcrivez réunions, appels, conférences, podcasts et autres audios système.",
+ "systemAudioDescription": "Permet à l'enregistreur de réunion d'entendre vos interlocuteurs : réunions, cours, podcasts. Activable plus tard dans les Réglages.",
"optional": "Facultatif",
"recommended": "Recommandé",
"accessibilityTroubleshooting": "Dans Réglages Système → Accessibilité, désactivez le bouton d'OpenWhispr puis réactivez-le. Si ça ne marche pas, supprimez OpenWhispr de la liste et rajoutez-le. Toujours bloqué ? Écrivez à [email protected]."
@@ -208,7 +205,7 @@
"preferredLanguage": "Langue préférée"
},
"activation": {
- "title": "Configuration de l'activation",
+ "title": "Configuration de la dictée",
"description": "Configurez la façon de déclencher la dictée",
"hotkey": "Raccourci",
"mode": "Mode",
@@ -220,10 +217,19 @@
"textareaPlaceholder": "Cliquez ici puis utilisez votre raccourci pour dicter..."
},
"voiceAgent": {
- "title": "Raccourci de l'agent vocal",
+ "title": "Configuration de l'agent vocal",
"description": "Parlez à votre agent IA d'une simple touche",
"hotkey": "Raccourci",
"howItWorks": "Appuyez sur la touche et dites ce que vous voulez, par exemple « écris un petit mot de remerciement ». {{agentName}} écrit le résultat là où se trouve votre curseur. Pas besoin de dire « Hey {{agentName}} » d'abord.",
+ "test": "Essayer",
+ "testInstruction": "Cliquez ci-dessous, appuyez sur {{hotkey}} et dites une commande",
+ "testSetHotkey": "Définissez un raccourci ci-dessus pour l'essayer",
+ "testPlaceholder": "Cliquez ici, appuyez sur votre raccourci et dites l'un des exemples...",
+ "examples": [
+ "Traduis en italien : « Je parle plus vite que je ne tape »",
+ "Écris un court e-mail à mon patron pour lui dire que je veux une promotion, il s'appelle Mark",
+ "Combien font 5 × 5 ?"
+ ],
"optionalNote": "Facultatif — vous pouvez le définir ou le modifier à tout moment dans les réglages."
},
"connectivity": {
@@ -231,6 +237,71 @@
"body": "{{cause}} Vous pouvez basculer sur le moteur local, ou continuer et réessayer plus tard.",
"useLocal": "Utiliser le moteur local",
"continue": "Continuer quand même"
+ },
+ "useCase": {
+ "title": "Qu'est-ce qui vous amène ?",
+ "description": "Nous sommes une petite équipe qui publie chaque semaine. Vos choix configurent l'application pour vous — et nous disent quoi construire ensuite.",
+ "noteLabel": "Autre chose à nous dire ?",
+ "notePlaceholder": "Facultatif",
+ "options": {
+ "dictation": {
+ "title": "Écrire plus vite",
+ "description": "Dictez dans n'importe quelle application au lieu de taper"
+ },
+ "meetings": {
+ "title": "Notes et résumés de réunion",
+ "description": "Enregistrez, transcrivez et résumez vos réunions"
+ },
+ "healthcare": {
+ "title": "Transcription médicale, clinique et thérapeutique",
+ "description": "Dictez notes de patients, notes de séance et comptes rendus"
+ },
+ "translation": {
+ "title": "Traduire des langues",
+ "description": "Parlez une langue, écrivez-en une autre"
+ },
+ "ai": {
+ "title": "Parler à mon IA",
+ "description": "Pilotez ChatGPT, Claude et d'autres agents à la voix"
+ },
+ "upload": {
+ "title": "Importer des fichiers audio",
+ "description": "Importez et transcrivez MP3, OGG et plus"
+ }
+ },
+ "selectHint": "Sélectionnez tout ce qui s'applique"
+ },
+ "meeting": {
+ "title": "Notes de réunion",
+ "description": "Capturez et résumez vos réunions",
+ "autoDetect": "OpenWhispr détecte automatiquement quand vous êtes en réunion et vous propose de démarrer des notes — rien n'est enregistré sans vous.",
+ "notification": {
+ "title": "Réunion détectée",
+ "body": "On dirait que vous êtes en réunion. Vous voulez prendre des notes ?",
+ "cta": "Démarrer l'enregistrement"
+ },
+ "hotkeyLabel": "Raccourci réunion",
+ "hotkeyHint": "Facultatif — appuyez dessus pendant une réunion pour démarrer une note instantanément."
+ },
+ "finish": {
+ "title": "Tout est prêt",
+ "cloudDescription": "Vous êtes sur OpenWhispr Cloud : rapide, précis, zéro conservation des données et 2 000 mots gratuits par semaine. Vous préférez tout garder sur votre appareil ? Passez au traitement local dans les Réglages.",
+ "localDescription": "Vous êtes configuré avec le traitement local ou votre propre clé. Ajustez le traitement de votre audio à tout moment dans les Réglages.",
+ "cleanupNote": "Le nettoyage de texte par IA utilise des réglages par défaut raisonnables. Vous pouvez l'ajuster dans les Réglages.",
+ "openSettings": "Ouvrir les Réglages",
+ "skipForNow": "Plus tard",
+ "corti": {
+ "title": "Vous nous avez dit être ici pour la transcription clinique",
+ "description": "Nous sommes partenaires de Corti — reconnaissance vocale de niveau clinique, la plus précise, et conforme à la HIPAA.",
+ "createAccount": "Créez votre compte Corti",
+ "creditBadge": "50 $ de crédit offert",
+ "regionHint": "Choisissez où votre audio est traité — États-Unis ou UE.",
+ "useCorti": "Utiliser Corti",
+ "skip": "Pas maintenant",
+ "step1": "Inscrivez-vous sur corti.ai",
+ "step2": "Ouvrez la console Corti et créez des identifiants API",
+ "step3": "Collez votre Client ID et votre Secret ci-dessous"
+ }
}
},
"streaming": {
@@ -792,7 +863,8 @@
"resendIn": "Renvoyer dans {{seconds}}s",
"verifiedDescription": "Votre compte est prêt.",
"verifiedTitle": "E-mail vérifié",
- "waiting": "En attente de la vérification..."
+ "waiting": "En attente de la vérification...",
+ "backToSignIn": "Retour à la connexion"
},
"errorBoundary": {
"description": "Une erreur inattendue s'est produite. Veuillez recharger pour réessayer.",
@@ -1357,7 +1429,10 @@
"linuxPttPermissionDescription": "Exécutez cette commande et déconnectez-vous : sudo usermod -aG input $USER",
"linuxPttSetupTitle": "Maintenir pour parler nécessite une configuration",
"linuxPttSetupDescription": "Votre utilisateur a besoin d'accéder aux périphériques de saisie clavier.",
- "linuxPttSetupNote": "Après avoir exécuté la commande, déconnectez-vous et reconnectez-vous."
+ "linuxPttSetupNote": "Après avoir exécuté la commande, déconnectez-vous et reconnectez-vous.",
+ "hyprlandConfigWriteWarningTitle": "Les raccourcis Hyprland ne seront pas conservés",
+ "hyprlandConfigWriteWarningDescription": "OpenWhispr ne peut pas écrire dans {{path}} ; les raccourcis ne survivront donc pas à un rechargement de la configuration Hyprland. Assurez-vous que le fichier existe et qu'il est accessible en écriture.",
+ "hyprlandUnbindDescription": "Sur Hyprland, OpenWhispr réserve le raccourci sélectionné. Toute association Hyprland existante utilisant la même combinaison de touches sera supprimée lorsque OpenWhispr enregistrera son raccourci."
},
"meetingHotkey": {
"title": "Raccourci mode réunion",
@@ -1594,7 +1669,8 @@
"description": "Choisissez un moteur pour la dictée et l'enregistrement de notes",
"tabs": {
"dictation": "Dictée",
- "noteRecording": "Enregistrement de notes"
+ "noteRecording": "Enregistrement de notes",
+ "upload": "Importer un audio"
},
"selfHostedStreamingNote": "Nécessite un serveur qui prend en charge la transcription en streaming."
},
@@ -2111,18 +2187,15 @@
"transcribingCloud": "Transcription via le cloud...",
"transcribingLocal": "Transcription locale...",
"transcribingProvider": "Transcription via {{provider}}...",
+ "cancelTranscription": "Annuler la transcription",
"transcriptionComplete": "Transcription terminée",
"openNote": "Ouvrir la note",
"uploadAnother": "Téléverser un autre fichier",
"retry": "Réessayer",
"startOver": "Recommencer",
- "transcriptionSettings": "Paramètres de transcription",
"newFolder": "Nouveau dossier",
"folderName": "Nom du dossier",
"create": "Créer",
- "setupTitle": "Configurer la transcription",
- "setupDescription": "Choisissez comment transcrire votre audio. Cela s'applique également à la dictée en direct.",
- "continue": "Continuer",
"openwhisprCloud": "OpenWhispr Cloud",
"custom": "Personnalisé",
"selectFolder": "Sélectionner un dossier",
@@ -2599,15 +2672,7 @@
"noUpcoming": "Aucun événement à venir",
"meetingStarting": "La réunion commence maintenant",
"today": "Aujourd'hui",
- "tomorrow": "Demain",
- "detection": {
- "title": "Détection de Réunions",
- "description": "Détecter automatiquement quand vous êtes en réunion",
- "processDetection": "Détection d'Applications",
- "processDescription": "Identifier quelle application vous utilisez lorsqu'une réunion est détectée",
- "audioDetection": "Détection Audio",
- "audioDescription": "Notifier lorsqu'une activité prolongée du microphone est détectée"
- }
+ "tomorrow": "Demain"
},
"upcoming": {
"title": "Réunions à venir",
diff --git a/src/locales/it/translation.json b/src/locales/it/translation.json
index 1a3eb8db5..2a0e56982 100644
--- a/src/locales/it/translation.json
+++ b/src/locales/it/translation.json
@@ -101,13 +101,6 @@
"accessibility": "Le impostazioni di accessibilità non sono disponibili su questa piattaforma.",
"systemAudio": "Le impostazioni audio di sistema non sono disponibili su questa piattaforma."
},
- "titleBar": {
- "quitTitle": "Esci da OpenWhispr",
- "quitConfirmTitle": "Uscire da OpenWhispr?",
- "quitConfirmDescription": "Questa operazione chiuderà OpenWhispr e interromperà i processi in background.",
- "quit": "Esci",
- "cancel": "Annulla"
- },
"upgradePrompt": {
"paymentFailed": "Non siamo riusciti a elaborare il pagamento",
"weeklyLimit": "Hai raggiunto il limite settimanale",
@@ -165,14 +158,18 @@
"unknownError": "Une erreur inconnue s'est produite",
"copy": "Copier",
"copied": "Copié",
- "done": "Terminé"
+ "done": "Terminé",
+ "skip": "Salta"
},
"onboarding": {
"steps": {
"welcome": "Benvenuto",
"setup": "Configurazione",
"permissions": "Permessi",
- "activation": "Attivazione",
+ "activation": "Dettatura",
+ "useCase": "Su di te",
+ "meeting": "Riunioni",
+ "finish": "Fine",
"voiceAgent": "Agente vocale"
},
"hotkey": {
@@ -187,17 +184,17 @@
"permissions": {
"title": "Permessi",
"microphoneTitle": "Microfono",
- "microphoneDescription": "Cattura la tua voce per la trascrizione",
+ "microphoneDescription": "Trasforma la tua voce in testo. Non viene registrato nulla finché non premi la scorciatoia.",
"grant": "Concedi",
"grantAccess": "Concedi accesso",
"accessibilityTitle": "Accessibilità",
- "accessibilityDescription": "Permette di incollare automaticamente il testo trascritto in qualsiasi app",
+ "accessibilityDescription": "Digita il testo finale direttamente nell'app in cui ti trovi — documenti, email, chat.",
"testAndGrant": "Testa e concedi",
"requiredForApp": "Necessario per usare OpenWhispr",
"microphoneRequired": "Accesso al microfono richiesto",
"openSystemSettings": "Apri Impostazioni di Sistema",
"systemAudioTitle": "Audio di Sistema",
- "systemAudioDescription": "Trascrivi riunioni, chiamate, lezioni, podcast e altri audio di sistema.",
+ "systemAudioDescription": "Permette al registratore delle riunioni di sentire l'altro lato delle tue chiamate — riunioni, lezioni, podcast. Puoi attivarlo più tardi nelle Impostazioni.",
"optional": "Facoltativo",
"recommended": "Consigliato",
"accessibilityTroubleshooting": "In Impostazioni di Sistema → Accessibilità, disattiva l'interruttore di OpenWhispr e riattivalo. Se non funziona, rimuovi OpenWhispr dall'elenco e aggiungilo di nuovo. Ancora problemi? Scrivi a [email protected]."
@@ -208,7 +205,7 @@
"preferredLanguage": "Lingua preferita"
},
"activation": {
- "title": "Configurazione attivazione",
+ "title": "Configurazione dettatura",
"description": "Configura come avviare la dettatura",
"hotkey": "Scorciatoia",
"mode": "Modalità",
@@ -220,10 +217,19 @@
"textareaPlaceholder": "Clicca qui e usa la scorciatoia per dettare..."
},
"voiceAgent": {
- "title": "Scorciatoia dell'agente vocale",
+ "title": "Configurazione dell'agente vocale",
"description": "Parla con il tuo agente IA con un solo tasto",
"hotkey": "Scorciatoia",
"howItWorks": "Premi il tasto e di' cosa vuoi — ad esempio “scrivi un breve messaggio di ringraziamento”. {{agentName}} scrive il risultato dove si trova il cursore. Non serve dire prima “Hey {{agentName}}”.",
+ "test": "Provalo",
+ "testInstruction": "Fai clic qui sotto, premi {{hotkey}} e pronuncia un comando",
+ "testSetHotkey": "Imposta una scorciatoia sopra per provarlo",
+ "testPlaceholder": "Fai clic qui, premi la tua scorciatoia e pronuncia uno degli esempi...",
+ "examples": [
+ "Traduci in italiano: «Parlo più velocemente di quanto scrivo»",
+ "Scrivi una breve email al mio capo dicendogli che voglio una promozione, si chiama Mark",
+ "Quanto fa 5 × 5?"
+ ],
"optionalNote": "Facoltativo — puoi impostarla o modificarla in qualsiasi momento nelle impostazioni."
},
"connectivity": {
@@ -231,6 +237,71 @@
"body": "{{cause}} Puoi passare al motore locale o continuare e riprovare più tardi.",
"useLocal": "Usa motore locale",
"continue": "Continua comunque"
+ },
+ "useCase": {
+ "title": "Cosa ti porta qui?",
+ "description": "Siamo un piccolo team e pubblichiamo ogni settimana. Ciò che scegli configura l'app per te — e ci dice cosa costruire dopo.",
+ "noteLabel": "C'è altro che vorresti farci sapere?",
+ "notePlaceholder": "Facoltativo",
+ "options": {
+ "dictation": {
+ "title": "Scrivere più velocemente",
+ "description": "Detta in qualsiasi app invece di digitare"
+ },
+ "meetings": {
+ "title": "Note e riepiloghi delle riunioni",
+ "description": "Registra, trascrivi e riassumi le riunioni"
+ },
+ "healthcare": {
+ "title": "Trascrizione medica, clinica e terapeutica",
+ "description": "Detta note dei pazienti, note di seduta e referti"
+ },
+ "translation": {
+ "title": "Tradurre lingue",
+ "description": "Parla una lingua, scrivi in un'altra"
+ },
+ "ai": {
+ "title": "Parlare con la mia IA",
+ "description": "Guida con la voce ChatGPT, Claude e altri agenti"
+ },
+ "upload": {
+ "title": "Caricare file audio",
+ "description": "Carica e trascrivi MP3, OGG e altro"
+ }
+ },
+ "selectHint": "Seleziona tutte le opzioni pertinenti"
+ },
+ "meeting": {
+ "title": "Note delle riunioni",
+ "description": "Cattura e riassumi le tue riunioni",
+ "autoDetect": "OpenWhispr rileva automaticamente quando sei in riunione e ti propone di avviare le note — nulla viene registrato senza di te.",
+ "notification": {
+ "title": "Riunione rilevata",
+ "body": "Sembra che tu sia in riunione. Vuoi prendere appunti?",
+ "cta": "Avvia registrazione"
+ },
+ "hotkeyLabel": "Scorciatoia riunione",
+ "hotkeyHint": "Facoltativa — premila in qualsiasi riunione per avviare subito una nota."
+ },
+ "finish": {
+ "title": "Tutto pronto",
+ "cloudDescription": "Sei su OpenWhispr Cloud: veloce, preciso, zero conservazione dei dati e 2.000 parole gratis a settimana. Preferisci tutto sul tuo dispositivo? Passa all'elaborazione locale nelle Impostazioni.",
+ "localDescription": "Sei configurato con l'elaborazione locale o con la tua chiave. Regola come viene elaborato il tuo audio in qualsiasi momento nelle Impostazioni.",
+ "cleanupNote": "La pulizia del testo con IA usa impostazioni predefinite sensate. Puoi regolarla in qualsiasi momento nelle Impostazioni.",
+ "openSettings": "Apri Impostazioni",
+ "skipForNow": "Salta per ora",
+ "corti": {
+ "title": "Ci hai detto che sei qui per la trascrizione clinica",
+ "description": "Siamo partner di Corti — riconoscimento vocale di livello clinico con la massima accuratezza, conforme alla HIPAA.",
+ "createAccount": "Crea il tuo account Corti",
+ "creditBadge": "50 $ di credito gratuito",
+ "regionHint": "Scegli dove elaborare il tuo audio — USA o UE.",
+ "useCorti": "Usa Corti",
+ "skip": "Non ora",
+ "step1": "Registrati su corti.ai",
+ "step2": "Apri la console Corti e crea le credenziali API",
+ "step3": "Incolla qui sotto Client ID e Secret"
+ }
}
},
"streaming": {
@@ -744,7 +815,8 @@
"resendIn": "Reinvia tra {{seconds}}s",
"verifiedDescription": "Il tuo account è pronto.",
"verifiedTitle": "E-mail verificata",
- "waiting": "In attesa della verifica..."
+ "waiting": "In attesa della verifica...",
+ "backToSignIn": "Torna all'accesso"
},
"errorBoundary": {
"description": "Si è verificato un errore imprevisto. Ricarica per riprovare.",
@@ -1309,7 +1381,10 @@
"linuxPttPermissionDescription": "Esegui questo comando e riavvia la sessione: sudo usermod -aG input $USER",
"linuxPttSetupTitle": "Tieni premuto per parlare richiede configurazione",
"linuxPttSetupDescription": "Il tuo utente ha bisogno di accesso ai dispositivi di input della tastiera.",
- "linuxPttSetupNote": "Dopo aver eseguito il comando, esci e riaccedi."
+ "linuxPttSetupNote": "Dopo aver eseguito il comando, esci e riaccedi.",
+ "hyprlandConfigWriteWarningTitle": "Le scorciatoie di Hyprland non saranno persistenti",
+ "hyprlandConfigWriteWarningDescription": "OpenWhispr non può scrivere in {{path}}, quindi le scorciatoie non sopravvivranno a un ricaricamento della configurazione di Hyprland. Assicurati che il file esista e sia scrivibile.",
+ "hyprlandUnbindDescription": "Su Hyprland, OpenWhispr riserva la scorciatoia selezionata. Qualsiasi associazione Hyprland esistente che usa la stessa combinazione di tasti verrà rimossa quando OpenWhispr registra la sua scorciatoia."
},
"meetingHotkey": {
"title": "Scorciatoia modalità meeting",
@@ -1546,7 +1621,8 @@
"description": "Scegli un motore per dettatura e registrazione di note",
"tabs": {
"dictation": "Dettatura",
- "noteRecording": "Registrazione note"
+ "noteRecording": "Registrazione note",
+ "upload": "Carica audio"
},
"selfHostedStreamingNote": "Richiede un server che supporti la trascrizione in streaming."
},
@@ -2000,18 +2076,15 @@
"transcribingCloud": "Trascrizione nel cloud...",
"transcribingLocal": "Trascrizione locale...",
"transcribingProvider": "Trascrizione tramite {{provider}}...",
+ "cancelTranscription": "Annulla trascrizione",
"transcriptionComplete": "Trascrizione completata",
"openNote": "Apri nota",
"uploadAnother": "Carica un altro",
"retry": "Riprova",
"startOver": "Ricomincia",
- "transcriptionSettings": "Impostazioni di trascrizione",
"newFolder": "Nuova cartella",
"folderName": "Nome cartella",
"create": "Crea",
- "setupTitle": "Configura la trascrizione",
- "setupDescription": "Scegli come trascrivere il tuo audio. Questo si applica anche alla dettatura dal vivo.",
- "continue": "Continua",
"openwhisprCloud": "OpenWhispr Cloud",
"custom": "Personalizzato",
"selectFolder": "Seleziona cartella",
@@ -2551,15 +2624,7 @@
"noUpcoming": "Nessun evento in programma",
"meetingStarting": "La riunione inizia ora",
"today": "Oggi",
- "tomorrow": "Domani",
- "detection": {
- "title": "Rilevamento Riunioni",
- "description": "Rileva automaticamente quando sei in una riunione",
- "processDetection": "Rilevamento Applicazioni",
- "processDescription": "Identifica quale app stai usando quando viene rilevata una riunione",
- "audioDetection": "Rilevamento Audio",
- "audioDescription": "Notifica quando viene rilevata un'attività microfono prolungata"
- }
+ "tomorrow": "Domani"
},
"upcoming": {
"title": "Riunioni in programma",
diff --git a/src/locales/ja/translation.json b/src/locales/ja/translation.json
index 7fbfb98b6..89ae68758 100644
--- a/src/locales/ja/translation.json
+++ b/src/locales/ja/translation.json
@@ -101,13 +101,6 @@
"accessibility": "このプラットフォームではアクセシビリティ設定を利用できません。",
"systemAudio": "システムオーディオの設定はこのプラットフォームでは利用できません。"
},
- "titleBar": {
- "quitTitle": "OpenWhispr を終了",
- "quitConfirmTitle": "OpenWhispr を終了しますか?",
- "quitConfirmDescription": "OpenWhispr を終了し、バックグラウンドプロセスを停止します。",
- "quit": "終了",
- "cancel": "キャンセル"
- },
"upgradePrompt": {
"paymentFailed": "お支払いを処理できませんでした",
"weeklyLimit": "週間の利用上限に達しました",
@@ -165,14 +158,18 @@
"unknownError": "Ocurrió un error desconocido",
"copy": "Copiar",
"copied": "Copiado",
- "done": "Listo"
+ "done": "Listo",
+ "skip": "スキップ"
},
"onboarding": {
"steps": {
"welcome": "ようこそ",
"setup": "セットアップ",
"permissions": "権限",
- "activation": "アクティベーション",
+ "activation": "ディクテーション",
+ "useCase": "あなたについて",
+ "meeting": "会議",
+ "finish": "完了",
"voiceAgent": "ボイスエージェント"
},
"hotkey": {
@@ -187,17 +184,17 @@
"permissions": {
"title": "権限",
"microphoneTitle": "マイク",
- "microphoneDescription": "文字起こしのためにあなたの声を録音します",
+ "microphoneDescription": "あなたの声をテキストに変換します。ホットキーを押すまで何も録音されません。",
"grant": "許可",
"grantAccess": "アクセスを許可",
"accessibilityTitle": "アクセシビリティ",
- "accessibilityDescription": "文字起こしテキストを任意のアプリに自動貼り付けします",
+ "accessibilityDescription": "完成したテキストを、今使っているアプリ(ドキュメント、メール、チャット)に直接入力します。",
"testAndGrant": "テストして許可",
"requiredForApp": "OpenWhispr の動作に必要です",
"microphoneRequired": "マイクへのアクセスが必要です",
"openSystemSettings": "システム設定を開く",
"systemAudioTitle": "システムオーディオ",
- "systemAudioDescription": "会議、通話、講義、ポッドキャストなど、システム音声を文字起こしします。",
+ "systemAudioDescription": "会議レコーダーが通話の相手側の音声(会議、講義、ポッドキャストなど)を聴けるようにします。後から設定で有効にできます。",
"optional": "任意",
"recommended": "推奨",
"accessibilityTroubleshooting": "システム設定 → アクセシビリティで、OpenWhisprのスイッチをオフにしてから再度オンにしてください。それでもうまくいかない場合は、リストからOpenWhisprを削除して再度追加してみてください。それでも解決しませんか?[email protected] までメールでお問い合わせください。"
@@ -208,7 +205,7 @@
"preferredLanguage": "優先言語"
},
"activation": {
- "title": "アクティベーション設定",
+ "title": "ディクテーション設定",
"description": "ディクテーションの起動方法を設定",
"hotkey": "ホットキー",
"mode": "モード",
@@ -220,10 +217,19 @@
"textareaPlaceholder": "ここをクリックしてホットキーでディクテーション..."
},
"voiceAgent": {
- "title": "ボイスエージェントホットキー",
+ "title": "ボイスエージェント設定",
"description": "ワンキーでAIエージェントに話しかけられます",
"hotkey": "ホットキー",
"howItWorks": "キーを押して、してほしいことを話すだけ。例えば「お礼のメッセージを書いて」と言えば、{{agentName}}がカーソル位置に結果を入力します。「Hey {{agentName}}」と言う必要はありません。",
+ "test": "試す",
+ "testInstruction": "下をクリックし、{{hotkey}} を押してコマンドを話してください",
+ "testSetHotkey": "上でホットキーを設定すると試せます",
+ "testPlaceholder": "ここをクリックし、ホットキーを押して例の一つを話してください...",
+ "examples": [
+ "イタリア語に翻訳して:「私はタイプするより話す方が速い」",
+ "上司に昇進したいと伝える短いメールを書いて、彼の名前はマークです",
+ "5 × 5 はいくつ?"
+ ],
"optionalNote": "任意です。設定からいつでも追加・変更できます。"
},
"connectivity": {
@@ -231,6 +237,71 @@
"body": "{{cause}} ローカルエンジンに切り替えるか、続行して後でもう一度お試しください。",
"useLocal": "ローカルエンジンを使う",
"continue": "そのまま続行"
+ },
+ "useCase": {
+ "title": "どんな目的でお使いですか?",
+ "description": "私たちは小さなチームで、毎週リリースしています。選んだ内容に合わせてアプリを設定し、次に何を作るかの参考にします。",
+ "noteLabel": "他に伝えておきたいことはありますか?",
+ "notePlaceholder": "任意",
+ "options": {
+ "dictation": {
+ "title": "より速く書く",
+ "description": "タイピングの代わりにどのアプリでも音声入力"
+ },
+ "meetings": {
+ "title": "会議のメモと要約",
+ "description": "会議を録音・文字起こし・要約"
+ },
+ "healthcare": {
+ "title": "医療・臨床・セラピーの文字起こし",
+ "description": "患者メモ、セッション記録、レポートを音声入力"
+ },
+ "translation": {
+ "title": "言語の翻訳",
+ "description": "話す言語とは別の言語で入力"
+ },
+ "ai": {
+ "title": "AI との対話",
+ "description": "ChatGPT、Claude などのエージェントを声で操作"
+ },
+ "upload": {
+ "title": "音声ファイルのアップロード",
+ "description": "MP3、OGG などをアップロードして文字起こし"
+ }
+ },
+ "selectHint": "当てはまるものをすべて選択してください"
+ },
+ "meeting": {
+ "title": "会議メモ",
+ "description": "会議を記録して要約します",
+ "autoDetect": "OpenWhispr は会議中であることを自動的に検出し、メモの開始を提案します。あなたの操作なしに録音されることはありません。",
+ "notification": {
+ "title": "会議を検出しました",
+ "body": "会議中のようです。メモを取りますか?",
+ "cta": "録音を開始"
+ },
+ "hotkeyLabel": "会議ホットキー",
+ "hotkeyHint": "任意 — 会議中に押すとすぐにメモを開始できます。"
+ },
+ "finish": {
+ "title": "準備完了",
+ "cloudDescription": "OpenWhispr Cloud をご利用中です — 高速・高精度、データ保持なし、毎週 2,000 ワード無料。すべてを端末内で処理したい場合は、設定からローカル処理に切り替えられます。",
+ "localDescription": "ローカル処理またはご自身の API キーで設定済みです。音声の処理方法はいつでも設定から変更できます。",
+ "cleanupNote": "AI によるテキスト整形は適切な初期設定で動作します。設定からいつでも調整できます。",
+ "openSettings": "設定を開く",
+ "skipForNow": "今はスキップ",
+ "corti": {
+ "title": "臨床文字起こしが目的とのことですね",
+ "description": "私たちは Corti と提携しています — 最高精度の臨床グレード音声認識で、HIPAA に準拠しています。",
+ "createAccount": "Corti アカウントを作成",
+ "creditBadge": "50ドルの無料クレジット",
+ "regionHint": "音声の処理場所を選べます — 米国または EU。",
+ "useCorti": "Corti を使う",
+ "skip": "後で",
+ "step1": "corti.ai でアカウントを作成",
+ "step2": "Corti コンソールで API 認証情報を作成",
+ "step3": "Client ID と Secret を下に貼り付け"
+ }
}
},
"streaming": {
@@ -744,7 +815,8 @@
"resendIn": "{{seconds}} 秒後に再送信可能",
"verifiedDescription": "アカウントの設定が完了しました。",
"verifiedTitle": "メール確認完了",
- "waiting": "確認を待っています..."
+ "waiting": "確認を待っています...",
+ "backToSignIn": "サインインに戻る"
},
"errorBoundary": {
"description": "予期しないエラーが発生しました。再読み込みしてもう一度お試しください。",
@@ -1309,7 +1381,10 @@
"linuxPttPermissionDescription": "次のコマンドを実行してログアウト/ログインしてください:sudo usermod -aG input $USER",
"linuxPttSetupTitle": "長押しして話すには設定が必要です",
"linuxPttSetupDescription": "キーボード入力デバイスへのアクセス権が必要です。",
- "linuxPttSetupNote": "コマンド実行後、ログアウトして再度ログインしてください。"
+ "linuxPttSetupNote": "コマンド実行後、ログアウトして再度ログインしてください。",
+ "hyprlandConfigWriteWarningTitle": "Hyprland のキーバインドは永続化されません",
+ "hyprlandConfigWriteWarningDescription": "OpenWhispr は {{path}} に書き込めないため、Hyprland の設定を再読み込みするとキーバインドは維持されません。ファイルが存在し、書き込み可能であることを確認してください。",
+ "hyprlandUnbindDescription": "Hyprland では、OpenWhispr が選択したショートカットを使用します。同じキーの組み合わせを使う既存の Hyprland バインドは、OpenWhispr がショートカットを登録すると解除されます。"
},
"meetingHotkey": {
"title": "ミーティングモードホットキー",
@@ -1546,7 +1621,8 @@
"description": "ディクテーションとノート録音用のエンジンを選択",
"tabs": {
"dictation": "ディクテーション",
- "noteRecording": "ノート録音"
+ "noteRecording": "ノート録音",
+ "upload": "音声のアップロード"
},
"selfHostedStreamingNote": "ストリーミング文字起こしに対応したサーバーが必要です。"
},
@@ -1983,18 +2059,15 @@
"transcribingCloud": "クラウドで文字起こし中...",
"transcribingLocal": "ローカルで文字起こし中...",
"transcribingProvider": "{{provider}} で文字起こし中...",
+ "cancelTranscription": "文字起こしをキャンセル",
"transcriptionComplete": "文字起こし完了",
"openNote": "ノートを開く",
"uploadAnother": "別のファイルをアップロード",
"retry": "再試行",
"startOver": "やり直す",
- "transcriptionSettings": "文字起こし設定",
"newFolder": "新しいフォルダ",
"folderName": "フォルダ名",
"create": "作成",
- "setupTitle": "文字起こしを設定",
- "setupDescription": "音声の文字起こし方法を選択してください。ライブディクテーションにも適用されます。",
- "continue": "続ける",
"openwhisprCloud": "OpenWhispr Cloud",
"custom": "カスタム",
"selectFolder": "フォルダを選択",
@@ -2551,15 +2624,7 @@
"noUpcoming": "今後の予定はありません",
"meetingStarting": "ミーティングが開始されます",
"today": "今日",
- "tomorrow": "明日",
- "detection": {
- "title": "ミーティング検出",
- "description": "ミーティング中であることを自動的に検出する",
- "processDetection": "アプリ検出",
- "processDescription": "ミーティングが検出されたときに使用中のアプリを特定する",
- "audioDetection": "オーディオ検出",
- "audioDescription": "持続的なマイク使用が検出されたときに通知する"
- }
+ "tomorrow": "明日"
},
"upcoming": {
"title": "今後の会議",
diff --git a/src/locales/pt/translation.json b/src/locales/pt/translation.json
index c66c9eac1..e98d513f7 100644
--- a/src/locales/pt/translation.json
+++ b/src/locales/pt/translation.json
@@ -137,14 +137,18 @@
"unknownError": "Ocurrió un error desconocido",
"copy": "Copiar",
"copied": "Copiado",
- "done": "Listo"
+ "done": "Listo",
+ "skip": "Pular"
},
"onboarding": {
"steps": {
"welcome": "Boas-vindas",
"setup": "Configuração",
"permissions": "Permissões",
- "activation": "Ativação",
+ "activation": "Ditado",
+ "useCase": "Sobre você",
+ "meeting": "Reuniões",
+ "finish": "Concluir",
"voiceAgent": "Agente de voz"
},
"hotkey": {
@@ -159,17 +163,17 @@
"permissions": {
"title": "Permissões",
"microphoneTitle": "Microfone",
- "microphoneDescription": "Captura a sua voz para transcrição",
+ "microphoneDescription": "Transforma sua fala em texto. Nada é gravado até você pressionar seu atalho.",
"grant": "Conceder",
"grantAccess": "Conceder acesso",
"accessibilityTitle": "Acessibilidade",
- "accessibilityDescription": "Permite colar automaticamente o texto transcrito em qualquer aplicativo",
+ "accessibilityDescription": "Digita o texto final diretamente no aplicativo em que você estiver — documentos, e-mail, chat.",
"testAndGrant": "Testar e conceder",
"requiredForApp": "Necessário para o OpenWhispr funcionar",
"microphoneRequired": "Acesso ao microfone necessário",
"openSystemSettings": "Abrir Configurações do Sistema",
"systemAudioTitle": "Áudio do Sistema",
- "systemAudioDescription": "Transcreva reuniões, chamadas, palestras, podcasts e outros áudios do sistema.",
+ "systemAudioDescription": "Permite que o gravador de reuniões ouça o outro lado das suas chamadas — reuniões, aulas, podcasts. Você pode ativar depois nas Configurações.",
"optional": "Opcional",
"recommended": "Recomendado",
"accessibilityTroubleshooting": "Em Configurações do Sistema → Acessibilidade, desative o interruptor do OpenWhispr e ative-o novamente. Se isso não funcionar, remova o OpenWhispr da lista e adicione-o de volta. Ainda com problemas? Envie um e-mail para [email protected]."
@@ -180,7 +184,7 @@
"preferredLanguage": "Idioma preferido"
},
"activation": {
- "title": "Configuração de ativação",
+ "title": "Configuração de ditado",
"description": "Configure como acionar o ditado",
"hotkey": "Atalho",
"mode": "Modo",
@@ -192,10 +196,19 @@
"textareaPlaceholder": "Clique aqui e use seu atalho para ditar..."
},
"voiceAgent": {
- "title": "Atalho do agente de voz",
+ "title": "Configuração do agente de voz",
"description": "Fale com seu agente de IA com um único atalho",
"hotkey": "Atalho",
"howItWorks": "Pressione a tecla e diga o que quer — por exemplo, “escreva uma breve nota de agradecimento”. {{agentName}} escreve o resultado onde estiver o cursor. Não precisa dizer “Hey {{agentName}}” antes.",
+ "test": "Experimente",
+ "testInstruction": "Clique abaixo, pressione {{hotkey}} e diga um comando",
+ "testSetHotkey": "Defina um atalho acima para experimentar",
+ "testPlaceholder": "Clique aqui, pressione seu atalho e diga um dos exemplos...",
+ "examples": [
+ "Traduza para o italiano: «Falo mais rápido do que escrevo»",
+ "Escreva um e-mail curto para o meu chefe dizendo que quero uma promoção, ele se chama Mark",
+ "Quanto é 5 × 5?"
+ ],
"optionalNote": "Opcional — você pode definir ou alterar a qualquer momento nas configurações."
},
"connectivity": {
@@ -203,6 +216,71 @@
"body": "{{cause}} Você pode mudar para o motor local ou continuar e tentar de novo depois.",
"useLocal": "Usar motor local",
"continue": "Continuar mesmo assim"
+ },
+ "useCase": {
+ "title": "O que traz você aqui?",
+ "description": "Somos uma equipe pequena lançando melhorias toda semana. O que você escolher configura o app para você — e nos diz o que construir em seguida.",
+ "noteLabel": "Algo mais que gostaria de nos contar?",
+ "notePlaceholder": "Opcional",
+ "options": {
+ "dictation": {
+ "title": "Escrever mais rápido",
+ "description": "Dite em qualquer aplicativo em vez de digitar"
+ },
+ "meetings": {
+ "title": "Notas e resumos de reuniões",
+ "description": "Grave, transcreva e resuma suas reuniões"
+ },
+ "healthcare": {
+ "title": "Transcrição médica, clínica e terapêutica",
+ "description": "Dite notas de pacientes, notas de sessão e relatórios"
+ },
+ "translation": {
+ "title": "Traduzir idiomas",
+ "description": "Fale um idioma, escreva em outro"
+ },
+ "ai": {
+ "title": "Falar com minha IA",
+ "description": "Controle por voz o ChatGPT, o Claude e outros agentes"
+ },
+ "upload": {
+ "title": "Enviar arquivos de áudio",
+ "description": "Envie e transcreva MP3, OGG e mais"
+ }
+ },
+ "selectHint": "Selecione todas as opções aplicáveis"
+ },
+ "meeting": {
+ "title": "Notas de reunião",
+ "description": "Capture e resuma suas reuniões",
+ "autoDetect": "O OpenWhispr detecta automaticamente quando você está em uma reunião e oferece iniciar notas — nada é gravado sem você.",
+ "notification": {
+ "title": "Reunião detectada",
+ "body": "Parece que você está em uma reunião. Quer fazer anotações?",
+ "cta": "Começar a gravar"
+ },
+ "hotkeyLabel": "Atalho de reunião",
+ "hotkeyHint": "Opcional — pressione-o em qualquer reunião para iniciar uma nota na hora."
+ },
+ "finish": {
+ "title": "Tudo pronto",
+ "cloudDescription": "Você está no OpenWhispr Cloud — rápido, preciso, zero retenção de dados e 2.000 palavras grátis por semana. Prefere tudo no seu dispositivo? Mude para o processamento local nas Configurações.",
+ "localDescription": "Você está configurado com processamento local ou sua própria chave. Ajuste como seu áudio é processado a qualquer momento nas Configurações.",
+ "cleanupNote": "A limpeza de texto por IA usa padrões sensatos. Você pode ajustá-la a qualquer momento nas Configurações.",
+ "openSettings": "Abrir Configurações",
+ "skipForNow": "Pular por enquanto",
+ "corti": {
+ "title": "Você nos disse que está aqui pela transcrição clínica",
+ "description": "Firmamos parceria com a Corti — voz para texto de nível clínico com a maior precisão e em conformidade com a HIPAA.",
+ "createAccount": "Crie sua conta Corti",
+ "creditBadge": "US$ 50 de crédito grátis",
+ "regionHint": "Escolha onde seu áudio é processado — EUA ou UE.",
+ "useCorti": "Usar Corti",
+ "skip": "Agora não",
+ "step1": "Cadastre-se em corti.ai",
+ "step2": "Abra o console da Corti e crie credenciais de API",
+ "step3": "Cole seu Client ID e Secret abaixo"
+ }
}
},
"streaming": {
@@ -716,7 +794,8 @@
"resendIn": "Reenviar em {{seconds}}s",
"verifiedDescription": "Sua conta está pronta.",
"verifiedTitle": "E-mail verificado",
- "waiting": "Aguardando verificação..."
+ "waiting": "Aguardando verificação...",
+ "backToSignIn": "Voltar para o login"
},
"errorBoundary": {
"description": "Ocorreu um erro inesperado. Recarregue para tentar novamente.",
@@ -1281,7 +1360,10 @@
"linuxPttPermissionDescription": "Execute este comando e faça logout: sudo usermod -aG input $USER",
"linuxPttSetupTitle": "Manter pressionado para falar requer configuração",
"linuxPttSetupDescription": "O seu utilizador precisa de acesso aos dispositivos de entrada do teclado.",
- "linuxPttSetupNote": "Depois de executar o comando, termine e reinicie a sessão."
+ "linuxPttSetupNote": "Depois de executar o comando, termine e reinicie a sessão.",
+ "hyprlandConfigWriteWarningTitle": "Os atalhos do Hyprland não serão mantidos",
+ "hyprlandConfigWriteWarningDescription": "O OpenWhispr não consegue escrever em {{path}}, por isso os atalhos não sobreviverão a um recarregamento da configuração do Hyprland. Certifique-se de que o ficheiro existe e pode ser escrito.",
+ "hyprlandUnbindDescription": "No Hyprland, o OpenWhispr reserva o atalho selecionado. Qualquer associação existente do Hyprland que use a mesma combinação de teclas será removida quando o OpenWhispr registar o seu atalho."
},
"meetingHotkey": {
"title": "Atalho modo reunião",
@@ -1518,7 +1600,8 @@
"description": "Escolha um motor para ditado e gravação de notas",
"tabs": {
"dictation": "Ditado",
- "noteRecording": "Gravação de notas"
+ "noteRecording": "Gravação de notas",
+ "upload": "Enviar áudio"
},
"selfHostedStreamingNote": "Requer um servidor que suporte transcrição em streaming."
},
@@ -1827,13 +1910,6 @@
}
}
},
- "titleBar": {
- "quitTitle": "Sair do OpenWhispr",
- "quitConfirmTitle": "Sair do OpenWhispr?",
- "quitConfirmDescription": "Isso fechará o OpenWhispr e encerrará os processos em segundo plano.",
- "quit": "Sair",
- "cancel": "Cancelar"
- },
"upgradePrompt": {
"paymentFailed": "Não foi possível processar seu pagamento",
"weeklyLimit": "Você atingiu seu limite semanal",
@@ -2000,18 +2076,15 @@
"transcribingCloud": "Transcrevendo pela nuvem...",
"transcribingLocal": "Transcrevendo localmente...",
"transcribingProvider": "Transcrevendo via {{provider}}...",
+ "cancelTranscription": "Cancelar transcrição",
"transcriptionComplete": "Transcrição concluída",
"openNote": "Abrir nota",
"uploadAnother": "Enviar outro",
"retry": "Tentar novamente",
"startOver": "Recomeçar",
- "transcriptionSettings": "Configurações de transcrição",
"newFolder": "Nova pasta",
"folderName": "Nome da pasta",
"create": "Criar",
- "setupTitle": "Configurar transcrição",
- "setupDescription": "Escolha como transcrever seu áudio. Isso também se aplica à ditação ao vivo.",
- "continue": "Continuar",
"openwhisprCloud": "OpenWhispr Cloud",
"custom": "Personalizado",
"selectFolder": "Selecionar pasta",
@@ -2551,15 +2624,7 @@
"noUpcoming": "Nenhum evento próximo",
"meetingStarting": "A reunião começa agora",
"today": "Hoje",
- "tomorrow": "Amanhã",
- "detection": {
- "title": "Detecção de Reuniões",
- "description": "Detectar automaticamente quando você está em uma reunião",
- "processDetection": "Detecção de Aplicativos",
- "processDescription": "Identificar qual aplicativo você está usando quando uma reunião é detectada",
- "audioDetection": "Detecção de Áudio",
- "audioDescription": "Notificar quando atividade prolongada do microfone for detectada"
- }
+ "tomorrow": "Amanhã"
},
"upcoming": {
"title": "Próximas reuniões",
diff --git a/src/locales/ru/translation.json b/src/locales/ru/translation.json
index 624e1e913..3d921c223 100644
--- a/src/locales/ru/translation.json
+++ b/src/locales/ru/translation.json
@@ -101,13 +101,6 @@
"accessibility": "Настройки универсального доступа недоступны на этой платформе.",
"systemAudio": "Настройки системного аудио недоступны на этой платформе."
},
- "titleBar": {
- "quitTitle": "Закрыть OpenWhispr",
- "quitConfirmTitle": "Закрыть OpenWhispr?",
- "quitConfirmDescription": "Это закроет OpenWhispr и остановит фоновые процессы.",
- "quit": "Закрыть",
- "cancel": "Отмена"
- },
"upgradePrompt": {
"paymentFailed": "Не удалось обработать платёж",
"weeklyLimit": "Вы достигли недельного лимита",
@@ -165,14 +158,18 @@
"unknownError": "Ein unbekannter Fehler ist aufgetreten",
"copy": "Kopieren",
"copied": "Kopiert",
- "done": "Fertig"
+ "done": "Fertig",
+ "skip": "Пропустить"
},
"onboarding": {
"steps": {
"welcome": "Приветствие",
"setup": "Настройка",
"permissions": "Разрешения",
- "activation": "Активация",
+ "activation": "Диктовка",
+ "useCase": "О вас",
+ "meeting": "Встречи",
+ "finish": "Готово",
"voiceAgent": "Голосовой агент"
},
"hotkey": {
@@ -187,17 +184,17 @@
"permissions": {
"title": "Разрешения",
"microphoneTitle": "Микрофон",
- "microphoneDescription": "Записывает ваш голос для транскрипции",
+ "microphoneDescription": "Превращает вашу речь в текст. Ничего не записывается, пока вы не нажмёте горячую клавишу.",
"grant": "Предоставить",
"grantAccess": "Предоставить доступ",
"accessibilityTitle": "Универсальный доступ",
- "accessibilityDescription": "Позволяет автоматически вставлять транскрибированный текст в любое приложение",
+ "accessibilityDescription": "Вводит готовый текст прямо в приложение, где вы находитесь, — документы, почта, чат.",
"testAndGrant": "Проверить и предоставить",
"requiredForApp": "Необходимо для работы OpenWhispr",
"microphoneRequired": "Требуется доступ к микрофону",
"openSystemSettings": "Открыть Системные настройки",
"systemAudioTitle": "Системное аудио",
- "systemAudioDescription": "Транскрибируйте совещания, звонки, лекции, подкасты и другое системное аудио.",
+ "systemAudioDescription": "Позволяет рекордеру встреч слышать собеседников в ваших звонках — встречи, лекции, подкасты. Можно включить позже в Настройках.",
"optional": "Необязательно",
"recommended": "Рекомендуется",
"accessibilityTroubleshooting": "В Системных настройках → Универсальный доступ выключите переключатель OpenWhispr и снова включите его. Если это не помогло, удалите OpenWhispr из списка и добавьте заново. Всё ещё не работает? Напишите на [email protected]."
@@ -208,7 +205,7 @@
"preferredLanguage": "Предпочитаемый язык"
},
"activation": {
- "title": "Настройка активации",
+ "title": "Настройка диктовки",
"description": "Настройте способ запуска диктовки",
"hotkey": "Горячая клавиша",
"mode": "Режим",
@@ -220,10 +217,19 @@
"textareaPlaceholder": "Нажмите сюда и используйте горячую клавишу для диктовки..."
},
"voiceAgent": {
- "title": "Горячая клавиша голосового агента",
+ "title": "Настройка голосового агента",
"description": "Обращайтесь к ИИ-агенту одним нажатием",
"hotkey": "Горячая клавиша",
"howItWorks": "Нажмите клавишу и скажите, что вам нужно — например, «напиши короткую благодарственную записку». {{agentName}} напечатает результат там, где находится курсор. Говорить «Hey {{agentName}}» не нужно.",
+ "test": "Попробуйте",
+ "testInstruction": "Нажмите ниже, нажмите {{hotkey}} и произнесите команду",
+ "testSetHotkey": "Задайте горячую клавишу выше, чтобы попробовать",
+ "testPlaceholder": "Нажмите здесь, нажмите горячую клавишу и произнесите один из примеров...",
+ "examples": [
+ "Переведи на итальянский: «Я говорю быстрее, чем печатаю»",
+ "Напиши короткое письмо начальнику о том, что я хочу повышение, его зовут Марк",
+ "Сколько будет 5 × 5?"
+ ],
"optionalNote": "Необязательно — вы можете настроить или изменить её в любое время в настройках."
},
"connectivity": {
@@ -231,6 +237,71 @@
"body": "{{cause}} Вы можете переключиться на локальный движок или продолжить и повторить попытку позже.",
"useLocal": "Использовать локальный движок",
"continue": "Продолжить всё равно"
+ },
+ "useCase": {
+ "title": "Что вас сюда привело?",
+ "description": "Мы — небольшая команда и выпускаем обновления каждую неделю. Ваш выбор настраивает приложение под вас — и подсказывает нам, что делать дальше.",
+ "noteLabel": "Хотите рассказать что-то ещё?",
+ "notePlaceholder": "Необязательно",
+ "options": {
+ "dictation": {
+ "title": "Писать быстрее",
+ "description": "Диктуйте в любом приложении вместо набора текста"
+ },
+ "meetings": {
+ "title": "Заметки и резюме встреч",
+ "description": "Записывайте, расшифровывайте и резюмируйте встречи"
+ },
+ "healthcare": {
+ "title": "Медицинская, клиническая и терапевтическая транскрипция",
+ "description": "Диктуйте записи пациентов, заметки сессий и отчёты"
+ },
+ "translation": {
+ "title": "Перевод языков",
+ "description": "Говорите на одном языке — печатайте на другом"
+ },
+ "ai": {
+ "title": "Общение с моим ИИ",
+ "description": "Управляйте голосом ChatGPT, Claude и другими агентами"
+ },
+ "upload": {
+ "title": "Загрузка аудиофайлов",
+ "description": "Загружайте и расшифровывайте MP3, OGG и другие"
+ }
+ },
+ "selectHint": "Выберите все подходящие варианты"
+ },
+ "meeting": {
+ "title": "Заметки встреч",
+ "description": "Записывайте и резюмируйте встречи",
+ "autoDetect": "OpenWhispr автоматически определяет, когда вы на встрече, и предлагает начать заметки — без вас ничего не записывается.",
+ "notification": {
+ "title": "Обнаружена встреча",
+ "body": "Похоже, вы на встрече. Хотите вести заметки?",
+ "cta": "Начать запись"
+ },
+ "hotkeyLabel": "Горячая клавиша встречи",
+ "hotkeyHint": "Необязательно — нажмите её на любой встрече, чтобы сразу начать заметку."
+ },
+ "finish": {
+ "title": "Всё готово",
+ "cloudDescription": "Вы используете OpenWhispr Cloud: быстро, точно, без хранения данных и 2 000 слов бесплатно каждую неделю. Хотите, чтобы всё оставалось на устройстве? Переключитесь на локальную обработку в Настройках.",
+ "localDescription": "У вас настроена локальная обработка или собственный ключ. Изменить обработку аудио можно в любой момент в Настройках.",
+ "cleanupNote": "ИИ-очистка текста работает с разумными настройками по умолчанию. Их можно изменить в Настройках.",
+ "openSettings": "Открыть Настройки",
+ "skipForNow": "Пока пропустить",
+ "corti": {
+ "title": "Вы сказали, что вам нужна клиническая транскрипция",
+ "description": "Мы сотрудничаем с Corti — распознавание речи клинического уровня с высочайшей точностью, соответствует HIPAA.",
+ "createAccount": "Создать аккаунт Corti",
+ "creditBadge": "50 $ бесплатных кредитов",
+ "regionHint": "Выберите, где обрабатывать ваше аудио — США или ЕС.",
+ "useCorti": "Использовать Corti",
+ "skip": "Не сейчас",
+ "step1": "Зарегистрируйтесь на corti.ai",
+ "step2": "Откройте консоль Corti и создайте учётные данные API",
+ "step3": "Вставьте Client ID и Secret ниже"
+ }
}
},
"streaming": {
@@ -744,7 +815,8 @@
"resendIn": "Повторная отправка через {{seconds}} с",
"verifiedDescription": "Ваш аккаунт настроен.",
"verifiedTitle": "Электронная почта подтверждена",
- "waiting": "Ожидание подтверждения..."
+ "waiting": "Ожидание подтверждения...",
+ "backToSignIn": "Вернуться ко входу"
},
"errorBoundary": {
"description": "Произошла непредвиденная ошибка. Перезагрузите, чтобы попробовать снова.",
@@ -1309,7 +1381,10 @@
"linuxPttPermissionDescription": "Выполните команду и перезайдите: sudo usermod -aG input $USER",
"linuxPttSetupTitle": "Для режима «Удерживать для речи» нужна настройка",
"linuxPttSetupDescription": "Вашему пользователю нужен доступ к устройствам ввода с клавиатуры.",
- "linuxPttSetupNote": "После выполнения команды выйдите из системы и войдите снова."
+ "linuxPttSetupNote": "После выполнения команды выйдите из системы и войдите снова.",
+ "hyprlandConfigWriteWarningTitle": "Привязки клавиш Hyprland не будут сохраняться",
+ "hyprlandConfigWriteWarningDescription": "OpenWhispr не может записывать в {{path}}, поэтому привязки клавиш не сохранятся после перезагрузки конфигурации Hyprland. Убедитесь, что файл существует и доступен для записи.",
+ "hyprlandUnbindDescription": "В Hyprland OpenWhispr занимает выбранное сочетание клавиш. Любая существующая привязка Hyprland с тем же сочетанием будет снята, когда OpenWhispr зарегистрирует свой хоткей."
},
"meetingHotkey": {
"title": "Горячая клавиша режима встречи",
@@ -1546,7 +1621,8 @@
"description": "Выберите движок для диктовки и записи заметок",
"tabs": {
"dictation": "Диктовка",
- "noteRecording": "Запись заметок"
+ "noteRecording": "Запись заметок",
+ "upload": "Загрузка аудио"
},
"selfHostedStreamingNote": "Требуется сервер с поддержкой потоковой транскрипции."
},
@@ -2000,18 +2076,15 @@
"transcribingCloud": "Транскрибирование через облако...",
"transcribingLocal": "Локальное транскрибирование...",
"transcribingProvider": "Транскрибирование через {{provider}}...",
+ "cancelTranscription": "Отменить транскрибирование",
"transcriptionComplete": "Транскрибирование завершено",
"openNote": "Открыть заметку",
"uploadAnother": "Загрузить ещё",
"retry": "Повторить",
"startOver": "Начать сначала",
- "transcriptionSettings": "Настройки транскрибирования",
"newFolder": "Новая папка",
"folderName": "Название папки",
"create": "Создать",
- "setupTitle": "Настройте транскрибирование",
- "setupDescription": "Выберите способ транскрибирования аудио. Это также применяется к живой диктовке.",
- "continue": "Продолжить",
"openwhisprCloud": "OpenWhispr Cloud",
"custom": "Другой",
"selectFolder": "Выбрать папку",
@@ -2555,15 +2628,7 @@
"noUpcoming": "Нет предстоящих событий",
"meetingStarting": "Встреча начинается сейчас",
"today": "Сегодня",
- "tomorrow": "Завтра",
- "detection": {
- "title": "Обнаружение встреч",
- "description": "Автоматически определять, когда вы на встрече",
- "processDetection": "Обнаружение приложений",
- "processDescription": "Определить, какое приложение вы используете при обнаружении встречи",
- "audioDetection": "Обнаружение аудио",
- "audioDescription": "Уведомление при обнаружении продолжительной активности микрофона"
- }
+ "tomorrow": "Завтра"
},
"upcoming": {
"title": "Предстоящие встречи",
diff --git a/src/locales/zh-CN/translation.json b/src/locales/zh-CN/translation.json
index ecf8a431f..e5f0aebe2 100644
--- a/src/locales/zh-CN/translation.json
+++ b/src/locales/zh-CN/translation.json
@@ -101,13 +101,6 @@
"accessibility": "此平台不支持辅助功能设置。",
"systemAudio": "系统音频设置在此平台上不可用。"
},
- "titleBar": {
- "quitTitle": "退出 OpenWhispr",
- "quitConfirmTitle": "确定退出 OpenWhispr?",
- "quitConfirmDescription": "这将关闭 OpenWhispr 并停止后台进程。",
- "quit": "退出",
- "cancel": "取消"
- },
"upgradePrompt": {
"paymentFailed": "我们无法处理你的付款",
"weeklyLimit": "你已达到本周的使用上限",
@@ -165,14 +158,18 @@
"unknownError": "Ocurrió un error desconocido",
"copy": "Copiar",
"copied": "Copiado",
- "done": "Listo"
+ "done": "Listo",
+ "skip": "跳过"
},
"onboarding": {
"steps": {
"welcome": "欢迎",
"setup": "设置",
"permissions": "权限",
- "activation": "激活",
+ "activation": "听写",
+ "useCase": "关于你",
+ "meeting": "会议",
+ "finish": "完成",
"voiceAgent": "语音助手"
},
"hotkey": {
@@ -187,17 +184,17 @@
"permissions": {
"title": "权限",
"microphoneTitle": "麦克风",
- "microphoneDescription": "录制您的声音用于转录",
+ "microphoneDescription": "将你的语音转为文字。按下快捷键之前不会录制任何内容。",
"grant": "授权",
"grantAccess": "授予访问权限",
"accessibilityTitle": "辅助功能",
- "accessibilityDescription": "允许将转录文本自动粘贴到任何应用程序",
+ "accessibilityDescription": "将完成的文字直接输入到你正在使用的应用中 — 文档、邮件、聊天。",
"testAndGrant": "测试并授权",
"requiredForApp": "OpenWhispr 运行所必需的权限",
"microphoneRequired": "需要麦克风访问权限",
"openSystemSettings": "打开系统设置",
"systemAudioTitle": "系统音频",
- "systemAudioDescription": "转录会议、通话、讲座、播客和其他系统音频。",
+ "systemAudioDescription": "让会议录音机听到通话另一方的声音 — 会议、讲座、播客。你可以稍后在“设置”中开启。",
"optional": "可选",
"recommended": "推荐",
"accessibilityTroubleshooting": "在系统设置 → 辅助功能中,将 OpenWhispr 的开关关闭再重新打开。如果无效,请将 OpenWhispr 从列表中移除后重新添加。还是不行?请发邮件至 [email protected]。"
@@ -208,7 +205,7 @@
"preferredLanguage": "首选语言"
},
"activation": {
- "title": "激活设置",
+ "title": "听写设置",
"description": "配置触发听写的方式",
"hotkey": "快捷键",
"mode": "模式",
@@ -220,10 +217,19 @@
"textareaPlaceholder": "点击此处,然后使用快捷键进行听写..."
},
"voiceAgent": {
- "title": "语音助手快捷键",
+ "title": "语音助手设置",
"description": "一键唤起你的 AI 助手",
"hotkey": "快捷键",
"howItWorks": "按下快捷键,说出你想要的内容,例如“写一段简短的感谢语”。{{agentName}} 会把结果输入到光标所在的位置。无需先说“Hey {{agentName}}”。",
+ "test": "试一试",
+ "testInstruction": "点击下方,按下 {{hotkey}} 并说出指令",
+ "testSetHotkey": "在上方设置快捷键即可试用",
+ "testPlaceholder": "点击这里,按下快捷键并说出其中一个示例...",
+ "examples": [
+ "翻译成意大利语:“我说话比打字快”",
+ "给我的老板写一封简短的邮件,告诉他我想要升职,他叫 Mark",
+ "5 × 5 等于多少?"
+ ],
"optionalNote": "可选——你可以随时在设置中添加或修改。"
},
"connectivity": {
@@ -231,6 +237,71 @@
"body": "{{cause}} 你可以切换到本地引擎,或继续并稍后重试。",
"useLocal": "使用本地引擎",
"continue": "仍然继续"
+ },
+ "useCase": {
+ "title": "你为什么来到这里?",
+ "description": "我们是一个小团队,每周发布更新。你的选择会为你配置应用,也告诉我们接下来该做什么。",
+ "noteLabel": "还有什么想告诉我们的吗?",
+ "notePlaceholder": "可选",
+ "options": {
+ "dictation": {
+ "title": "更快地写作",
+ "description": "在任何应用中口述,而不是打字"
+ },
+ "meetings": {
+ "title": "会议笔记与摘要",
+ "description": "录制、转写并总结会议"
+ },
+ "healthcare": {
+ "title": "医疗、临床与治疗转写",
+ "description": "口述病历、咨询记录和报告"
+ },
+ "translation": {
+ "title": "语言翻译",
+ "description": "说一种语言,输出另一种"
+ },
+ "ai": {
+ "title": "与我的 AI 对话",
+ "description": "用语音驱动 ChatGPT、Claude 等智能体"
+ },
+ "upload": {
+ "title": "上传音频文件",
+ "description": "上传并转写 MP3、OGG 等"
+ }
+ },
+ "selectHint": "可多选"
+ },
+ "meeting": {
+ "title": "会议笔记",
+ "description": "捕捉并总结你的会议",
+ "autoDetect": "OpenWhispr 会自动检测你是否在开会,并提议开始记录 — 未经你确认不会录制任何内容。",
+ "notification": {
+ "title": "检测到会议",
+ "body": "你似乎正在开会。要开始记录吗?",
+ "cta": "开始录制"
+ },
+ "hotkeyLabel": "会议快捷键",
+ "hotkeyHint": "可选 — 在任何会议中按下即可立即开始记录。"
+ },
+ "finish": {
+ "title": "一切就绪",
+ "cloudDescription": "你正在使用 OpenWhispr Cloud — 快速、准确、零数据保留,每周免费 2,000 词。希望一切都在本地?可在“设置”中切换到本地处理。",
+ "localDescription": "你已配置本地处理或自带密钥。可随时在“设置”中调整音频处理方式。",
+ "cleanupNote": "AI 文本清理使用合理的默认设置,可随时在“设置”中调整。",
+ "openSettings": "打开设置",
+ "skipForNow": "暂时跳过",
+ "corti": {
+ "title": "你告诉我们你是为临床转写而来",
+ "description": "我们与 Corti 合作 — 临床级语音转文字,准确率最高,并符合 HIPAA。",
+ "createAccount": "创建你的 Corti 账户",
+ "creditBadge": "50 美元免费额度",
+ "regionHint": "选择音频处理地区 — 美国或欧盟。",
+ "useCorti": "使用 Corti",
+ "skip": "暂不需要",
+ "step1": "在 corti.ai 注册",
+ "step2": "打开 Corti 控制台并创建 API 凭据",
+ "step3": "在下方粘贴 Client ID 和 Secret"
+ }
}
},
"streaming": {
@@ -744,7 +815,8 @@
"resendIn": "{{seconds}} 秒后可重新发送",
"verifiedDescription": "你的账户已准备就绪。",
"verifiedTitle": "邮箱已验证",
- "waiting": "正在等待验证..."
+ "waiting": "正在等待验证...",
+ "backToSignIn": "返回登录"
},
"errorBoundary": {
"description": "发生了意外错误,请重新加载后重试。",
@@ -1304,7 +1376,10 @@
"linuxPttPermissionDescription": "运行此命令并重新登录:sudo usermod -aG input $USER",
"linuxPttSetupTitle": "按住说话需要设置",
"linuxPttSetupDescription": "您的用户需要访问键盘输入设备的权限。",
- "linuxPttSetupNote": "运行命令后,请注销并重新登录。"
+ "linuxPttSetupNote": "运行命令后,请注销并重新登录。",
+ "hyprlandConfigWriteWarningTitle": "Hyprland 键绑定不会持久保存",
+ "hyprlandConfigWriteWarningDescription": "OpenWhispr 无法写入 {{path}},因此键绑定不会在 Hyprland 配置重新加载后保留。请确保该文件存在且可写。",
+ "hyprlandUnbindDescription": "在 Hyprland 上,OpenWhispr 会占用所选快捷键。OpenWhispr 注册快捷键时,任何使用相同组合键的现有 Hyprland 绑定都会被解除。"
},
"meetingHotkey": {
"title": "会议模式快捷键",
@@ -1541,7 +1616,8 @@
"description": "为听写和笔记录音选择一个引擎",
"tabs": {
"dictation": "听写",
- "noteRecording": "笔记录音"
+ "noteRecording": "笔记录音",
+ "upload": "上传音频"
},
"selfHostedStreamingNote": "需要支持流式转录的服务器。"
},
@@ -1995,18 +2071,15 @@
"transcribingCloud": "正在通过云端转录...",
"transcribingLocal": "正在本地转录...",
"transcribingProvider": "正在通过 {{provider}} 转录...",
+ "cancelTranscription": "取消转录",
"transcriptionComplete": "转录完成",
"openNote": "打开笔记",
"uploadAnother": "上传另一个",
"retry": "重试",
"startOver": "重新开始",
- "transcriptionSettings": "转录设置",
"newFolder": "新建文件夹",
"folderName": "文件夹名称",
"create": "创建",
- "setupTitle": "设置转录",
- "setupDescription": "选择转录音频的方式。此设置也适用于实时听写。",
- "continue": "继续",
"openwhisprCloud": "OpenWhispr Cloud",
"custom": "自定义",
"selectFolder": "选择文件夹",
@@ -2546,15 +2619,7 @@
"noUpcoming": "没有即将到来的事件",
"meetingStarting": "会议即将开始",
"today": "今天",
- "tomorrow": "明天",
- "detection": {
- "title": "会议检测",
- "description": "自动检测您是否在会议中",
- "processDetection": "应用检测",
- "processDescription": "检测到会议时识别您正在使用的应用",
- "audioDetection": "音频检测",
- "audioDescription": "检测到持续麦克风活动时提示"
- }
+ "tomorrow": "明天"
},
"upcoming": {
"title": "即将开始的会议",
diff --git a/src/locales/zh-TW/translation.json b/src/locales/zh-TW/translation.json
index 9925ad97e..523dcda77 100644
--- a/src/locales/zh-TW/translation.json
+++ b/src/locales/zh-TW/translation.json
@@ -101,13 +101,6 @@
"accessibility": "此平台不支援輔助使用設定。",
"systemAudio": "系統音訊設定在此平台上不可用。"
},
- "titleBar": {
- "quitTitle": "結束 OpenWhispr",
- "quitConfirmTitle": "確定要結束 OpenWhispr?",
- "quitConfirmDescription": "這將關閉 OpenWhispr 並停止背景程序。",
- "quit": "結束",
- "cancel": "取消"
- },
"upgradePrompt": {
"paymentFailed": "我們無法處理你的付款",
"weeklyLimit": "你已達到每週使用上限",
@@ -165,14 +158,18 @@
"unknownError": "Ocurrió un error desconocido",
"copy": "Copiar",
"copied": "Copiado",
- "done": "Listo"
+ "done": "Listo",
+ "skip": "略過"
},
"onboarding": {
"steps": {
"welcome": "歡迎",
"setup": "設定",
"permissions": "權限",
- "activation": "啟用",
+ "activation": "聽寫",
+ "useCase": "關於你",
+ "meeting": "會議",
+ "finish": "完成",
"voiceAgent": "語音助手"
},
"hotkey": {
@@ -187,17 +184,17 @@
"permissions": {
"title": "權限",
"microphoneTitle": "麥克風",
- "microphoneDescription": "錄製您的聲音用於轉錄",
+ "microphoneDescription": "將你的語音轉為文字。按下快捷鍵之前不會錄製任何內容。",
"grant": "授權",
"grantAccess": "授予存取權限",
"accessibilityTitle": "輔助使用",
- "accessibilityDescription": "允許將轉錄文字自動貼上到任何應用程式",
+ "accessibilityDescription": "將完成的文字直接輸入到你正在使用的應用程式 — 文件、郵件、聊天。",
"testAndGrant": "測試並授權",
"requiredForApp": "OpenWhispr 運作所需",
"microphoneRequired": "需要麥克風存取權限",
"openSystemSettings": "打開系統設定",
"systemAudioTitle": "系統音訊",
- "systemAudioDescription": "轉錄會議、通話、講座、播客和其他系統音訊。",
+ "systemAudioDescription": "讓會議錄音機聽到通話另一方的聲音 — 會議、講座、Podcast。你可以稍後在「設定」中開啟。",
"optional": "可選",
"recommended": "建議",
"accessibilityTroubleshooting": "在系統設定 → 輔助使用中,將 OpenWhispr 的開關關閉再重新開啟。如果無效,請將 OpenWhispr 從清單中移除後重新加入。還是不行?請寄信至 [email protected]。"
@@ -208,7 +205,7 @@
"preferredLanguage": "偏好語言"
},
"activation": {
- "title": "啟用設定",
+ "title": "聽寫設定",
"description": "設定觸發語音輸入的方式",
"hotkey": "快捷鍵",
"mode": "模式",
@@ -220,10 +217,19 @@
"textareaPlaceholder": "點擊這裡,然後使用快捷鍵開始語音輸入..."
},
"voiceAgent": {
- "title": "語音助手快捷鍵",
+ "title": "語音助手設定",
"description": "一鍵喚起你的 AI 助手",
"hotkey": "快捷鍵",
"howItWorks": "按下快捷鍵,說出你想要的內容,例如「寫一段簡短的感謝語」。{{agentName}} 會把結果輸入到游標所在的位置。無需先說「Hey {{agentName}}」。",
+ "test": "試試看",
+ "testInstruction": "點擊下方,按下 {{hotkey}} 並說出指令",
+ "testSetHotkey": "在上方設定快捷鍵即可試用",
+ "testPlaceholder": "點擊這裡,按下快捷鍵並說出其中一個範例...",
+ "examples": [
+ "翻譯成義大利文:「我說話比打字快」",
+ "給我的老闆寫一封簡短的郵件,告訴他我想要升職,他叫 Mark",
+ "5 × 5 等於多少?"
+ ],
"optionalNote": "選用——你可以隨時在設定中新增或修改。"
},
"connectivity": {
@@ -231,6 +237,71 @@
"body": "{{cause}} 你可以切換到本機引擎,或繼續並稍後再試。",
"useLocal": "使用本機引擎",
"continue": "仍然繼續"
+ },
+ "useCase": {
+ "title": "你為什麼來到這裡?",
+ "description": "我們是一個小團隊,每週發布更新。你的選擇會為你設定應用程式,也告訴我們接下來該做什麼。",
+ "noteLabel": "還有什麼想告訴我們的嗎?",
+ "notePlaceholder": "選填",
+ "options": {
+ "dictation": {
+ "title": "更快地寫作",
+ "description": "在任何應用程式中口述,而不是打字"
+ },
+ "meetings": {
+ "title": "會議筆記與摘要",
+ "description": "錄製、轉寫並總結會議"
+ },
+ "healthcare": {
+ "title": "醫療、臨床與治療轉寫",
+ "description": "口述病歷、諮商紀錄和報告"
+ },
+ "translation": {
+ "title": "語言翻譯",
+ "description": "說一種語言,輸出另一種"
+ },
+ "ai": {
+ "title": "與我的 AI 對話",
+ "description": "用語音驅動 ChatGPT、Claude 等代理"
+ },
+ "upload": {
+ "title": "上傳音訊檔案",
+ "description": "上傳並轉寫 MP3、OGG 等"
+ }
+ },
+ "selectHint": "可複選"
+ },
+ "meeting": {
+ "title": "會議筆記",
+ "description": "擷取並總結你的會議",
+ "autoDetect": "OpenWhispr 會自動偵測你是否正在開會,並提議開始記錄 — 未經你確認不會錄製任何內容。",
+ "notification": {
+ "title": "偵測到會議",
+ "body": "你似乎正在開會。要開始記錄嗎?",
+ "cta": "開始錄製"
+ },
+ "hotkeyLabel": "會議快捷鍵",
+ "hotkeyHint": "選填 — 在任何會議中按下即可立即開始記錄。"
+ },
+ "finish": {
+ "title": "一切就緒",
+ "cloudDescription": "你正在使用 OpenWhispr Cloud — 快速、準確、零資料保留,每週免費 2,000 字。希望一切都在裝置上?可在「設定」中切換到本機處理。",
+ "localDescription": "你已設定本機處理或自備金鑰。可隨時在「設定」中調整音訊處理方式。",
+ "cleanupNote": "AI 文字清理使用合理的預設值,可隨時在「設定」中調整。",
+ "openSettings": "開啟設定",
+ "skipForNow": "暫時略過",
+ "corti": {
+ "title": "你告訴我們你是為臨床轉寫而來",
+ "description": "我們與 Corti 合作 — 臨床級語音轉文字,準確率最高,並符合 HIPAA。",
+ "createAccount": "建立你的 Corti 帳戶",
+ "creditBadge": "50 美元免費額度",
+ "regionHint": "選擇音訊處理地區 — 美國或歐盟。",
+ "useCorti": "使用 Corti",
+ "skip": "暫時不用",
+ "step1": "在 corti.ai 註冊",
+ "step2": "開啟 Corti 控制台並建立 API 憑證",
+ "step3": "在下方貼上 Client ID 和 Secret"
+ }
}
},
"streaming": {
@@ -744,7 +815,8 @@
"resendIn": "{{seconds}} 秒後可重新寄送",
"verifiedDescription": "你的帳號已設定完成。",
"verifiedTitle": "電子郵件已驗證",
- "waiting": "等待驗證中..."
+ "waiting": "等待驗證中...",
+ "backToSignIn": "返回登入"
},
"errorBoundary": {
"description": "發生意外錯誤。請重新載入後再試。",
@@ -1304,7 +1376,10 @@
"linuxPttPermissionDescription": "執行此指令並重新登入:sudo usermod -aG input $USER",
"linuxPttSetupTitle": "按住說話需要設定",
"linuxPttSetupDescription": "您的使用者需要存取鍵盤輸入裝置的權限。",
- "linuxPttSetupNote": "執行指令後,請登出並重新登入。"
+ "linuxPttSetupNote": "執行指令後,請登出並重新登入。",
+ "hyprlandConfigWriteWarningTitle": "Hyprland 鍵綁定不會持久保存",
+ "hyprlandConfigWriteWarningDescription": "OpenWhispr 無法寫入 {{path}},因此鍵綁定不會在 Hyprland 設定重新載入後保留。請確認該檔案存在且可寫入。",
+ "hyprlandUnbindDescription": "在 Hyprland 上,OpenWhispr 會占用所選快捷鍵。OpenWhispr 註冊快捷鍵時,任何使用相同組合鍵的既有 Hyprland 綁定都會被解除。"
},
"meetingHotkey": {
"title": "會議模式快捷鍵",
@@ -1541,7 +1616,8 @@
"description": "為聽寫和筆記錄音選擇一個引擎",
"tabs": {
"dictation": "聽寫",
- "noteRecording": "筆記錄音"
+ "noteRecording": "筆記錄音",
+ "upload": "上傳音訊"
},
"selfHostedStreamingNote": "需要支援串流轉錄的伺服器。"
},
@@ -1995,18 +2071,15 @@
"transcribingCloud": "透過雲端轉錄中...",
"transcribingLocal": "本機轉錄中...",
"transcribingProvider": "透過 {{provider}} 轉錄中...",
+ "cancelTranscription": "取消轉錄",
"transcriptionComplete": "轉錄完成",
"openNote": "開啟筆記",
"uploadAnother": "上傳另一個",
"retry": "重試",
"startOver": "重新開始",
- "transcriptionSettings": "轉錄設定",
"newFolder": "新增資料夾",
"folderName": "資料夾名稱",
"create": "建立",
- "setupTitle": "設定轉錄",
- "setupDescription": "選擇音訊轉錄方式。此設定同樣適用於即時聽寫。",
- "continue": "繼續",
"openwhisprCloud": "OpenWhispr Cloud",
"custom": "自訂",
"selectFolder": "選擇資料夾",
@@ -2546,15 +2619,7 @@
"noUpcoming": "沒有即將到來的事件",
"meetingStarting": "會議即將開始",
"today": "今天",
- "tomorrow": "明天",
- "detection": {
- "title": "會議偵測",
- "description": "自動偵測您是否在會議中",
- "processDetection": "應用偵測",
- "processDescription": "偵測到會議時識別您正在使用的應用程式",
- "audioDetection": "音訊偵測",
- "audioDescription": "偵測到持續麥克風活動時提示"
- }
+ "tomorrow": "明天"
},
"upcoming": {
"title": "即將開始的會議",
diff --git a/src/stores/actionProcessingStore.ts b/src/stores/actionProcessingStore.ts
index df28b656d..1b69d5137 100644
--- a/src/stores/actionProcessingStore.ts
+++ b/src/stores/actionProcessingStore.ts
@@ -123,6 +123,7 @@ export function runBackgroundAction(
try {
const basePrompt = options.isMeetingNote ? MEETING_SYSTEM_PROMPT : BASE_SYSTEM_PROMPT;
const settings = getSettings();
+ const provider = options.isCloudMode ? "openwhispr" : undefined;
const systemPrompt = appendDictionarySuffix(
basePrompt + action.prompt,
options.isMeetingNote ? settings.customDictionary : undefined,
@@ -132,13 +133,14 @@ export function runBackgroundAction(
systemPrompt,
temperature: 0.3,
disableThinking: settings.noteFormattingDisableThinking,
+ provider,
});
if (cancelledFlags.get(noteId)) return;
let title: string | undefined;
if (getSettings().autoGenerateNoteTitle) {
- const generated = await generateNoteTitle(enhanced, modelId);
+ const generated = await generateNoteTitle(enhanced, modelId, provider);
if (generated) title = generated;
}
diff --git a/src/stores/settingsStore.ts b/src/stores/settingsStore.ts
index 7cafe787e..ebaebe1d6 100644
--- a/src/stores/settingsStore.ts
+++ b/src/stores/settingsStore.ts
@@ -18,6 +18,7 @@ import type {
TranscriptionSettings,
CleanupSettings,
HotkeySettings,
+ OnboardingSettings,
MicrophoneSettings,
ApiKeySettings,
PrivacySettings,
@@ -104,6 +105,8 @@ migrateMeetingFollowFlags();
const BOOLEAN_SETTINGS = new Set([
"useLocalWhisper",
+ "meetingUseLocalWhisper",
+ "uploadUseLocalWhisper",
"allowOpenAIFallback",
"allowLocalFallback",
"assemblyAiStreaming",
@@ -118,7 +121,6 @@ const BOOLEAN_SETTINGS = new Set([
"floatingIconAutoHide",
"startMinimized",
"meetingProcessDetection",
- "meetingAudioDetection",
"speakerDiarizationEnabled",
"dictationSileroEnabled",
"noteRecordingSileroEnabled",
@@ -141,7 +143,12 @@ const BOOLEAN_SETTINGS = new Set([
"gcalPrimaryOnly",
]);
-const ARRAY_SETTINGS = new Set(["customDictionary", "snippets", "gcalAccounts"]);
+const ARRAY_SETTINGS = new Set([
+ "customDictionary",
+ "snippets",
+ "gcalAccounts",
+ "onboardingUseCases",
+]);
const NUMERIC_SETTINGS = new Set([
"audioRetentionDays",
@@ -179,6 +186,21 @@ function migratePreferredLanguage() {
migratePreferredLanguage();
+// Map the underlying transcription fields to the InferenceMode the Settings
+// tabs select on. Single source of truth shared by the provider-settings
+// migration and the onboarding "use this provider everywhere" action.
+function deriveTranscriptionMode(
+ useLocalWhisper: boolean,
+ cloudTranscriptionMode: string | null,
+ cloudTranscriptionProvider: string | null
+): InferenceMode {
+ if (useLocalWhisper) return "local";
+ if (cloudTranscriptionMode === "byok") {
+ return cloudTranscriptionProvider === "custom" ? "self-hosted" : "providers";
+ }
+ return "openwhispr";
+}
+
function migrateProviderSettings() {
if (!isBrowser) return;
if (localStorage.getItem("_providerSettingsMigrated") === "1") return;
@@ -187,12 +209,7 @@ function migrateProviderSettings() {
const useLocal = localStorage.getItem("useLocalWhisper") === "true";
const provider = localStorage.getItem("cloudTranscriptionProvider");
- let transcriptionMode: InferenceMode = "openwhispr";
- if (useLocal) {
- transcriptionMode = "local";
- } else if (cloudMode === "byok") {
- transcriptionMode = provider === "custom" ? "self-hosted" : "providers";
- }
+ const transcriptionMode = deriveTranscriptionMode(useLocal, cloudMode, provider);
localStorage.setItem("transcriptionMode", transcriptionMode);
if (provider === "custom" && cloudMode === "byok") {
@@ -239,6 +256,37 @@ function migrateProviderSettings() {
migrateProviderSettings();
+// One-time seed of the dedicated audio-upload transcription settings. Runs
+// after migrateProviderSettings() so the `transcriptionMode` it derives and
+// persists is available to copy. Before this context existed the upload page
+// used the base dictation settings, so copy each value the user actually set
+// into the matching `upload*` key. Fresh installs have no base keys persisted,
+// so nothing is copied and the upload context falls through to its OpenWhispr
+// Cloud defaults.
+const UPLOAD_TRANSCRIPTION_PAIRS: ReadonlyArray<[string, string]> = [
+ ["useLocalWhisper", "uploadUseLocalWhisper"],
+ ["whisperModel", "uploadWhisperModel"],
+ ["localTranscriptionProvider", "uploadLocalTranscriptionProvider"],
+ ["parakeetModel", "uploadParakeetModel"],
+ ["cloudTranscriptionProvider", "uploadCloudTranscriptionProvider"],
+ ["cloudTranscriptionModel", "uploadCloudTranscriptionModel"],
+ ["cloudTranscriptionBaseUrl", "uploadCloudTranscriptionBaseUrl"],
+ ["cloudTranscriptionMode", "uploadCloudTranscriptionMode"],
+ ["transcriptionMode", "uploadTranscriptionMode"],
+];
+
+function migrateUploadTranscription() {
+ if (!isBrowser) return;
+ if (localStorage.getItem("uploadTranscriptionMigrated") === "true") return;
+ for (const [src, dst] of UPLOAD_TRANSCRIPTION_PAIRS) {
+ const v = localStorage.getItem(src);
+ if (v !== null) localStorage.setItem(dst, v);
+ }
+ localStorage.setItem("uploadTranscriptionMigrated", "true");
+}
+
+migrateUploadTranscription();
+
function migrateAgentMode() {
if (!isBrowser) return;
if (localStorage.getItem("_agentModeMigrated") === "1") return;
@@ -349,6 +397,7 @@ export interface SettingsState
TranscriptionSettings,
CleanupSettings,
HotkeySettings,
+ OnboardingSettings,
MicrophoneSettings,
ApiKeySettings,
PrivacySettings,
@@ -368,7 +417,6 @@ export interface SettingsState
notifyUpdates: boolean;
gcalPrimaryOnly: boolean;
meetingProcessDetection: boolean;
- meetingAudioDetection: boolean;
speakerDiarizationEnabled: boolean;
dictationSileroEnabled: boolean;
noteRecordingSileroEnabled: boolean;
@@ -404,6 +452,16 @@ export interface SettingsState
meetingRemoteTranscriptionType: SelfHostedType;
meetingRemoteTranscriptionUrl: string;
+ uploadTranscriptionMode: InferenceMode;
+ uploadUseLocalWhisper: boolean;
+ uploadWhisperModel: string;
+ uploadLocalTranscriptionProvider: LocalTranscriptionProvider;
+ uploadParakeetModel: string;
+ uploadCloudTranscriptionProvider: string;
+ uploadCloudTranscriptionModel: string;
+ uploadCloudTranscriptionBaseUrl: string;
+ uploadCloudTranscriptionMode: string;
+
noteFormattingMode: InferenceMode;
noteFormattingProvider: string;
noteFormattingModel: string;
@@ -454,6 +512,16 @@ export interface SettingsState
setMeetingRemoteTranscriptionType: (type: SelfHostedType) => void;
setMeetingRemoteTranscriptionUrl: (url: string) => void;
+ setUploadTranscriptionMode: (mode: InferenceMode) => void;
+ setUploadUseLocalWhisper: (value: boolean) => void;
+ setUploadWhisperModel: (value: string) => void;
+ setUploadLocalTranscriptionProvider: (value: LocalTranscriptionProvider) => void;
+ setUploadParakeetModel: (value: string) => void;
+ setUploadCloudTranscriptionProvider: (value: string) => void;
+ setUploadCloudTranscriptionModel: (value: string) => void;
+ setUploadCloudTranscriptionBaseUrl: (value: string) => void;
+ setUploadCloudTranscriptionMode: (value: string) => void;
+
setNoteFormattingMode: (mode: InferenceMode) => void;
setNoteFormattingProvider: (value: string) => void;
setNoteFormattingModel: (value: string) => void;
@@ -543,6 +611,8 @@ export interface SettingsState
setMeetingKey: (key: string) => void;
setVoiceAgentKey: (key: string) => void;
setMeetingHotkeyLayoutMode: (mode: "side-panel" | "full-width") => void;
+ setOnboardingUseCases: (useCases: string[]) => void;
+ setOnboardingUseCaseNote: (note: string) => void;
setActivationMode: (mode: "tap" | "push") => void;
setPreferBuiltInMic: (value: boolean) => void;
@@ -565,7 +635,6 @@ export interface SettingsState
setNotifyUpdates: (value: boolean) => void;
setGcalPrimaryOnly: (value: boolean) => void;
setMeetingProcessDetection: (value: boolean) => void;
- setMeetingAudioDetection: (value: boolean) => void;
setSpeakerDiarizationEnabled: (value: boolean) => void;
setDictationSileroEnabled: (value: boolean) => void;
setNoteRecordingSileroEnabled: (value: boolean) => void;
@@ -594,6 +663,7 @@ export interface SettingsState
setChatAgentCustomApiKey: (key: string) => void;
updateTranscriptionSettings: (settings: Partial<TranscriptionSettings>) => void;
+ setCloudTranscriptionForAllScopes: (settings: Partial<TranscriptionSettings>) => void;
updateCleanupSettings: (settings: Partial<CleanupSettings>) => void;
updateApiKeys: (keys: Partial<ApiKeySettings>) => void;
updateChatAgentSettings: (settings: Partial<ChatAgentSettings>) => void;
@@ -831,6 +901,8 @@ export const useSettingsStore = create<SettingsState>()((set, get) => ({
dictationKey: readString("dictationKey", ""),
meetingKey: readString("meetingKey", ""),
voiceAgentKey: readString("voiceAgentKey", ""),
+ onboardingUseCases: readStringArray("onboardingUseCases", []),
+ onboardingUseCaseNote: readString("onboardingUseCaseNote", ""),
meetingHotkeyLayoutMode: (readString("meetingHotkeyLayoutMode", "full-width") === "side-panel"
? "side-panel"
: "full-width") as "side-panel" | "full-width",
@@ -881,7 +953,6 @@ export const useSettingsStore = create<SettingsState>()((set, get) => ({
})(),
gcalPrimaryOnly: readBoolean("gcalPrimaryOnly", true),
meetingProcessDetection: readBoolean("meetingProcessDetection", true),
- meetingAudioDetection: readBoolean("meetingAudioDetection", true),
speakerDiarizationEnabled: readBoolean("speakerDiarizationEnabled", true),
dictationSileroEnabled: readBoolean("dictationSileroEnabled", true),
noteRecordingSileroEnabled: readBoolean("noteRecordingSileroEnabled", true),
@@ -962,6 +1033,23 @@ export const useSettingsStore = create<SettingsState>()((set, get) => ({
})(),
meetingRemoteTranscriptionUrl: readString("meetingRemoteTranscriptionUrl", ""),
+ uploadTranscriptionMode: (() => {
+ const v = readString("uploadTranscriptionMode", "openwhispr");
+ if (v === "openwhispr" || v === "providers" || v === "local" || v === "self-hosted") return v;
+ return "openwhispr" as InferenceMode;
+ })(),
+ uploadUseLocalWhisper: readBoolean("uploadUseLocalWhisper", false),
+ uploadWhisperModel: readString("uploadWhisperModel", ""),
+ uploadLocalTranscriptionProvider: (readString("uploadLocalTranscriptionProvider", "whisper") ===
+ "nvidia"
+ ? "nvidia"
+ : "whisper") as LocalTranscriptionProvider,
+ uploadParakeetModel: readString("uploadParakeetModel", ""),
+ uploadCloudTranscriptionProvider: readString("uploadCloudTranscriptionProvider", ""),
+ uploadCloudTranscriptionModel: readString("uploadCloudTranscriptionModel", ""),
+ uploadCloudTranscriptionBaseUrl: readString("uploadCloudTranscriptionBaseUrl", ""),
+ uploadCloudTranscriptionMode: readString("uploadCloudTranscriptionMode", ""),
+
noteFormattingMode: (() => {
const v = readString("noteFormattingMode", "openwhispr");
if (
@@ -1008,6 +1096,21 @@ export const useSettingsStore = create<SettingsState>()((set, get) => ({
) => void,
setMeetingRemoteTranscriptionUrl: createStringSetter("meetingRemoteTranscriptionUrl"),
+ setUploadTranscriptionMode: createStringSetter("uploadTranscriptionMode") as (
+ mode: InferenceMode
+ ) => void,
+ setUploadUseLocalWhisper: createBooleanSetter("uploadUseLocalWhisper"),
+ setUploadWhisperModel: createStringSetter("uploadWhisperModel"),
+ setUploadLocalTranscriptionProvider: (value: LocalTranscriptionProvider) => {
+ if (isBrowser) localStorage.setItem("uploadLocalTranscriptionProvider", value);
+ useSettingsStore.setState({ uploadLocalTranscriptionProvider: value });
+ },
+ setUploadParakeetModel: createStringSetter("uploadParakeetModel"),
+ setUploadCloudTranscriptionProvider: createStringSetter("uploadCloudTranscriptionProvider"),
+ setUploadCloudTranscriptionModel: createStringSetter("uploadCloudTranscriptionModel"),
+ setUploadCloudTranscriptionBaseUrl: createStringSetter("uploadCloudTranscriptionBaseUrl"),
+ setUploadCloudTranscriptionMode: createStringSetter("uploadCloudTranscriptionMode"),
+
setNoteFormattingMode: createStringSetter("noteFormattingMode") as (mode: InferenceMode) => void,
setNoteFormattingProvider: createStringSetter("noteFormattingProvider"),
setNoteFormattingModel: createStringSetter("noteFormattingModel"),
@@ -1037,7 +1140,7 @@ export const useSettingsStore = create<SettingsState>()((set, get) => ({
chatAgentCustomApiKey: readString("chatAgentCustomApiKey", ""),
dictationAgentMode: (() => {
- const v = readString("dictationAgentMode", "");
+ const v = readString("dictationAgentMode", "openwhispr");
if (
v === "openwhispr" ||
v === "providers" ||
@@ -1046,11 +1149,11 @@ export const useSettingsStore = create<SettingsState>()((set, get) => ({
v === "enterprise"
)
return v;
- return "providers" as InferenceMode;
+ return "openwhispr" as InferenceMode;
})(),
dictationAgentProvider: readString("dictationAgentProvider", ""),
dictationAgentModel: readString("dictationAgentModel", ""),
- dictationAgentCloudMode: readString("dictationAgentCloudMode", ""),
+ dictationAgentCloudMode: readString("dictationAgentCloudMode", "openwhispr"),
dictationAgentCloudBaseUrl: readString("dictationAgentCloudBaseUrl", ""),
dictationAgentRemoteUrl: readString("dictationAgentRemoteUrl", ""),
dictationAgentCustomApiKey: readString("dictationAgentCustomApiKey", ""),
@@ -1307,6 +1410,13 @@ export const useSettingsStore = create<SettingsState>()((set, get) => ({
set({ meetingHotkeyLayoutMode: mode });
},
+ setOnboardingUseCases: (useCases: string[]) => {
+ if (isBrowser) localStorage.setItem("onboardingUseCases", JSON.stringify(useCases));
+ set({ onboardingUseCases: useCases });
+ },
+
+ setOnboardingUseCaseNote: createStringSetter("onboardingUseCaseNote"),
+
setActivationMode: (mode: "tap" | "push") => {
if (isBrowser) localStorage.setItem("activationMode", mode);
set({ activationMode: mode });
@@ -1380,7 +1490,6 @@ export const useSettingsStore = create<SettingsState>()((set, get) => ({
if (isBrowser) window.electronAPI?.gcalSetPrimaryOnly?.(value);
},
setMeetingProcessDetection: createBooleanSetter("meetingProcessDetection"),
- setMeetingAudioDetection: createBooleanSetter("meetingAudioDetection"),
setSpeakerDiarizationEnabled: (value: boolean) => {
if (isBrowser) localStorage.setItem("speakerDiarizationEnabled", String(value));
useSettingsStore.setState({ speakerDiarizationEnabled: value });
@@ -1523,6 +1632,39 @@ export const useSettingsStore = create<SettingsState>()((set, get) => ({
s.setShowTranscriptionPreview(settings.showTranscriptionPreview);
},
+ // Apply a transcription config to dictation, then mirror its cloud routing to
+ // note recording and audio upload — used when onboarding picks one provider
+ // for everything (e.g. Corti for medical providers).
+ setCloudTranscriptionForAllScopes: (settings: Partial<TranscriptionSettings>) => {
+ const s = useSettingsStore.getState();
+ s.updateTranscriptionSettings(settings);
+ const {
+ useLocalWhisper,
+ cloudTranscriptionMode,
+ cloudTranscriptionProvider,
+ cloudTranscriptionModel,
+ } = useSettingsStore.getState();
+ // Each Settings tab selects on its InferenceMode field, so set it for every
+ // scope — otherwise the UI keeps showing the previous mode (e.g. OpenWhispr
+ // Cloud) even though the cloud routing now points at the new provider.
+ const mode = deriveTranscriptionMode(
+ useLocalWhisper,
+ cloudTranscriptionMode,
+ cloudTranscriptionProvider
+ );
+ s.setTranscriptionMode(mode);
+ s.setMeetingTranscriptionMode(mode);
+ s.setUploadTranscriptionMode(mode);
+ s.setMeetingUseLocalWhisper(useLocalWhisper);
+ s.setMeetingCloudTranscriptionMode(cloudTranscriptionMode);
+ s.setMeetingCloudTranscriptionProvider(cloudTranscriptionProvider);
+ s.setMeetingCloudTranscriptionModel(cloudTranscriptionModel);
+ s.setUploadUseLocalWhisper(useLocalWhisper);
+ s.setUploadCloudTranscriptionMode(cloudTranscriptionMode);
+ s.setUploadCloudTranscriptionProvider(cloudTranscriptionProvider);
+ s.setUploadCloudTranscriptionModel(cloudTranscriptionModel);
+ },
+
updateCleanupSettings: (settings: Partial<CleanupSettings>) => {
const s = useSettingsStore.getState();
if (settings.useCleanupModel !== undefined) s.setUseCleanupModel(settings.useCleanupModel);
@@ -1574,6 +1716,11 @@ export const selectIsCloudChatAgentMode = (state: SettingsState) =>
state.chatAgentMode === "openwhispr" &&
state.chatAgentCloudMode === "openwhispr";
+export const selectIsCloudDictationAgentMode = (state: SettingsState) =>
+ state.isSignedIn &&
+ state.dictationAgentMode === "openwhispr" &&
+ state.dictationAgentCloudMode === "openwhispr";
+
export const selectIsCloudNoteFormattingMode = (state: SettingsState) => {
const cfg = selectResolvedNoteFormatting(state);
return state.isSignedIn && cfg.mode === "openwhispr" && cfg.cloudMode === "openwhispr";
@@ -1617,6 +1764,36 @@ export const selectResolvedMeetingTranscription = (
};
};
+export interface ResolvedUploadTranscription {
+ useLocalWhisper: boolean;
+ whisperModel: string;
+ localTranscriptionProvider: LocalTranscriptionProvider;
+ parakeetModel: string;
+ cloudTranscriptionProvider: string;
+ cloudTranscriptionModel: string;
+ cloudTranscriptionBaseUrl: string;
+ cloudTranscriptionMode: string;
+ transcriptionMode: InferenceMode;
+}
+
+// Audio upload is batch (not streaming), so unset values fall back to the base
+// dictation settings — matching the behavior before upload had its own context.
+export const selectResolvedUploadTranscription = (
+ state: SettingsState
+): ResolvedUploadTranscription => ({
+ useLocalWhisper: state.uploadUseLocalWhisper,
+ whisperModel: state.uploadWhisperModel || state.whisperModel,
+ localTranscriptionProvider: state.uploadLocalTranscriptionProvider,
+ parakeetModel: state.uploadParakeetModel || state.parakeetModel,
+ cloudTranscriptionProvider:
+ state.uploadCloudTranscriptionProvider || state.cloudTranscriptionProvider,
+ cloudTranscriptionModel: state.uploadCloudTranscriptionModel || state.cloudTranscriptionModel,
+ cloudTranscriptionBaseUrl:
+ state.uploadCloudTranscriptionBaseUrl || state.cloudTranscriptionBaseUrl || "",
+ cloudTranscriptionMode: state.uploadCloudTranscriptionMode || state.cloudTranscriptionMode,
+ transcriptionMode: state.uploadTranscriptionMode,
+});
+
export interface ResolvedNoteFormatting {
provider: string;
model: string;
@@ -1731,6 +1908,10 @@ export function isCloudCleanupMode() {
return selectIsCloudCleanupMode(useSettingsStore.getState());
}
+export function isCloudDictationAgentMode() {
+ return selectIsCloudDictationAgentMode(useSettingsStore.getState());
+}
+
// --- Initialization ---
let hasInitialized = false;
@@ -1926,12 +2107,12 @@ export async function initializeSettings(): Promise<void> {
);
}
- // Sync meeting detection preferences to main process
+ // Audio detection is derived from the meeting-notification toggle in
+ // sync-notification-preferences, so only process detection is sent here.
try {
const currentState = useSettingsStore.getState();
await window.electronAPI.meetingDetectionSetPreferences?.({
processDetection: currentState.meetingProcessDetection,
- audioDetection: currentState.meetingAudioDetection,
});
} catch (err) {
logger.warn(
diff --git a/src/types/electron.ts b/src/types/electron.ts
index c950835c3..8e9430089 100644
--- a/src/types/electron.ts
+++ b/src/types/electron.ts
@@ -896,7 +896,6 @@ declare global {
setNotificationInteractivity: (interactive: boolean) => Promise<void>;
// App management
- appQuit: () => Promise<void>;
cleanupApp: () => Promise<{ success: boolean; message: string; errors?: string[] }>;
// Update operations
diff --git a/src/utils/generateTitle.ts b/src/utils/generateTitle.ts
index c5dbb75a2..c0a2e5008 100644
--- a/src/utils/generateTitle.ts
+++ b/src/utils/generateTitle.ts
@@ -4,12 +4,17 @@ import { getSettings } from "../stores/settingsStore";
const TITLE_SYSTEM_PROMPT =
"Generate a concise 3-8 word title for these notes. Return ONLY the title text, nothing else — no quotes, no prefix, no explanation.";
-export async function generateNoteTitle(text: string, modelId: string): Promise<string> {
+export async function generateNoteTitle(
+ text: string,
+ modelId: string,
+ provider?: string
+): Promise<string> {
try {
const raw = await reasoningService.processText(text.slice(0, 2000), modelId, null, {
systemPrompt: TITLE_SYSTEM_PROMPT,
temperature: 0.3,
disableThinking: getSettings().noteFormattingDisableThinking,
+ provider,
});
const cleaned = raw.trim().replace(/^["']|["']$/g, "");
return cleaned.length > 0 && cleaned.length < 100 ? cleaned : "";
diff --git a/src/utils/pendingInvitationToken.ts b/src/utils/pendingInvitationToken.ts
new file mode 100644
index 000000000..4a35ce3b7
--- /dev/null
+++ b/src/utils/pendingInvitationToken.ts
@@ -0,0 +1,16 @@
+const STORAGE_KEY = "pendingInvitationToken";
+
+export function storePendingInvitationToken(token: string): void {
+ if (typeof window === "undefined") return;
+ localStorage.setItem(STORAGE_KEY, token);
+}
+
+export function consumePendingInvitationToken(): string | null {
+ if (typeof window === "undefined") return null;
+ return localStorage.getItem(STORAGE_KEY);
+}
+
+export function clearPendingInvitationToken(): void {
+ if (typeof window === "undefined") return;
+ localStorage.removeItem(STORAGE_KEY);
+}
diff --git a/src/utils/providerIcons.ts b/src/utils/providerIcons.ts
index 3855910c7..f9aba8db5 100644
--- a/src/utils/providerIcons.ts
+++ b/src/utils/providerIcons.ts
@@ -12,6 +12,7 @@ import bedrockIcon from "@/assets/icons/providers/bedrock.svg";
import azureIcon from "@/assets/icons/providers/azure.svg";
import vertexIcon from "@/assets/icons/providers/vertex.svg";
import xaiIcon from "@/assets/icons/providers/xai.svg";
+import cortiIcon from "@/assets/icons/providers/corti.svg";
export const PROVIDER_ICONS: Record<string, string> = {
openai: openaiIcon,
@@ -29,6 +30,7 @@ export const PROVIDER_ICONS: Record<string, string> = {
azure: azureIcon,
vertex: vertexIcon,
xai: xaiIcon,
+ corti: cortiIcon,
};
export function getProviderIcon(provider: string): string | undefined {
@@ -41,6 +43,7 @@ export const MONOCHROME_PROVIDERS = [
"anthropic",
"openai-oss",
"xai",
+ "corti",
] as const;
export function isMonochromeProvider(provider: string): boolean {
diff --git a/test/helpers/clipboardRestore.test.js b/test/helpers/clipboardRestore.test.js
new file mode 100644
index 000000000..c558cc038
--- /dev/null
+++ b/test/helpers/clipboardRestore.test.js
@@ -0,0 +1,106 @@
+const test = require("node:test");
+const assert = require("node:assert/strict");
+const Module = require("node:module");
+
+const fakeClipboard = {
+ text: "",
+ html: "",
+ formats: ["text/plain"],
+ availableFormats() {
+ return this.formats;
+ },
+ readText() {
+ return this.text;
+ },
+ writeText(text) {
+ this.text = text;
+ },
+ readHTML() {
+ return this.html;
+ },
+ write(payload) {
+ this.text = payload.text;
+ this.html = payload.html;
+ },
+ readImage() {
+ return { isEmpty: () => true };
+ },
+ writeImage() {},
+};
+
+const originalLoad = Module._load;
+Module._load = function loadWithElectronMock(request, parent, isMain) {
+ if (request === "electron") {
+ return {
+ clipboard: fakeClipboard,
+ systemPreferences: {
+ isTrustedAccessibilityClient: () => true,
+ },
+ };
+ }
+ return originalLoad.call(this, request, parent, isMain);
+};
+
+const ClipboardManager = require("../../src/helpers/clipboard");
+Module._load = originalLoad;
+
+function resetClipboard() {
+ fakeClipboard.text = "";
+ fakeClipboard.html = "";
+ fakeClipboard.formats = ["text/plain"];
+}
+
+test("restore runs when clipboard still contains the pasted text", async () => {
+ resetClipboard();
+ fakeClipboard.text = "dictated text";
+ const manager = new ClipboardManager();
+
+ await manager._restoreClipboardAfterDelay(
+ { type: "text", data: "previous clipboard" },
+ { delayMs: 0, expectedText: "dictated text" }
+ );
+
+ assert.equal(fakeClipboard.text, "previous clipboard");
+});
+
+test("restore is skipped when another clipboard write wins the race", async () => {
+ resetClipboard();
+ fakeClipboard.text = "user copied something else";
+ const manager = new ClipboardManager();
+
+ await manager._restoreClipboardAfterDelay(
+ { type: "text", data: "previous clipboard" },
+ { delayMs: 0, expectedText: "dictated text" }
+ );
+
+ assert.equal(fakeClipboard.text, "user copied something else");
+});
+
+test("pasteText waits for prior clipboard restoration before starting the next paste", async () => {
+ const manager = new ClipboardManager();
+ const events = [];
+ let releaseFirstRestore;
+
+ manager._pasteText = async (text) => {
+ events.push(`start:${text}`);
+ events.push(`end:${text}`);
+ if (text === "first") {
+ return {
+ restoreComplete: new Promise((resolve) => {
+ releaseFirstRestore = resolve;
+ }),
+ };
+ }
+ return { restoreComplete: Promise.resolve() };
+ };
+
+ await manager.pasteText("first");
+ const secondPaste = manager.pasteText("second");
+ await new Promise((resolve) => setTimeout(resolve, 0));
+
+ assert.deepEqual(events, ["start:first", "end:first"]);
+
+ releaseFirstRestore();
+ await secondPaste;
+ assert.deepEqual(events, ["start:first", "end:first", "start:second", "end:second"]);
+});
diff --git a/test/helpers/dictationRouting.test.js b/test/helpers/dictationRouting.test.js
index 30a6d72bb..2678714a3 100644
--- a/test/helpers/dictationRouting.test.js
+++ b/test/helpers/dictationRouting.test.js
@@ -102,3 +102,73 @@ test("skips reasoning when nothing is reachable", async () => {
"skip"
);
});
+
+test("agent is reachable in cloud mode without an explicit model", async () => {
+ const { resolveDictationAgentReachability } = await load();
+
+ assert.equal(
+ resolveDictationAgentReachability({
+ useDictationAgent: true,
+ dictationAgentModel: "",
+ isCloudAgent: true,
+ isSelfHostedAgent: false,
+ }),
+ true
+ );
+});
+
+test("agent is reachable in self-hosted mode without an explicit model", async () => {
+ const { resolveDictationAgentReachability } = await load();
+
+ assert.equal(
+ resolveDictationAgentReachability({
+ useDictationAgent: true,
+ dictationAgentModel: "",
+ isCloudAgent: false,
+ isSelfHostedAgent: true,
+ }),
+ true
+ );
+});
+
+test("agent is unreachable with an empty model on a model-required provider", async () => {
+ const { resolveDictationAgentReachability } = await load();
+
+ assert.equal(
+ resolveDictationAgentReachability({
+ useDictationAgent: true,
+ dictationAgentModel: " ",
+ isCloudAgent: false,
+ isSelfHostedAgent: false,
+ }),
+ false
+ );
+});
+
+test("agent is reachable with an explicit model (BYOK/local/enterprise)", async () => {
+ const { resolveDictationAgentReachability } = await load();
+
+ assert.equal(
+ resolveDictationAgentReachability({
+ useDictationAgent: true,
+ dictationAgentModel: "gpt-5.5",
+ isCloudAgent: false,
+ isSelfHostedAgent: false,
+ }),
+ true
+ );
+});
+
+test("disabling the dictation agent overrides cloud reachability", async () => {
+ const { resolveDictationAgentReachability } = await load();
+
+ assert.equal(
+ resolveDictationAgentReachability({
+ useDictationAgent: false,
+ dictationAgentModel: "",
+ isCloudAgent: true,
+ isSelfHostedAgent: true,
+ }),
+ false
+ );
+});
diff --git a/test/helpers/dictionaryEchoFilter.test.js b/test/helpers/dictionaryEchoFilter.test.js
index 192ee5e18..085ba16ff 100644
--- a/test/helpers/dictionaryEchoFilter.test.js
+++ b/test/helpers/dictionaryEchoFilter.test.js
@@ -2,9 +2,7 @@ const test = require("node:test");
const assert = require("node:assert/strict");
test("detects verbatim echo of dictionary prompt", async () => {
- const { matchesDictionaryPrompt } = await import(
- "../../src/utils/dictionaryEchoFilter.js"
- );
+ const { matchesDictionaryPrompt } = await import("../../src/utils/dictionaryEchoFilter.js");
assert.equal(
matchesDictionaryPrompt("OpenWhispr, Parakeet, Alcahest", "OpenWhispr, Parakeet, Alcahest"),
true
@@ -12,9 +10,7 @@ test("detects verbatim echo of dictionary prompt", async () => {
});
test("detects echo when Whisper adds trailing period", async () => {
- const { matchesDictionaryPrompt } = await import(
- "../../src/utils/dictionaryEchoFilter.js"
- );
+ const { matchesDictionaryPrompt } = await import("../../src/utils/dictionaryEchoFilter.js");
assert.equal(
matchesDictionaryPrompt("OpenWhispr, Parakeet, Alcahest.", "OpenWhispr, Parakeet, Alcahest"),
true
@@ -22,9 +18,7 @@ test("detects echo when Whisper adds trailing period", async () => {
});
test("detects echo with different capitalization", async () => {
- const { matchesDictionaryPrompt } = await import(
- "../../src/utils/dictionaryEchoFilter.js"
- );
+ const { matchesDictionaryPrompt } = await import("../../src/utils/dictionaryEchoFilter.js");
assert.equal(
matchesDictionaryPrompt("openwhispr, parakeet, alcahest", "OpenWhispr, Parakeet, Alcahest"),
true
@@ -32,9 +26,7 @@ test("detects echo with different capitalization", async () => {
});
test("detects echo when Whisper strips commas", async () => {
- const { matchesDictionaryPrompt } = await import(
- "../../src/utils/dictionaryEchoFilter.js"
- );
+ const { matchesDictionaryPrompt } = await import("../../src/utils/dictionaryEchoFilter.js");
assert.equal(
matchesDictionaryPrompt("OpenWhispr Parakeet Alcahest", "OpenWhispr, Parakeet, Alcahest"),
true
@@ -42,9 +34,7 @@ test("detects echo when Whisper strips commas", async () => {
});
test("detects echo with extra whitespace", async () => {
- const { matchesDictionaryPrompt } = await import(
- "../../src/utils/dictionaryEchoFilter.js"
- );
+ const { matchesDictionaryPrompt } = await import("../../src/utils/dictionaryEchoFilter.js");
assert.equal(
matchesDictionaryPrompt("OpenWhispr, Parakeet, Alcahest", "OpenWhispr, Parakeet, Alcahest"),
true
@@ -52,9 +42,7 @@ test("detects echo with extra whitespace", async () => {
});
test("does not flag legitimate speech containing dictionary words", async () => {
- const { matchesDictionaryPrompt } = await import(
- "../../src/utils/dictionaryEchoFilter.js"
- );
+ const { matchesDictionaryPrompt } = await import("../../src/utils/dictionaryEchoFilter.js");
assert.equal(
matchesDictionaryPrompt(
"I just installed OpenWhispr and it works great",
@@ -65,9 +53,7 @@ test("does not flag legitimate speech containing dictionary words", async () =>
});
test("does not flag speech that partially overlaps with dictionary", async () => {
- const { matchesDictionaryPrompt } = await import(
- "../../src/utils/dictionaryEchoFilter.js"
- );
+ const { matchesDictionaryPrompt } = await import("../../src/utils/dictionaryEchoFilter.js");
assert.equal(
matchesDictionaryPrompt("OpenWhispr, Parakeet", "OpenWhispr, Parakeet, Alcahest"),
false
@@ -75,80 +61,53 @@ test("does not flag speech that partially overlaps with dictionary", async () =>
});
test("returns false when dictionary prompt is null", async () => {
- const { matchesDictionaryPrompt } = await import(
- "../../src/utils/dictionaryEchoFilter.js"
- );
+ const { matchesDictionaryPrompt } = await import("../../src/utils/dictionaryEchoFilter.js");
assert.equal(matchesDictionaryPrompt("some text", null), false);
});
test("returns false when text is null", async () => {
- const { matchesDictionaryPrompt } = await import(
- "../../src/utils/dictionaryEchoFilter.js"
- );
+ const { matchesDictionaryPrompt } = await import("../../src/utils/dictionaryEchoFilter.js");
assert.equal(matchesDictionaryPrompt(null, "OpenWhispr"), false);
});
test("returns false when both inputs are empty strings", async () => {
- const { matchesDictionaryPrompt } = await import(
- "../../src/utils/dictionaryEchoFilter.js"
- );
+ const { matchesDictionaryPrompt } = await import("../../src/utils/dictionaryEchoFilter.js");
assert.equal(matchesDictionaryPrompt("", ""), false);
});
test("handles single-word dictionary", async () => {
- const { matchesDictionaryPrompt } = await import(
- "../../src/utils/dictionaryEchoFilter.js"
- );
+ const { matchesDictionaryPrompt } = await import("../../src/utils/dictionaryEchoFilter.js");
assert.equal(matchesDictionaryPrompt("OpenWhispr", "OpenWhispr"), true);
assert.equal(matchesDictionaryPrompt("OpenWhispr is great", "OpenWhispr"), false);
});
test("handles unicode dictionary words with accents", async () => {
- const { matchesDictionaryPrompt } = await import(
- "../../src/utils/dictionaryEchoFilter.js"
- );
- assert.equal(
- matchesDictionaryPrompt("Müller, François, José", "Müller, François, José"),
- true
- );
- assert.equal(
- matchesDictionaryPrompt("muller francois jose", "Müller, François, José"),
- false
- );
+ const { matchesDictionaryPrompt } = await import("../../src/utils/dictionaryEchoFilter.js");
+ assert.equal(matchesDictionaryPrompt("Müller, François, José", "Müller, François, José"), true);
+ assert.equal(matchesDictionaryPrompt("muller francois jose", "Müller, François, José"), false);
});
test("handles CJK dictionary words", async () => {
- const { matchesDictionaryPrompt } = await import(
- "../../src/utils/dictionaryEchoFilter.js"
- );
- assert.equal(
- matchesDictionaryPrompt("東京, 大阪", "東京, 大阪"),
- true
- );
+ const { matchesDictionaryPrompt } = await import("../../src/utils/dictionaryEchoFilter.js");
+ assert.equal(matchesDictionaryPrompt("東京, 大阪", "東京, 大阪"), true);
});
test("detects repeated echo where Whisper loops the dictionary", async () => {
- const { matchesDictionaryPrompt } = await import(
- "../../src/utils/dictionaryEchoFilter.js"
- );
+ const { matchesDictionaryPrompt } = await import("../../src/utils/dictionaryEchoFilter.js");
const dict = "OpenWhispr, Parakeet, Alcahest";
const repeated = "OpenWhispr, Parakeet, Alcahest, OpenWhispr, Parakeet, Alcahest";
assert.equal(matchesDictionaryPrompt(repeated, dict), true);
});
test("detects echo with minor Whisper additions among dictionary words", async () => {
- const { matchesDictionaryPrompt } = await import(
- "../../src/utils/dictionaryEchoFilter.js"
- );
+ const { matchesDictionaryPrompt } = await import("../../src/utils/dictionaryEchoFilter.js");
const dict = "Alpha, Bravo, Charlie, Delta, Echo, Foxtrot, Golf, Hotel, India, Juliet";
const echoWithFiller = "Alpha Bravo Charlie Delta Echo Foxtrot Golf Hotel India Juliet the";
assert.equal(matchesDictionaryPrompt(echoWithFiller, dict), true);
});
test("does not flag completely unrelated text", async () => {
- const { matchesDictionaryPrompt } = await import(
- "../../src/utils/dictionaryEchoFilter.js"
- );
+ const { matchesDictionaryPrompt } = await import("../../src/utils/dictionaryEchoFilter.js");
assert.equal(
matchesDictionaryPrompt(
"The quick brown fox jumps over the lazy dog",
diff --git a/test/helpers/transcriptText.test.js b/test/helpers/transcriptText.test.js
index ebd16f987..498d3de31 100644
--- a/test/helpers/transcriptText.test.js
+++ b/test/helpers/transcriptText.test.js
@@ -1,7 +1,10 @@
const test = require("node:test");
const assert = require("node:assert/strict");
-const { transcriptsOverlap, transcriptsLooselyOverlap } = require("../../src/helpers/transcriptText");
+const {
+ transcriptsOverlap,
+ transcriptsLooselyOverlap,
+} = require("../../src/helpers/transcriptText");
test("transcriptsOverlap matches near-duplicate meeting transcripts", () => {
assert.equal(
diff --git a/test/helpers/transcriptionAuth.test.js b/test/helpers/transcriptionAuth.test.js
index 217a7e5c8..cd0d18bcd 100644
--- a/test/helpers/transcriptionAuth.test.js
+++ b/test/helpers/transcriptionAuth.test.js
@@ -2,9 +2,7 @@ const test = require("node:test");
const assert = require("node:assert/strict");
test("returns true for self-hosted mode with configured URL", async () => {
- const { shouldSkipTranscriptionApiKey } = await import(
- "../../src/helpers/transcriptionAuth.js"
- );
+ const { shouldSkipTranscriptionApiKey } = await import("../../src/helpers/transcriptionAuth.js");
assert.equal(
shouldSkipTranscriptionApiKey({
transcriptionMode: "self-hosted",
@@ -15,9 +13,7 @@ test("returns true for self-hosted mode with configured URL", async () => {
});
test("returns false for self-hosted mode without URL", async () => {
- const { shouldSkipTranscriptionApiKey } = await import(
- "../../src/helpers/transcriptionAuth.js"
- );
+ const { shouldSkipTranscriptionApiKey } = await import("../../src/helpers/transcriptionAuth.js");
assert.equal(
shouldSkipTranscriptionApiKey({
transcriptionMode: "self-hosted",
@@ -28,9 +24,7 @@ test("returns false for self-hosted mode without URL", async () => {
});
test("returns false for self-hosted mode with whitespace-only URL", async () => {
- const { shouldSkipTranscriptionApiKey } = await import(
- "../../src/helpers/transcriptionAuth.js"
- );
+ const { shouldSkipTranscriptionApiKey } = await import("../../src/helpers/transcriptionAuth.js");
assert.equal(
shouldSkipTranscriptionApiKey({
transcriptionMode: "self-hosted",
@@ -41,9 +35,7 @@ test("returns false for self-hosted mode with whitespace-only URL", async () =>
});
test("returns false for openai cloud provider mode", async () => {
- const { shouldSkipTranscriptionApiKey } = await import(
- "../../src/helpers/transcriptionAuth.js"
- );
+ const { shouldSkipTranscriptionApiKey } = await import("../../src/helpers/transcriptionAuth.js");
assert.equal(
shouldSkipTranscriptionApiKey({
transcriptionMode: "",
@@ -55,16 +47,12 @@ test("returns false for openai cloud provider mode", async () => {
});
test("returns false when transcriptionMode is missing from settings", async () => {
- const { shouldSkipTranscriptionApiKey } = await import(
- "../../src/helpers/transcriptionAuth.js"
- );
+ const { shouldSkipTranscriptionApiKey } = await import("../../src/helpers/transcriptionAuth.js");
assert.equal(shouldSkipTranscriptionApiKey({}), false);
});
test("returns false for non-self-hosted mode even with URL configured", async () => {
- const { shouldSkipTranscriptionApiKey } = await import(
- "../../src/helpers/transcriptionAuth.js"
- );
+ const { shouldSkipTranscriptionApiKey } = await import("../../src/helpers/transcriptionAuth.js");
assert.equal(
shouldSkipTranscriptionApiKey({
transcriptionMode: "cloud",
diff --git a/test/helpers/whisperVadConfig.test.js b/test/helpers/whisperVadConfig.test.js
index 0326295b4..1bd2094ad 100644
--- a/test/helpers/whisperVadConfig.test.js
+++ b/test/helpers/whisperVadConfig.test.js
@@ -2,9 +2,8 @@ const test = require("node:test");
const assert = require("node:assert/strict");
test("sanitizeWhisperVadConfig applies defaults and clamps invalid values", async () => {
- const { DEFAULT_WHISPER_VAD_CONFIG, sanitizeWhisperVadConfig } = await import(
- "../../src/helpers/whisperVadConfig.js"
- );
+ const { DEFAULT_WHISPER_VAD_CONFIG, sanitizeWhisperVadConfig } =
+ await import("../../src/helpers/whisperVadConfig.js");
const cfg = sanitizeWhisperVadConfig({
threshold: 99,