Skip to content

Add voice-to-text transcription feature#3827

Closed
LakshmanTurlapati wants to merge 1 commit intoanomalyco:devfrom
LakshmanTurlapati:STT
Closed

Add voice-to-text transcription feature#3827
LakshmanTurlapati wants to merge 1 commit intoanomalyco:devfrom
LakshmanTurlapati:STT

Conversation

@LakshmanTurlapati
Copy link
Copy Markdown

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 ✨

@dzianisv
Copy link
Copy Markdown

dzianisv commented Dec 9, 2025

This will be cool, if local whisper could be used, so no need in API keys and API usage. What do you think? Looks like this PR is abandoned, isn't it?

@wkoszek
Copy link
Copy Markdown

wkoszek commented Jan 12, 2026

@LakshmanTurlapati will you have time to fix this PR? I'd like to test it.

@heimoshuiyu
Copy link
Copy Markdown

hi chekout #9264 it works well for me

@github-actions
Copy link
Copy Markdown
Contributor

Closing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR.

@github-actions github-actions bot closed this Mar 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants