npx remotion whisper transcribev4.0.546
Transcribe a local audio or video file into a Caption[] array.
Transcriptions runs locally in Node.js using WebGPU.
Install the required packages before you run this command.
If not already done, the selected Whisper model will be downloaded automatically.
Transcribe a filenpx remotion whisper transcribe public/interview.mp4
Flags
--output
Path to the JSON output file. By default, Whisper writes <media-name>-captions.json next to the input file, or <media-name>-transcript.json with --raw. Pass - to write JSON to stdout and send progress and diagnostics to stderr.
Pipe Whisper's transcript to jqnpx remotion whisper transcribe interview.mp4 --raw --output - | jq -r '.text'
--raw
Write the Whisper transcription result with text, word timestamps, and model. By default, the command writes a Caption[] array.
--overwrite
Transcription overwrites existing output files by default.
Use --no-overwrite or --overwrite=false to prevent overwriting an existing file.
--model
The Whisper model to use. Defaults to small.en for English or small when --language is set.
--language
The spoken language name or code, such as german or de. Required for multilingual models.
--binaries-directory
The directory where the platform-specific binaries and libraries that Remotion needs are located. Those include an ffmpeg and ffprobe binary, a Rust binary for various tasks, and various shared libraries. If the value is set to null, which is the default, then the path of a platform-specific package located at node_modules/@remotion/compositor-* is selected.This option is useful in environments where Remotion is not officially supported to run like bundled serverless functions or Electron.
--config
Specify a location for the Remotion config file.
--log
One of trace, verbose, info, warn, error.Determines how much info is being logged to the console.
Default
info.
--quiet
Suppress progress updates. -q is an alias.