Skip to content
Projetos

Sobre

Open source voice-to-text for the terminal. Record from a hotkey, transcribe with any provider, pipe to AI or shell commands.

Ferramentas de desenvolvimento

Como estes números são medidos

O que você pode fazer

  • Linux-first voice input - Global hotkey setup for Omarchy/Hyprland, GNOME, KDE, and other Linux desktops, with macOS support too.
  • Provider choice - Bring your own API key and switch between OpenAI, Deepgram, Groq, DeepInfra, AssemblyAI, Berget, ElevenLabs, Mistral, and local Parakeet and Whisper models.
  • Model-scoped params - Tune supported provider/model request params persistently or per run with --param key=value.
  • Local transcription models - Download curated Parakeet and Whisper models, including Klang Pianissimo for Swedish and Danish, or add custom Hugging Face/direct model files for offline transcription.

Crescimento medido de estrelas

em 24 h
+1
em 7 dias
0
em 15 dias
+1
em 1 mês
Coletando histórico

Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.

README.md

Original

OSTT logo

Open source voice-to-text for Linux and macOS

Stars Last Commit License

Features • Install • Quick Start • Processing • Docs


OSTT is a terminal-native speech-to-text tool. Record from a hotkey, transcribe with local Parakeet and Whisper models or your chosen cloud provider, then send the result to your clipboard, a file, stdout, an AI prompt, or any shell command. Local transcription runs offline and supports GPU acceleration through Metal on macOS and CUDA or Vulkan on Linux.

OSTT is built for people who treat the terminal as a normal place for voice input to land. It does not assume one vendor, one subscription, or one app-specific workflow: use offline local models, bring your own API key for OpenAI, Deepgram, Groq, DeepInfra, AssemblyAI, Berget, ElevenLabs, or Mistral, and retry the same recording with another model when needed. Voice becomes text that can move through the same tools as everything else.

[!TIP] Bind Alt+Space to ostt launch -c for a global hotkey popup. Press once to start recording, press again to stop and transcribe. Use Alt+Ctrl+Space with ostt launch -c -p for a popup with an action picker.

Your browser does not support the video tag.

Features

  • Linux-first voice input - Global hotkey setup for Omarchy/Hyprland, GNOME, KDE, and other Linux desktops, with macOS support too.
  • Provider choice - Bring your own API key and switch between OpenAI, Deepgram, Groq, DeepInfra, AssemblyAI, Berget, ElevenLabs, Mistral, and local Parakeet and Whisper models.
  • Model-scoped params - Tune supported provider/model request params persistently or per run with --param key=value.
  • Local transcription models - Download curated Parakeet and Whisper models, including Klang Pianissimo for Swedish and Danish, or add custom Hugging Face/direct model files for offline transcription.
  • Terminal-native workflow - Use stdout, clipboard, files, aliases, shell completions, logs, and pipes.
  • Scriptable post-processing - Transform transcripts with AI prompts or bash commands using ostt -p and ostt process.
  • Retry without re-recording - Save recordings locally, then re-transcribe them with a different provider or model.
  • File transcription and replay - Transcribe existing audio files and replay saved recordings from history.
  • Keywords and custom vocabulary - Improve recognition for names, technical terms, and project-specific language.
  • Open source, no subscription - Public code, local configuration, and no vendor lock-in beyond the providers you choose.

Documentation

Full documentation is available at https://ostt.ai.

Start here:

Install

curl -fsSL https://ostt.ai/install | bash

The installer detects your platform, installs supported runtime dependencies, downloads the latest release, verifies its checksum, and installs the ostt CLI.

If you prefer platform package managers, see the docs for Homebrew, AUR, .deb, and .rpm options.

Quick Start

ostt model          # Choose a local or cloud transcription model
ostt auth           # Save cloud provider credentials (cloud models only)
ostt                # Record, transcribe, print to stdout
ostt -c             # Record, transcribe, copy to clipboard
ostt -m deepgram/nova-3 -c
ostt -m parakeet/parakeet-ultra -c
ostt -m whisper/turbo --param language=sv -c
ostt launch -c      # Popup workflow for global hotkeys

