@bryan-gc/transcribe-cli
v1.0.7
Published
CLI tool to record audio and transcribe it using OpenAI Whisper
Downloads
167
Maintainers
Readme
transcribe-cli
A terminal (CLI) application built with Node.js and TypeScript that records audio from your microphone and transcribes it using the OpenAI Whisper API.
System Requirements
This tool depends on native audio utilities. Install them before running:
Linux (Ubuntu / Debian)
sudo apt-get update
sudo apt-get install sox libsox-fmt-allmacOS
brew install soxWindows
- Download the binaries from SoX.
- Add the SoX folder to your
PATHenvironment variable.
Installation
npm install -g @bryan-gc/transcribe-cliFirst Run & Configuration
On 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.
Usage
The application features two main modes of operation: Auto Record Mode (default) and Manual Menu Mode.
1. Auto Record Mode (Default)
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.
2. Manual Menu Mode
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)
Other CLI Options
# Display help and all available commands
transcribe-cli --help
transcribe-cli -h
# Output the current version
transcribe-cli --version
transcribe-cli -vDevelopment Usage
If 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