# Repository Briefing: vimalk78/dictate
> Source: https://repoforai.com/repo/vimalk78/dictate (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/vimalk78/dictate
- **Category**: Voice, Vision & Video (语音 / 视觉 / 视频生成)
- **Primary Language**: Python
- **License**: MIT
- **Engineering Health**: B+ (73/100 · Maintenance 35/35 · Adoption 7/25 · Releases 11/20 · License 20/20)
- **Review Snapshot**: 2026-12-01
- **Deployment / Stack Signals**: Self-Hosted, Local AI, CLI, GPU
- **Momentum**: 26 ★ total (+0 24h / +0 7d) · 2 forks
- **When to Use**: Best for: Linux users who want system-wide push-to-talk for Claude Code, editors, or browsers, with local transcription by default and optional GPU offload on a trusted LAN. Skip if: You need live captions, supported Windows or macOS clients, managed multi-user deployment, or authenticated and encrypted remote transcription out of the box.

## Overview
```text
### Architecture & Core Mechanics
Dictate is a Linux desktop speech-to-text utility with a split-process design. In the standard installation, the `dictate` user service runs `--serve` and keeps a faster-whisper model loaded, while `dictate-ptt` runs `--ptt` and listens for the system-wide trigger through `evdev`. The local client and daemon communicate over a Unix socket. The desktop path delivers text to the clipboard, whereas the `--once` client prints it to stdout. Neither requires Claude Code.

The Python stack uses `sounddevice` with PortAudio for capture, NumPy for audio data, and `tomli` on Python versions below 3.11. The daemon maintains a rolling audio buffer. The integration points are CLI commands, the optional `dictate-editor`, and vocabulary files rather than a general plugin system. Global and project-local hints are merged and deduplicated, then passed per request, so moving between projects does not require a daemon restart.

### Key Capabilities & Differentiators
The default interaction is to hold Right Ctrl, speak, release, and paste once the completion bell sounds. A one-second rolling pre-buffer helps preserve the beginning of speech; the result is delivered after transcription rather than streamed into the active field. Keyboard reconnect handling is useful with KVM switches, and microphone health monitoring can notify the user and recalibrate after a device reconnects.

On CPU, hardware selection defaults to `small` with int8 compute. On NVIDIA GPUs with at least 4 GB of VRAM, it selects `medium` with CUDA int8. `large-v3` and `large-v3-turbo` are recommended overrides when hardware allows. `--lang` switches the transcription language without restarting the daemon, but model choice matters for multilingual use: `small` is weaker for Hindi than for English. A separate headless server can handle inference over the LAN without a microphone; the desktop daemon forwards raw float32 audio over TCP at about 64 KB/s.

### Trade-offs & Limitations
Compared with a standalone faster-whisper script, Dictate provides the desktop plumbing: global key handling, a warm model, reconnect monitoring, and clipboard delivery. The trade-off is two user services, persistent RAM or VRAM use for the model, and `input` group access for the keyboard listener. Compared with hosted dictation, the default local path avoids sending audio to a transcription provider, but users must maintain the model runtime and the Linux audio and clipboard stack. For multilingual use, test representative phrases rather than assuming the CPU default will be sufficient.

The clipboard handoff gives the user control over where text goes, but requires a paste action and is not live captioning. A deliberate change to PipeWire's default microphone calls for restarting both services, even though reconnect handling covers device interruptions. LAN offload moves the audio off the desktop: the protocol is described as raw TCP, with no documented authentication or TLS. Keep it on a trusted or separately secured network, and account for local transcription logs when setting retention policy.

### Hardware & Deployment Guide
The standard deployment targets a PipeWire Linux desktop with a microphone and a systemd user session. `install.sh` checks prerequisites without using sudo and uses `uv` to install pinned Python dependencies from `requirements.lock`. The supported Python range is 3.10–3.14; building `evdev` requires a compiler and headers, and the desktop workflow also needs PortAudio, `xsel`, `pw-play`, and `notify-send`. A user added to the `input` group must log out and back in before the listener can use that access.

The two user services start at login. Unless the model is already cached, the first startup downloads it from Hugging Face; subsequent local inference can run offline. `journalctl --user -u dictate -f` shows daemon readiness while the model loads. For a Jetson aarch64 deployment, `build-ctranslate2.sh` provides the source-build path. Clean installer tests cover Fedora 44/45 and Ubuntu 22.04/24.04, separate from the listed desktop hardware tests. No GitHub release is listed; the documented update path is `git pull` followed by `bash install.sh`.
```

## Key Capabilities
```text
- Process split: `dictate --serve` keeps Whisper loaded; `dictate --ptt` handles the global hold-to-talk key.
- Capture: A default one-second rolling pre-buffer preserves speech at key-down, with keyboard and microphone reconnect handling.
- Hardware: CPU defaults to `small` int8; NVIDIA GPUs with at least 4 GB VRAM default to `medium` CUDA int8.
- Vocabulary: Global `hints.d` and project `.dictate-hints.d` terms are merged and deduplicated per request.
- Output: Clipboard for desktop use, stdout through `--once` for scripts, and an optional Neovim editor for prompt review.
- LAN offload: `--listen` and `--server` forward raw float32 audio over TCP at about 64 KB/s.
```

## Quick Start / Clone
```bash
curl -6 -sS -m 6 -o /dev/null -w "%{http_code}\n" https://huggingface.co
```
