#Building OpenSW, my local speech-to-text app
##Table of Contents
- Introduction
- Looking at existing tools
- What is OpenSW?
- Demo video
- The technology stack
- Editing transcriptions with Ollama
- How to install it
- Using OpenSW
- Development challenges
- What comes next
- Wrapping up
##Introduction
I’ve always enjoyed programming, both at work and in my spare time.
Lately, though, the way I develop software has been changing.
With the rise of GitHub Copilot, Claude Code, Cursor, and Antigravity, agentic coding has become a mainstream way of working.
I myself am also increasingly developing software in the Vibe Coding style, where I develop it while interacting with AI agents.
In this development style, the quality of the final product depends on how well the requirements are communicated through the prompt, and how accurately feedback can be provided on the finished product.
What is especially important is to convey feedback in words while operating the completed UI, such as "I would like you to fix this here," or "This is different from the original image."
However, when you are using a browser or an app, your focus is on that, so it can be difficult to type on the keyboard in some situations.
What is drawing attention recently is voice input.
By touching the completed product and saying to yourself, "I want you to fix this," or "This is the problem," you should be able to communicate feedback smoothly.
##Looking at existing tools
When I looked for a voice input tool, I found several excellent software.
###superwhisper
superwhisper is an AI voice input tool for macOS.
It offers a range of features such as local processing using Whisper, support for more than 100 languages, and registration of custom vocabulary.
It works offline and also considers privacy.
###Aqua Voice
Aqua Voice is a voice input tool compatible with Windows and macOS.
It features a unique high-precision model called "Avalon," which understands the context of the screen and can appropriately recognize code notation and everyday text.
The developers advertise input at five times typing speed and pitch it as a productivity tool for programmers.
###Whispering
Whispering is an open-source voice input tool.
It has a simple design where you can start recording and get text using the shortcut key.
###Where the existing tools fell short
As a result of investigating these tools, the following issues have become apparent.
- Only the paid version: superwhisper and Aqua Voice require a paid subscription.
- Local LLM not supported: There are no tools that can use a local LLM for text editing after transcription.
- Platform Limitations: Many are macOS-specific.
I usually use Windows machines with a GPU and macOS that can leverage Apple Silicon's unified memory.
If possible, I wanted to make the most of this local machine power and have everything from voice recognition to text correction by LLMs completed locally.
Therefore, while drawing on these existing tools, we decided to develop an open-source voice transcription tool "OpenSW" that meets our own needs.
##What is OpenSW?
OpenSW is a desktop application that performs local voice recognition using OpenAI Whisper.
You don't need to send data to the cloud, so you can use it without worrying about privacy.
Open-source Speech-to-Text Desktop Application
###Main features
- 🎤 Local voice recognition: Local processing using Whisper (no cloud required)
- ⚡ GPU Acceleration: Fast inference using CUDA on Windows and Metal on macOS.
- 🤖 Text correction by LLM: Ollama integrates with it, allowing for the removal of fillers and correction of punctuation marks.
- ⌨️ Global Shortcut: Start/stop recording from any screen using
Ctrl+Alt+Space. - 📋 Automatic clipboard copy: Automatically copy the transcription results to the clipboard.
- 🔔 System Notification: Notification upon transcription completion
- 📍 System Tray permanently installed: Runs in the background and can be accessed from the tray icon.
- 🖥️ Compact recording mode: Displays a minimal floating window during recording.
##Demo video
Watch the video above for an actual feel of the usage.
I think you can start recording quickly with the global shortcut and see how automatic transcription and clipboard copy are performed.
##The technology stack
The development of OpenSW uses the following technologies.
| Category | Technology |
|---|---|
| Frontend | React 18, TypeScript, Vite |
| Backend | Rust, Tauri 2.0 |
| Speech Recognition | whisper-rs (whisper.cpp bindings) |
| Audio Processing | cpal, hound, rodio |
| LLM Integration | Ollama API (via reqwest) |
###Why I chose Tauri
When creating a desktop application, I considered Electron and Tauri.
The final reason for choosing Tauri is as follows.
- Small binary size: Electron includes Chromium, so it can be several hundred MB, but Tauri uses the system WebView, so it can be around 10MB.
- Can write a backend in Rust: You can implement performance-critical tasks such as audio processing and integration with Whisper in Rust.
- Stability of Tauri 2.0: The stable version was released in 2024, and the plugin ecosystem has also been expanded.
###About Whisper
whisper.cpp is a C/C++ implementation that efficiently runs OpenAI's Whisper model on CPU/GPU.
By using the Rust binding whisper-rs, you can directly call Whisper from the Tauri backend.
There is a trade-off between accuracy and speed depending on the model size.
| Model | Size | Accuracy | Speed |
|---|---|---|---|
ggml-tiny.bin | About 75 MB | Low | Faster |
ggml-base.bin | About 142 MB | Center | Fast |
ggml-small.bin | About 466 MB | Good | Ordinary |
ggml-medium.bin | About 1.5 GB | High | Slow |
ggml-large-v3-turbo.bin | About 1.6 GB | High | Ordinary |
ggml-large-v3.bin | About 3 GB | Best | Slowest |
For Japanese transcription, we recommend ggml-medium.bin or higher for accuracy purposes.
##Editing transcriptions with Ollama
The results of voice recognition often include fillers (such as "uh" or "you know") or incorrect punctuation marks.
With OpenSW, you can automatically correct these using LLMs by integrating Ollama.
By specifying Ollama's endpoint and model in the settings screen and setting a custom prompt, you can format the text transcription results.
For example, you can set instructions such as "Remove fillers and add appropriate punctuation points" as prompts.
##How to install it
###Prebuilt binaries
We provide built-in binaries for Windows and macOS (Apple Silicon).
👉 Download from the Release Page
| Platform | File |
|---|---|
| Windows (exe) | OpenSW.exe |
| Windows (msi) | OpenSW_0.1.0_x64_en-US.msi |
| macOS (Apple Silicon) | OpenSW_0.1.0_aarch64.dmg |
###Building from source
# Clone the repository
git clone https://github.com/liebe-magi/OpenSW.git
cd OpenSW
# Install dependencies
bun install
# Run in development mode
bun run tauri dev
# Production build
bun run tauri build
The Whisper model needs to be downloaded separately from Hugging Face.
##Using OpenSW
- Select the Whisper model: When you first launch, select the downloaded Whisper model file (
.bin). - Audio Input Settings: Select the microphone you want to use from the dropdown menu.
- Start recording: Press
Ctrl+Alt+Spaceor click the tray icon. - Stop recording: Press
Ctrl+Alt+Spaceagain. The audio will be transcribed and copied to the clipboard.
##Development challenges
###CUDA builds and iteration time
I particularly struggled with building CUDA on Windows.
When building whisper-rs with CUDA support, version management and linking settings in the CUDA Toolkit were complex, and trial and error was required.
The length of the build time is even more troublesome.
Since builds that have CUDA enabled take a long time, even checking for a small fix can cause waiting time.
Debugging iterations were quite challenging.
###Implementing the system tray
Tauri has system tray support, but it took longer than expected to work properly.
We needed to adjust the fine movements such as click events on the tray icon and displaying the menu.
###Global keyboard shortcuts
Implementing a global shortcut that allows you to start recording with Ctrl+Alt+Space no matter which app you're focused on also took more effort than expected.
It was necessary to make adjustments to avoid differences in behavior between different operating systems and to prevent shortcut conflicts.
##What comes next
We are currently releasing v0.1.0, but we plan to add the following features in the future.
- Improve Linux support
- Support for more LLM providers
- Save and Search History Functionality
- Strengthening Multilingual Support
##Wrapping up
OpenSW is a voice-to-text tool that is completely local.
The global shortcut makes it quick to start recording, and the optional LLM editing step helps turn a rough transcription into text I can use in my daily work.
OpenSW is open source. Give it a try if that sounds useful.
Feedback and contributions are welcome!
Open-source Speech-to-Text Desktop Application