By default, press Enter to stop and transcribe, Space to pause/resume, and Esc, q, or Ctrl+C to cancel.

Processing

Processing actions transform transcriptions after recording or from history.

ostt -p clean -c              # Record, transcribe, clean, copy
ostt launch -c -p clean       # Popup hotkey workflow with processing
ostt process                  # Process most recent history item, show picker
ostt process clean            # Process most recent history item with clean action
ostt process 3 clean -c       # Process history item #3 with clean action
ostt process clean --attach screen.png  # Send an image to the AI action too
echo "some text" | ostt process - clean  # Process text from stdin, not history
ostt process list             # List configured actions
ostt agent list               # List the agents AI actions can run

Actions are configured in ~/.config/ostt/ostt.toml and can run either bash commands or AI agents (Claude Code, Codex, OpenCode, Gemini CLI and others; ostt agent list shows them). Agents run with their tools switched off, in an empty working directory. [process.agents.<id>] adds an agent or replaces a built-in one; the built-in ones are in src/config/agents.toml. See Processing Actions for examples.

If an action fails while recording, transcribing or retrying, the unprocessed transcription is output instead, so the words are not lost.

Scripting

Other programs can rely on:

  • Exit status: 0 on success; 3 when record, transcribe or retry output the unprocessed transcription because processing failed; 2 when the command line cannot be parsed; 1 for any other failure. ostt launch exits 0 once the popup is open.
  • Errors on stderr, starting with Error: and followed by the causes (Caused by:); a command line that cannot be parsed starts with error: instead.
  • JSON lists with --format json, an empty list when there is nothing to list:
    • ostt process list: id, name, description, images (whether --attach works with the action), prompt_in_args, and error when the action's agent is unknown or not valid.
    • ostt agent list: id, name, installed, path, images, prompt_in_args, builtin; an agent defined but not valid has id, name and error.
    • ostt model current: model, provider, model_id, local; exits non-zero when no model is selected.
  • JSON transcription results with --format json on ostt transcribe, ostt retry and ostt record: prints one JSON object on stdout with text (delivered text), raw_text (after replace rules, before processing), model, provider, model_id, history_id (null if history could not be saved), process (null when no action ran — including empty transcripts or a cancelled action — or {action, status, error} where status is "ok" or "failed"), and timing ({transcription_ms, process_ms}). Combining --format json with -c, --paste or -o still delivers the text there and prints the JSON on stdout. When processing fails, text equals raw_text, process.status is "failed", and ostt exits 3. Combining --format json with -p without an action exits 2. record --format json prints the JSON after the TUI closes, exits 0 with empty stdout when the recording is cancelled or too short to save, and closes without waiting for a keypress on errors (exiting 1 on setup, audio or transcription failure, or 3 on processing failure).
  • ostt paste: reads text from stdin and pastes into the focused app using [output.paste], letting integrations check window focus before pasting.
  • ostt agent models <id>: the models an agent offers, one per line; nothing for an agent with no list, and an error when its models command fails.

Common Commands

ostt                         # Record audio, print transcription
ostt -c                      # Record audio, copy transcription
ostt -o notes.txt            # Record audio, write transcription to file
ostt -m openai/whisper-1     # Override model for this run
ostt --param language=sv -c  # Override a transcription param for this run
ostt launch -c               # Open popup recorder
ostt transcribe file.mp3 -m deepinfra/openai/whisper-large-v3
ostt retry 2 -m groq/whisper-large-v3 -c
ostt replay                  # Play most recent recording
ostt model                   # Choose a local or cloud transcription model
ostt model params whisper/turbo  # List supported params for a model
ostt history                 # Browse transcription history
ostt keyword                 # Manage transcription keywords
ostt config                  # Open config file
ostt config list-devices     # List audio input devices
ostt logs                    # View recent logs
ostt completions zsh         # Generate shell completions
ostt completions install bash    # Install completions system-wide
ostt --version               # Show version
ostt --help                  # Show help

Common aliases: r for record, t for transcribe, l for launch, p for process, d for daemon, a for auth, h for history, k for keyword, c for config, and rp for replay.

Providers

