Thanks to visit codestin.com
Credit goes to github.com

Skip to content

max-lt/rec-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rec

Quick speech-to-text for devs. Record audio, press Enter, get text.

$ rec
Recording...
2.1s transcribing...
Hello, this is a test.

Install

cargo install --git https://github.com/max-lt/rec-cli

Or from source:

git clone https://github.com/max-lt/rec-cli
cargo install --path rec-cli

Requires a Mistral API key:

export MISTRAL_API_KEY=your_key_here

Usage

rec              # Record → Enter → transcription to stdout
rec -c           # Same, but also copy to clipboard
rec --clip       # Same as -c

Pipe it

rec | 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

How it works

  1. Starts recording from default microphone
  2. Press Enter to stop
  3. Sends audio to Voxtral (Mistral's speech-to-text API)
  4. Prints transcription to stdout

Status messages (Recording..., 2.1s transcribing...) go to stderr, so they don't interfere with piping.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages