CodeIssuesPull RequestsActionsSecurityInsights
✨ AI
More
Settings

feat(core): wire audio→STT pipeline so dictation actually transcribes #4781

Merged⚡ AI-generatedXSccantynz wants to mergeclaude/setup-workers-local-dev-OIn7Rmainopened Apr 18, 2026
ccantynzcommented Apr 18, 2026

Originally written by @ccantynz-alt on GitHub.
Imported from https://github.com/ccantynz-alt/voxlen/pull/20


Makes the product actually transcribe

Before this PR, the audio → STT pipeline was not wired. Pressing the dictation hotkey captured audio into a channel nobody read. API keys stored by the frontend never reached the engines. Every dictation silently failed.

What changes

Core fix: audio → STT → transcription event

  • lib.rs now takes the receiver off the audio engine at startup and spawns the existing AudioProcessor as a long-running tokio task. It consumes audio chunks, runs VAD, calls Deepgram/Whisper, and emits the transcription event that useTauriEvents already listens for.

Core fix: settings flow through to engines

  • update_settings / reset_settings now map the persisted AppSettings onto SttConfig + GrammarConfig and apply them to the running engines. Previously they only wrote to disk.
  • New apply_loaded_settings_to_engines() runs at startup after settings hydrate, so API keys are present before the first hotkey press.
  • Added set_grammar_config_internal (non-command) for in-process config updates.

Quick wins from the E2E audit

  • capabilities/default.json — added autostart:default. Plugin was registered but had no permission; "launch at login" would crash.
  • OnboardingWizard.canProceed() — API-key step now requires apiKeyValid === true, not just "field non-empty." Users can no longer bluff past onboarding with a fake key.
  • landing/index.html — schema.org offers fixed: Pro was $5.99 (now $29), Lifetime was $149 (now $599). Added missing Professional $79 tier.

Tests

  • Frontend tsc --noEmit — clean
  • Rust cargo check — blocked locally by missing GTK system libs; CI will verify

After merge

Next main build → v1.0.8 installer where dictation end-to-end actually works. User installs, configures a Deepgram key in onboarding, presses Ctrl+Shift+D, and words appear.

https://claude.ai/code/session_01setup-workers

ccantynzcommented Apr 18, 2026

Originally written by @vercel[bot] on GitHub.


The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
voxlen Ready Ready Preview, Comment Apr 18, 2026 1:52am

Request Review

Cross-repo impact

See what breaks downstream if this PR merges.

Analyze →
⮌ Merged

This pull request was merged into main.

c comment · e edit title · m merge · a approve · r request changes · ? shortcuts