A terminal (CLI) application built with Node.js and TypeScript that records audio from your microphone and transcribes it using the OpenAI Whisper API.
This tool depends on native audio utilities. Install them before running:
sudo apt-get update
sudo apt-get install sox libsox-fmt-allbrew install sox- Download the binaries from SoX.
- Add the SoX folder to your
PATHenvironment variable.
npm install -g @bryan-gc/transcribe-cliOn the first launch, an interactive prompt will ask you for:
- Your OpenAI API Key
- A base path where audio recordings and glossaries will be stored
Your settings are saved persistently at ~/.transcribe-cli/config.json and reused on every subsequent run.
The application features two main modes of operation: Auto Record Mode (default) and Manual Menu Mode.
Optimized for quick usage. By default, launching the app instantly starts recording your audio using your saved configuration.
# Start recording instantly
transcribe-cli- Recording: Starts immediately upon launch.
- Stop & Transcribe: Simply press
Enter. The tool will stop recording, run the transcription, copy it to your clipboard (if enabled in your config), and exit automatically.
If you prefer the interactive terminal menu to change settings (Microphone, Language, Glossary, etc.) on the fly before recording, use the --manual flag:
transcribe-cli --manual
# or
transcribe-cli -mNavigate the interactive menu with:
- Arrow keys — move up/down
- Enter — confirm selection
- Hotkeys — press the letter shown in brackets (e.g.,
rto record,tto transcribe,qto quit)
# Display help and all available commands
transcribe-cli --help
transcribe-cli -h
# Output the current version
transcribe-cli --version
transcribe-cli -vIf you are developing the tool locally and running it via npm run start, you must use a double dash (--) to pass arguments to the script instead of npm itself:
# Auto Record Mode (Default)
npm run start
# Manual Menu Mode
npm run start -- --manual
npm run start -- -m
# View Help
npm run start -- --help
# View Version
npm run start -- --version