Uh oh!
There was an error while loading. Please reload this page.
feat(tui-mic): Add mic/STT plugin with provider selection, config, and multi-provider support (Whisper/OpenAI, ElevenLabs, Sarvam AI) - #30059
Conversation
…d dummy UI (Speech-to-Text, Whisper/OpenAI/ElevenLabs/Sarvam AI)
The following comment was made by an LLM, it may be inaccurate: Potential duplicate found:
|
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
Issue for this PR
Closes #
Type of change
What does this PR do?
This PR adds a microphone (mic) and Speech-to-Text (STT) plugin to the TUI of OpenCode.
It introduces a new toolbar mic button and prompt command for converting spoken audio directly to text in prompts, with first-class UI integration and user-friendly configuration.
Key features:
Note:
The current implementation includes a UI/UX shell for provider selection and STT config and a user-friendly dialog flow. Actual audio capture & provider API integration should be hooked up in the marked section of the plugin (
// TODO: microphone recording impl and stream to backend).Stubbing/mock input is used for demonstration—ready for productionizing with e.g. Node audio libraries or a backend helper.
How did you verify your code works?
Screenshots / recordings
Sample screenshots:
(Add your own screenshots and/or GIF showing the mic button and dialog flow in the TUI here!)
Checklist