OSTT is bring-your-own-API-key and supports OpenAI, Deepgram, DeepInfra, Groq, AssemblyAI, Berget, ElevenLabs, and Mistral transcription models.

Run ostt auth to select your provider/model and save credentials securely.

Run ostt model to switch between local models and authenticated cloud models. The local model screen can download curated models, activate downloaded models, delete local model files, and add custom models from Hugging Face model pages or direct .gguf / ggml-*.bin URLs. See Local Models for the Parakeet and Whisper models.

Per-provider and per-model params are configured under [provider.params] and [provider."model".params], or passed per run with --param key=value. See Providers and Models and Configuration for supported params.

For example, OpenAI's recommended file-transcription model takes plural language hints and native keywords:

ostt transcribe audio.wav -m openai/gpt-transcribe --param languages=en,fr --param keywords=OSTT,OpenCode
ostt model params openai/gpt-transcribe

Local Klang Pianissimo (Swedish and Danish)

Klang AI's Pianissimo models are approximately 600M-parameter Parakeet v3 fine-tunes trained specifically for Swedish and Danish speech, with punctuation and capitalization. OSTT's curated Q8_0 GGUF files are 706 MiB each, run offline on CPU or GPU, and need no Python runtime or API key.

Language Model ID Klang's model page Hugging Face GGUF downloads
Swedish parakeet/pianissimo-sv Pianissimo for Swedish Model card GGUF
Danish parakeet/pianissimo-da Pianissimo for Danish Model card GGUF

Klang releases both under CC BY 4.0. Use ostt model to download them. Their GGUF instructions require language=sv or language=da; local Parakeet language settings require OSTT 0.0.35 or newer. See Pianissimo setup for commands, saved settings, compatibility checks, attributed accuracy reports, and OSTT-specific limitations.

Berget Pianissimo (Swedish)

Select berget/klang/pianissimo with ostt model, or transcribe a file:

ostt transcribe audio.mp3 --model berget/klang/pianissimo

This is Klang's Swedish Pianissimo (KlangAI/pianissimo-sv), served through Berget's realtime WebSocket API. It is separate from the local Swedish and Danish GGUF models above. OSTT converts the recording to 24 kHz mono PCM using ffmpeg, sends it as one turn, and returns the final transcript.

Transcription starts after recording stops. OSTT does not send microphone audio or display partial transcripts during recording. See the Pianissimo overview and Berget reference for setup and limitations.

Supported params are language (default sv) and positive chunk_seconds (default 3, the server's target segment length). For example:

[berget."klang/pianissimo".params]
language = "sv"
chunk_seconds = 3

Berget's Pianissimo route does not support keyword boosting, prompts, or temperature. OSTT does not send saved keywords to it. Unsupported params in its own config section are ignored with a log warning; in [berget.params] or --param they are rejected. Keep Whisper-specific params in model-specific sections rather than [berget.params] when switching between these models.

Platform Setup

Suggested default keybindings:

Hotkey Command Action
Alt+Space ostt launch -c Popup recorder, clipboard output
Alt+Ctrl+Space ostt launch -c -p Popup with action picker

Platform-specific setup notes are available in the docs:

Development

git clone https://github.com/kristoferlund/ostt.git
cd ostt
cargo fmt --check
cargo test --locked
cargo clippy --locked --all-targets -- -D warnings

Release builds use the dist profile:

cargo build --profile dist --locked

Contributing

Contributions are welcome, but opening an issue before starting implementation and before submitting a pull request is required, except for small, clearly scoped bug fixes and minor documentation corrections.

For features, behavior changes, refactors, new providers or models, and build or packaging changes, open an issue—or join an existing one—and wait for a maintainer to agree on the scope and approach before coding. Opening an issue alone does not mean the proposed change is accepted.

Pull requests must link the relevant issue, or explain why the small-change exception applies. Non-exempt pull requests that bypass this process may be closed without review.

See CONTRIBUTING.md for the workflow and testing requirements.

Contributors

kristoferlund
Kristofer
claw-fmckl
Kristofer Claw
andrepadez
Pastilhas
kristofernoaccess
kristofernoaccess
axo-bot
axo bot

License

MIT

Explore projetos relacionados

Carregando…