Transcribe audio and video files to text with timestamps. Accepts local files or URLs and outputs a JSON array of timestamped text segments.
aux4 aux4 pkger install aux4/transcribe
aux4 transcribe recording.mp3
aux4 transcribe https://example.com/audio.wav
The package uses the OpenAI Whisper API for transcription. Provide credentials via environment variable or a config file:
export OPENAI_API_KEY=sk-...
aux4 transcribe recording.mp3
config:
transcribe:
model:
type: openai
api: default
aux4 transcribe recording.mp3 --configFile config.yaml --config transcribe
The api field supports:
default — Uses the standard OpenAI API (OPENAI_API_KEY)codex — Uses the Codex API endpoint (CODEX_API_KEY)The output is a JSON array of timestamped segments:
[
{
"time": "0:00",
"seconds": 0,
"text": "Welcome to the assembly guide."
},
{
"time": "0:15",
"seconds": 15,
"text": "Start by laying out all the parts."
}
]
Any audio or video format supported by the OpenAI Whisper API:
aux4 transcribe <file>Transcribe an audio or video file to text with timestamps.
| Flag | Description | Default | |------|-------------|---------| | file | Path or URL to the audio/video file | (required) | | --configFile | Configuration file path | | | --config | Configuration profile name | |