Skip to content

Latest commit

 

History

History
93 lines (64 loc) · 4.27 KB

CLI.md

File metadata and controls

93 lines (64 loc) · 4.27 KB

Command line

Drive the service from scripts, launchers and any hotkey system.

Recording

# Start recording
hyprwhspr record start

# Start recording with specific language
hyprwhspr record start --lang it    # Italian
hyprwhspr record start --lang de    # German
hyprwhspr record start --lang es    # Spanish

# Stop recording (transcribes and pastes)
hyprwhspr record stop

# Push-to-talk key-up: stop, or latch a long hold
hyprwhspr record release

# Cancel recording (discards audio, no transcription)
hyprwhspr record cancel

# Toggle recording on/off
hyprwhspr record toggle
hyprwhspr record toggle --lang it   # Toggle with language override

# Check current status
hyprwhspr record status

# Capture: trigger a recording and stream the transcription to stdout
# Blocks until transcription is complete. Suppresses text injection — use for scripting/piping.
# Self-triggers a recording if none is in progress; attaches to an in-flight recording if one is.
hyprwhspr record capture
hyprwhspr record capture --lang it   # Capture with language override

# Diagnose how the running daemon would process a captured transcript
hyprwhspr record capture --trace-processing

record start waits up to 1.5 seconds for confirmation before saying recording started. Without confirmation, it reports that the request was sent and asks you to check notifications. record status also recognizes long-form recording.

Trace processing

--trace-processing prints one UTF-8 JSON document using the running daemon's settings. It reports exact raw and preprocessed text, backend/model, recording and silence settings, symbol/hook state, vad_mode, and boundary_mode. It does not run hooks, append space, save the transcript, or inject text.

  • output_language: the requested output language, or null when unset; English for supported translation tasks
  • spoken_command_language: the selected command language, or null when replacements are disabled or the language has no built-in commands

vad_mode: none; silero_filter (pre-inference filtering); silero_segmented (ONNX segmentation after the reported duration gate); server_vad; manual_commit; or provider_managed. boundary_mode is manual_stop, silence_auto_stop, or continuous_silence. Continuous silence flushing and realtime server VAD can turn pauses into independently punctuated segments. Trace does not change VAD or silence defaults.

File transcription

Files in. Words out. WAV and MP3; local and REST backends.

hyprwhspr transcribe recording.mp3
hyprwhspr transcribe recording.wav -o transcript.txt
hyprwhspr transcribe recording.wav --lang fr --clean

Stdout by default; -o writes UTF-8 text. --lang sets the language. --clean applies configured cleanup, without pasting or running hooks.

An idle service lends its model, reloading it if the idle timer unloaded it. A model unloaded by hand needs hyprwhspr model reload first. A busy service says no. No service: the command loads the backend itself.

File transcription does not work with the realtime WebSocket backend.

Models

hyprwhspr model download          # the configured model
hyprwhspr model download small    # another model; config unchanged
hyprwhspr model status

Without a name, Whisper fetches model and faster-whisper fetches faster_whisper_model. A named download leaves your config alone.

Direct model downloads for whisper.cpp, Qwen3-ASR, and Parakeet.cpp are checked against their published checksums before replacing existing files. A download that stops sending data for 60 seconds fails. A slow one keeps going. A failed download leaves your old file in place; run the same command to start again. Faster-whisper uses its own Hugging Face download and cache handling.

Automated setup

hyprwhspr setup auto    # same as: hyprwhspr install auto

hyprwhspr setup and setup auto end the same way. When a required step fails, setup ends with "Setup finished with steps remaining", lists the commands that finish the job, and exits nonzero. Work already done is kept. Without a ready model, the service is not started. Steps you can finish by hand, like logging out and back in, do not fail setup.