kristoferlund/ostt
Open source voice-to-text for the terminal. Record from a hotkey, transcribe with any provider, pipe to AI or shell commands.
What it solves
OSTT solves the problem of getting spoken words into text without leaving the terminal. It lets you record audio with a hotkey, transcribe it using local or cloud models, and send the result to your clipboard, a file, stdout, or any shell command. It avoids vendor lock-in by supporting many providers and local offline models, and it works on Linux and macOS.
How it works
You trigger recording with a hotkey (e.g., Alt+Space) or by running ostt. Press Enter to stop and transcribe, Space to pause/resume, Esc/q/Ctrl+C to cancel. Transcription runs either locally with downloaded Parakeet or Whisper models (offline, GPU-accelerated via Metal on macOS, CUDA/Vulkan on Linux) or through a cloud provider you authenticate with (OpenAI, Deepgram, Groq, DeepInfra, AssemblyAI, Berget, ElevenLabs, Mistral). The transcript is then output according to flags: stdout, clipboard, file, or passed to a processing action (bash command or AI agent). Recordings are saved locally so you can retry with a different model without re-recording. You can also transcribe existing audio files and replay history.
Who it’s for
Terminal users on Linux or macOS who want voice input to land directly in their command-line workflow. It suits people who prefer open-source, no-subscription tools and want to choose their own transcription provider or run fully offline. It's also for those who want to script post-processing of transcripts (e.g., cleaning, summarizing) with bash or AI agents.
Highlights
- Linux-first global hotkey setup for Omarchy/Hyprland, GNOME, KDE, plus macOS support.
- Bring-your-own-API-key: switch between OpenAI, Deepgram, Groq, DeepInfra, AssemblyAI, Berget, ElevenLabs, Mistral, and local Parakeet/Whisper models.
- Local offline transcription with curated models, including Klang Pianissimo for Swedish and Danish, and custom Hugging Face models.
- Terminal-native: stdout, clipboard, files, aliases, shell completions, logs, pipes.
- Scriptable post-processing with AI prompts or bash commands via
ostt -pandostt process. - Retry without re-recording: save recordings and re-transcribe with another provider/model.
- File transcription and replay from history.
- Keywords and custom vocabulary to improve recognition.
- Open source (MIT), no subscription, no vendor lock-in.
Related
- Project
- Project
- Project
- Project
- Project