[PR #3827] Add voice-to-text transcription feature #10772

Open
opened 2026-02-16 18:15:31 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/3827

State: open
Merged: No


Summary

Added voice-to-text transcription to OpenCode CLI. Click "Notate", speak, click "Stop" - transcribed text appears in input.

Changes

  • New: src/util/whisper.ts - Whisper API integration
  • New: src/util/audio.ts - Audio recording (sox/arecord)
  • Modified: src/config/config.ts - Optional whisper config
  • Modified: src/cli/cmd/tui/component/prompt/index.tsx - Notate/Stop buttons

Requirements

brew install sox  # macOS
opencode auth login  # Uses existing OpenAI key

Usage

bun install && cd packages/opencode && bun dev

Click "Notate" → speak → click "Stop" → text appears

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/3827 **State:** open **Merged:** No --- ### Summary Added voice-to-text transcription to OpenCode CLI. Click "Notate", speak, click "Stop" - transcribed text appears in input. ### Changes - **New:** `src/util/whisper.ts` - Whisper API integration - **New:** `src/util/audio.ts` - Audio recording (sox/arecord) - **Modified:** `src/config/config.ts` - Optional whisper config - **Modified:** `src/cli/cmd/tui/component/prompt/index.tsx` - Notate/Stop buttons ### Requirements ```bash brew install sox # macOS opencode auth login # Uses existing OpenAI key ``` ### Usage ```bash bun install && cd packages/opencode && bun dev ``` Click **"Notate"** → speak → click **"Stop"** → text appears ✨
yindo added the pull-request label 2026-02-16 18:15:31 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10772