Speech-to-Text Commands
Transcribe a File
Section titled “Transcribe a File”dg listen audio.mp3Transcribe a URL
Section titled “Transcribe a URL”dg listen https://example.com/audio.mp3Live Microphone
Section titled “Live Microphone”Stream from your default microphone:
dg listen --micPress Ctrl+C to stop.
stdin / Piped Input
Section titled “stdin / Piped Input”Pipe audio from another tool:
ffmpeg -i video.mp4 -f s16le -ar 16000 -ac 1 - | dg listen --encoding linear16Options
Section titled “Options”Output Format
Section titled “Output Format”dg -o json listen audio.mp3 # JSON
dg -o yaml listen audio.mp3 # YAML
dg -o table listen audio.mp3 # Formatted terminal table
dg -o csv listen audio.mp3 # CSV-o belongs to dg itself, so it goes before the subcommand name. Without it, dg listen prints the plain-text transcript.
Model Selection
Section titled “Model Selection”dg listen audio.mp3 --model nova-3 # Default model
dg listen audio.mp3 --model nova-2 # General purpose
dg listen audio.mp3 --model whisper # Whisper modelFeatures
Section titled “Features”dg listen audio.mp3 --diarize # Speaker diarization
dg listen audio.mp3 --smart-format # Smart formatting
dg listen audio.mp3 --summarize # Generate summary
dg listen audio.mp3 --topics # Topic detection
dg listen audio.mp3 --sentiment # Sentiment analysisSubtitles
Section titled “Subtitles”dg listen audio.mp3 --webvtt # WebVTT captions
dg listen audio.mp3 --srt # SRT subtitlesLanguage
Section titled “Language”dg listen audio.mp3 --language en-US # English (US)
dg listen audio.mp3 --language es # Spanish
dg listen audio.mp3 --language de # GermanBoolean Options
Section titled “Boolean Options”Boolean options do not take a value:
dg listen audio.mp3 --punctuate
dg listen --mic --interimRun dg listen --help for the complete set of supported CLI options. The command does not forward arbitrary API parameters.
Command Alias
Section titled “Command Alias”dg transcribe is a deprecated alias for dg listen:
dg transcribe audio.mp3