Skip to content

Command line

The installed copy exposes a small command line. It talks to the running service rather than starting a second one.

Entry Use
run.cmd The shortest path; runs the app with the bundled virtual environment
.venv\Scripts\python.exe main.py The explicit Python entry point

There is no separate executable in 0.4.0: the installed copy is a source copy with run.cmd, main.py and .venv. Use one of the two entries above.

Examples below use run.cmd.

Flag What it does
--toggle Starts or stops recording.
--cancel Discards the recording or the panel draft.
--status Prints the running instance’s status.json: state, version, pid, timestamp.
--transcribe <file> Transcribes one audio or video file over the named pipe.
--prompt <text> A recognition hint for this file; the configured prompt is used when omitted.
--words Asks for word-level timestamps and probabilities (--word-timestamps is an accepted alias).
--clip <start[,end]> Transcribes only that time range, in seconds; a start alone runs to the end of the file.
--transcribe-folder <dir> Queues every supported file in a folder as one batch.
--cancel-batch [<id>] Stops every unfinished batch, or the named one.
--doctor Runs the diagnostic checks and prints OK / WARN / FAIL per line.
--selftest Runs imports, loads the model, transcribes test_ru.wav and prints the recognized text.
--help Prints the whole command contract, including the file and folder options.
Terminal window
.\run.cmd --toggle

Same as pressing the dictation hotkey: starts or stops recording.

Terminal window
.\run.cmd --cancel

Discards the phrase or the panel draft. Nothing is inserted.

Terminal window
.\run.cmd --status

Prints the status of the running instance:

Field Meaning
state idle, recording, processing, paused, updating, error
version Product version
pid Process ID
ts Timestamp

A response older than 60 seconds is not considered current. status.json is a convenience, not a source of truth.

Terminal window
.\run.cmd --transcribe "D:\audio\meeting.mp4"
.\run.cmd --transcribe "D:\audio\note.m4a" --format txt --out "D:\text" --json

Transcribes one audio or video file. The call goes to the running service over the current user’s named pipe and never opens a port. Progress goes to stderr; stdout carries the result path, or a JSON object with --json.

Option Meaning
--lang <code> Recognition language, for example ru or en; default is the config
--format <name> txt, json, srt, vtt or all; default srt
--out <path> Write the result there instead of beside the source
--prompt <text> A recognition hint for this file; without it the configured preset is used
--words Ask for word timestamps and word probabilities; also cuts SRT/VTT by sentences
--clip <start[,end]> Transcribe only that range in seconds; one value runs to the end of the file
--json Machine-readable answer on stdout
--force Overwrite an existing output file
Terminal window
.\run.cmd --transcribe-folder "D:\audio\podcast" --recursive --format srt --json

Queues every supported file in a folder. The top level is used by default; --recursive includes subfolders. --out mirrors the folder tree under the destination, existing outputs are skipped unless --force, and one bad file does not stop the batch. The command prints a JSON summary.

Terminal window
.\run.cmd --cancel-batch
.\run.cmd --cancel-batch 3f2a1c

Stops every unfinished batch, or the batch whose id is named. The current file stops at a segment boundary and the queue does not continue.

Terminal window
.\run.cmd --doctor

Checks Python, dependencies, the model on disk, the CUDA/CPU profile, the microphone, the hotkey, update settings, free disk space and privacy switches. Each line is OK, WARN or FAIL; the exit code is 0 when nothing failed and 1 otherwise.

The report is read-only. It contains no dictated text, no window titles, no hotwords, no dictionary, no history and no HTTP token. The settings window has a Copy report button for the same output.

Terminal window
.\run.cmd --selftest

Runs a fixed chain: imports → model → test_ru.wav → recognized text. Exit code 0 means the chain passed, 1 means it failed. The WAV is present both in a fresh git clone and in an installed copy.

This is the fastest way to prove that recognition works on a machine, independent of the microphone.

Code Meaning
0 Success — the command completed, or the checks passed.
1 No running instance, a service or job error, a failed check, a failed selftest or an invalid command.
2 Bad arguments — an unknown option, a missing value, an unknown format or a second input file.
3 The transcription or the batch was cancelled.
4 --transcribe-folder found nothing to transcribe.

--toggle, --cancel, --status, --transcribe and --transcribe-folder require a running service. Without one they return 1. While the model is loading, a file call answers the model is loading and exits 1; retry later.

hook_command sends the recognized text to your own command:

  • the text arrives on stdin as UTF-8;
  • the command runs without a shell, so metacharacters are ordinary characters;
  • the timeout is 1–30 seconds (hook_timeout_s);
  • a failure or timeout is written to the log as a status only;
  • insertion is not affected; the hook runs in parallel.

Example: a small Python script that appends the text to a daily note.

Terminal window
.\run.cmd --status

Then set hook_command in config.json, for example:

"hook_command": "python C:\\tools\\vibe-hook.py",
"hook_timeout_s": 5

Because there is no shell, do not rely on |, >, && or environment expansion inside the command string. Put the logic in the script.

Start a dictation from a Stream Deck or a script:

Terminal window
.\run.cmd --toggle

Check whether the service is idle before sending work:

Terminal window
.\run.cmd --status

Verify a fresh installation without a microphone:

Terminal window
.\run.cmd --selftest

Collect a support report:

Terminal window
.\run.cmd --doctor > doctor.txt

Transcribe a recording and keep the answer machine-readable:

Terminal window
.\run.cmd --transcribe "D:\audio\call.m4a" --format json --json

Queue a folder and read the summary:

Terminal window
.\run.cmd --transcribe-folder "D:\audio\inbox" --recursive --json