Quick speech-to-text for devs. Record audio, press Enter, get text.
$ rec
Recording...
2.1s transcribing...
Hello, this is a test.
cargo install --git https://github.com/max-lt/rec-cliOr from source:
git clone https://github.com/max-lt/rec-cli
cargo install --path rec-cliRequires a Mistral API key:
export MISTRAL_API_KEY=your_key_hererec # Record → Enter → transcription to stdout
rec -c # Same, but also copy to clipboard
rec --clip # Same as -crec | pbcopy # macOS: copy to clipboard
rec | xclip -selection clip # Linux: copy to clipboard
rec >> notes.txt # Append to file
echo "$(rec)" | some-command # Use in scripts- Starts recording from default microphone
- Press Enter to stop
- Sends audio to Voxtral (Mistral's speech-to-text API)
- Prints transcription to stdout
Status messages (Recording..., 2.1s transcribing...) go to stderr, so they don't interfere with piping.
MIT