r/opencode • u/mohamed_bakkali • Sep 23 '26
I’m building native local voice input for OpenCode — useful idea or am I just too obsessed with OpenCode? 😅
I’ve been building a small tool called OpenCode Voice because I wanted a much better voice workflow inside OpenCode itself.
The idea is simple: instead of using a global dictation app that pastes into whatever field is focused, voice recording/transcription would happen directly inside OpenCode, tied to the specific session/window that started it.
The current goal is:
fully local/offline transcription
privacy-first, no cloud required
support for multiple speech-to-text engines and model families
ability to choose the model you want
eventually a local model manager to download, detect, switch, and delete models
reuse models you already have installed when possible
asynchronous transcription, so one OpenCode session can be processing while you work in another
ChatGPT-style voice UX: cancel, stop + insert, or stop + send
open-source
I already have a working version and I’m currently improving the integration and compatibility.
The long-term idea is not to hard-code one Whisper model, but to make the STT backend extensible so things like Whisper, Parakeet, Qwen ASR, and other local models/providers can be added.
But before I spend way too much time polishing this...
Would you actually use something like this?
I’d especially love feedback on:
which STT models/backends you’d want supported first
whether you’d want a built-in local model downloader/manager
macOS / Linux / Windows priority
shortcuts and voice UX
any other voice-related workflow you wish OpenCode had
If there’s enough interest, I’m planning to put it on GitHub and develop it openly.
8
u/Tall_Instance9797 Sep 23 '26
I don't get why anyone would want voice for only opencode? I'm using voice to write this right now, and it works for any / every input field and for every application. Of course I want voice, but I want it system-wide. What would be the point in having it for only opencode? Seems like a lot of work just to make voice work for one application, when the same amount of work could make voice work for literally every application, only there are already tons of voice apps on github already so what is even the point in yet another?
3
u/mohamed_bakkali Sep 23 '26
The main advantage is session-aware async voice. You could record for Session A, let it transcribe in the background, switch to Session B, and keep working. No waiting on the focused text field like with global dictation apps
2
u/Tall_Instance9797 Sep 23 '26
I still don't understand, or maybe it's just I don't have any of those problems. Record session A and let it transcribe in the background? Is your computer from ten years ago? Most modern machines transcribe audio faster than real time. I don't have to wait for anything to run in the background. I most certainly do not wait on the focus text field. I can be talking and flicking between one window and another / other apps and desktops, and then when I'm ready for the audio to go into a field, I click into the field where I want it to go and then click the stop recording button and all of the text ends up where I want it to.
1
u/mohamed_bakkali Sep 23 '26
Fair point — with a fast local model on a modern machine, you may barely notice the transcription time at all.
Where I think this still helps is with longer brainstorming, heavier/more accurate models, or weaker machines where processing can take a few seconds. The bigger difference for me is that the recording already belongs to Session A, so I can leave it processing and keep working in Session B without having to come back and refocus the destination field.
And there’s a small practical bonus too: with global dictation, if I’m navigating around while speaking, I might hit
Escto close a menu or back out of something and accidentally stop/cancel the recording 😄3
u/MailCardO Sep 23 '26
I stand to this. Many times I found myself wanting to verbally give instructions or interact, but unable. You made a good point
3
u/cool-lala Sep 23 '26
Nice one I used to think of making telegram bot type so you can plug in telegram and command and contro and edit files of computer via telegram keep going let me know you may need speech recognition and whisper or edge tts
1
u/mohamed_bakkali Sep 23 '26
That’s actually possible and pretty interesting. A local bridge could route Telegram commands to specific OpenCode sessions. I’d keep it as a later feature though, because session routing/security needs to be done properly
3
u/patricious Sep 23 '26
Opencode TUI not having voice is one of the main reasons I switched to OpenChamber (runs on top of OC CLI)
2
u/mohamed_bakkali Sep 23 '26
Looks like you might be able to come back to the native TUI soon 😄 That’s actually one of the main reasons I’m building this
4
u/Wrong_Visual5077 Sep 23 '26
It's a good idea, check out Whisperflow and build a solution that's better than what they have for your specific use-case
1
u/mohamed_bakkali Sep 23 '26
Thanks, I’ll check it out. The main difference I’m aiming for is session-aware voice inside OpenCode, so transcription can keep processing while you move to another session
2
u/Stevie2k8 Sep 23 '26
Like the idea, I have a massive ticketing system for opencode via mcp and just tell them to createor work on a ticket to - whatever. Or go work on ticket 233...A voice usage would come in handy....
1
u/mohamed_bakkali Sep 23 '26
That’s exactly the kind of workflow I had in mind. Saying “work on ticket 233” or creating tasks by voice sounds like a really good fit for this
3
u/ichisay Sep 23 '26
Realmente, en la computadora prefiero escribir, cuando lo uso a distancia uso rustdesk y con el transcriptor del propio teclado de android mando directamente audios a opencode ya desde hace mucho y de hecho, en Windows apretando dos teclas a la vez puedes hacer lo mismo
1
u/mohamed_bakkali Sep 23 '26
Yeah, those global dictation tools work well. The part I want to improve is not being tied to the currently focused field—you can record in one OpenCode session, leave it processing, and keep working elsewhere
1
u/Still-Ad3045 Sep 23 '26
I was feeling the same vibes today, but i made a more general one using desert ant labs cool tiny models, its required MLX tho. Shits fast as fuck, and you click where you want to write, speak, let go.
https://github.com/Jam-Sw/fennec
might be interesting if you incorporated apple specific speedups in your project, I like the visuals!
1
u/mohamed_bakkali Sep 23 '26
This is really interesting, especially the MLX speedups. I definitely want to explore Apple Silicon-optimized models while keeping the session-aware OpenCode workflow
1
u/Salvioner Sep 23 '26
I know of people suffering from dislexia that actually would find this very useful. I would use this myself a lot if it were available.
I think it should come with a small local model that can be downloaded on user confirmation (ask on first start or when a newer version is available), or let the user choose between a state of the art one and one that is small enough to work on a 5-10 years old computer with good ram - if anything like this exists. Then user can configure a different one.
2
u/mohamed_bakkali Sep 23 '26
That’s a really good accessibility use case. I do want lighter and more accurate local model options, but keep the pipeline simple: voice → local STT model → OpenCode. No extra AI layer eating RAM.
1
Sep 23 '26
I think that feature heating my mac..
2
u/mohamed_bakkali Sep 23 '26
Yeah, that’s definitely something I want to avoid. The plan is to support lighter models and performance-focused backends so people can choose speed/efficiency over maximum accuracy.
1
u/theguyisaayu Sep 23 '26
i use Wispr flow for almost 90% inputs.
1
u/mohamed_bakkali Sep 23 '26
Makes sense. The difference I’m aiming for is session-aware async voice inside OpenCode, so you can leave one session transcribing and keep working in another
1
u/DirtyIlluminati Sep 23 '26
I Use Handy instead, it checks all your boxes
1
u/mohamed_bakkali Sep 23 '26
Handy is great and actually inspired part of this idea. The main difference is that this stays bound to the OpenCode session instead of the currently focused field
1
u/pungat_ Sep 23 '26
github?
1
u/mohamed_bakkali Sep 23 '26
Yep 😄 I’m planning to put it on GitHub once the current version is stable enough for people to actually test
1
u/bluedevilSCT Sep 29 '26
Which models are you using
1
u/mohamed_bakkali Sep 29 '26
it's up to you ! you could use what ever model you want. i recommend using Whisper Large v3 Turbo
7
u/anakin69546 7d ago
Cool project. I've been using VoiceOS as a system-wide layer that also works inside coding tools. Might be complementary depending on how deep you want the integration.
1
u/deviant46n2 Sep 23 '26
i built an ai bridge to my phone which the models on my phone have audio and visual models. that way i can use speech to text on my phone and it goes directly to opencode on my pc. and my pc can call my phone models for vision your def not alone in wanting this lol
1
u/mohamed_bakkali Sep 23 '26
That’s actually really cool 😄 And yeah, definitely proves there’s demand for voice workflows around OpenCode. Your setup sounds more general though—mine is focused on keeping voice native, local, and session-aware inside OpenCode
1
u/Arousiinngg 4d ago
If you end up open sourcing the voice input side, would be interesting to see how it compares to a system wide tool on latency and accuracy inside longer coding sessions.
1
u/Arousiinngg 4d ago
One thing I've like about keeping the voice layer separate (VoiceOS in my case) is that it works the same way across editors, terminals, and chat tools. Native integration is still cool if you want tighter control inside OpenCode specifically though.
1
u/Ecstatic_Affect5052 2d ago
Nice project brother . But if i share my life experience ld that I've been on a system-wide layer voice os that also works inside coding tools . Ohh thanks god for my time saving n the main advantage for me is consistency across editors and terminals..consistency is the key to success. Native integration could still be stronger if you live inside one app all day though.
1
u/tjrdvel Sep 23 '26
i use https://hex.kitlangton.com/ by the opencode team on macos and it’s super fast and lightweight plus works everywhere on the machine not just opencode !! worth checking it out
1
u/theplactos Sep 23 '26
Look cool! But, i don’t really get the idea of having to use a solution that only works for OpenCode? I use Handy (https://handy.computer/), and it works great. I can use it anywhere I want, even OpenCode. Also, I’m able to select whatever transcribing model I want.
1
u/eachDayIWakeUp Sep 23 '26
I am lookingf for something like this. I have seen Hex but this is only available for mac and im on linux
1
1
u/Ok_Preference_5029 Sep 23 '26
I'm just very sorry. I cannot control myslef for saying this, yes'm, because you write like how ChatGPT writes, I don't know why I cannot control myself for saying it.
1
1
1
1
u/vitorgabrielklehm Sep 23 '26
Isso é útil, mas muito útil, bem, pelo menos pra mim que uso bastante o OpenCode para fazer alguns projetos pessoais, isso vai ajudar muito
1
1
1
1
1
1
1
u/LegalizeFlorskin Sep 25 '26
As a fellow “obsessed with tinkering with opencode”-er… you’ll eventually get an intuition on whether you’re actually making a meaningful improvement or just fuckin off to feed the brain worms lmao. Sometimes you can do both simultaneously 😳
1
u/dimebag_lives Sep 25 '26
I use openwhispr, it does all of that and more with local models, not sure why i would have to use this that's only scoped to opencode
1
1
u/Practical-Prompt-306 Sep 26 '26
Having async speech-to-text tied to single OpenCode sessions is actually gonna be super useful for multi-tasking.
IDK, being able to talk through a prompt in one window while working in another saves a ton of focus.
Are you planning to support light local models so it does not hog all our RAM while running?
1
1
u/External_Ad1549 Sep 30 '26
man, try seeing whether apps are already built or not. OpenChamber has a lot of features and Wispr Flow has like 100% reliability.
1
u/Extension-Aide8990 Oct 07 '26
Extremely interested. All that was missing was a link to the project on GitHub so I could actively follow it. I’ll check back in a while to take a look.
As an idea, consider the possibility of answering the questions prompted in the console through the TUI, also using voice input. As far as I know, there are two types:
Single-selection questions.
Multiple-selection questions.
0
u/Gloomy_Lifeguard_968 Sep 23 '26
Eu gostei do projeto e gostaria de usar
1
u/mohamed_bakkali Sep 23 '26
Glad you like it 😄 I’m working on making it stable enough to share publicly soon
0
Sep 23 '26
[deleted]
2
u/mohamed_bakkali Sep 23 '26
Yep, I’ve started looking at OpenChamber. The goal here is similar voice convenience, but directly inside the native OpenCode TUI without needing a separate GUI wrapper
2
Sep 23 '26
[removed] — view removed comment
1
u/mohamed_bakkali Sep 23 '26
Yep, I like that idea. OpenCode would be the first integration, and if the core is modular enough, Pi could definitely come next
2
Sep 27 '26
[removed] — view removed comment
2
1
Sep 29 '26
[removed] — view removed comment
1
u/mohamed_bakkali Sep 29 '26
Good call — the released version already uses transcribe.cpp, so the backend side is there. What I still need to add is exposing lighter models like Parakeet/Qwen3 directly in the setup/model-selection flow.
26
u/grabber4321 Sep 23 '26
talking to ai is icky for me personally. i just like typing - mainly because i come up with more ideas as I write.
its probably a good idea to freeball ideas.
Id want to avoid "no dont put that SELECT command here, put it...20 lines lower! LOWER! EVEN LOWER!!!!!" LUL