Repository navigation
Expand file tree
/
Copy pathdefault.toml
More file actions
345 lines (295 loc) · 13.5 KB
/
Copy pathdefault.toml
File metadata and controls
345 lines (295 loc) · 13.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
# Voxtype Configuration
#
# Native Linux tray is enabled by default. Set [tray] enabled = false to opt out.
#
# Location: ~/.config/voxtype/config.toml
# All settings can be overridden via CLI flags
# Transcription engine: "whisper" (default) or "parakeet"
# Whisper: whisper.cpp via whisper-rs (most compatible)
# Parakeet: NVIDIA FastConformer via ONNX Runtime (requires --features parakeet)
# engine = "whisper"
# State file for external integrations (Waybar, polybar, etc.)
# Use "auto" for default location ($XDG_RUNTIME_DIR/voxtype/state),
# a custom path, or "disabled" to turn off. The daemon writes state
# ("idle", "recording", "transcribing") to this file whenever it changes.
# Required for `voxtype record toggle` and `voxtype status` commands.
state_file = "auto"
[hotkey]
# Built-in hotkey using evdev (Linux input subsystem)
#
# Most users should leave this disabled and use compositor keybindings instead:
# - Hyprland: bind/bindr in hyprland.conf
# - Sway: bindsym --no-repeat/--release in config
# - River: riverctl map / map -release
#
# Enable this if you're on X11, using a compositor without key-release support,
# or prefer a dedicated key like ScrollLock. Requires 'input' group membership.
enabled = false
# Key to hold for push-to-talk (when enabled = true)
# Common choices: SCROLLLOCK, PAUSE, RIGHTALT, F13-F24
# On macOS: F13-F20 supported (PrintScreen/ScrollLock/Pause arrive as F13/F14/F15)
# Use `evtest` to find key names for your keyboard
key = "SCROLLLOCK"
# Optional modifier keys that must also be held
# Example: modifiers = ["LEFTCTRL", "LEFTALT"]
modifiers = []
# Activation mode: "push_to_talk" or "toggle"
# - push_to_talk: Hold hotkey to record, release to transcribe (default)
# - toggle: Press hotkey once to start recording, press again to stop
# mode = "push_to_talk"
# Modifier key for secondary model selection (evdev only)
# Hold this key while pressing the hotkey to use secondary_model
# model_modifier = "LEFTSHIFT"
# Profile modifiers for context-aware post-processing (evdev only)
# Maps modifier keys to named profiles defined in [profiles.*] sections
# [hotkey.profile_modifiers]
# LEFTSHIFT = "translate" # Shift+hotkey activates [profiles.translate]
# RIGHTALT = "formal" # RightAlt+hotkey activates [profiles.formal]
[audio]
# Audio input device ("default" uses system default)
# List devices with: voxtype info devices
# (or `arecord -L`). This takes an ALSA device name, not a PulseAudio
# or PipeWire source name -- names from `pactl list sources` will not work.
device = "default"
# Sample rate in Hz (whisper expects 16000)
sample_rate = 16000
# Maximum recording duration in seconds (safety limit)
max_duration_secs = 60
# Pause MPRIS media players (Spotify, Firefox, etc.) when recording starts and
# resume them when it stops. Talks D-Bus directly, so no playerctl binary is
# required. Distros that ship playerctl-free (Omarchy Quattro, for example) can
# enable this safely.
# pause_media = false
# Lower active media stream volume while recording, then restore it as soon as
# recording stops. This is separate from pause_media; enable one behavior or
# the other depending on whether you want media paused or only quieter.
# duck_media = false
# duck_media_volume_percent = 34
# [audio.feedback]
# Enable audio feedback sounds (beeps when recording starts/stops)
# enabled = true
#
# Sound theme: "default", "subtle", "mechanical", or path to custom theme directory
# theme = "default"
#
# Volume level (0.0 to 1.0)
# volume = 0.7
[whisper]
# Execution mode: "local" (default) or "remote"
# - local: Use whisper.cpp locally via FFI
# - remote: Send audio to OpenAI-compatible API endpoint
# mode = "local"
# Model to use for transcription (local mode)
# Options: tiny, tiny.en, base, base.en, small, small.en, medium, medium.en, large-v3, large-v3-turbo
# .en models are English-only but faster and more accurate for English
# Or provide absolute path to a custom .bin model file
model = "base.en"
# Language for transcription
# Use "en" for English, "auto" for auto-detection
# See: https://github.com/openai/whisper#available-models-and-languages
language = "en"
# Translate non-English speech to English
translate = false
# Number of CPU threads for inference (omit for auto-detection)
# threads = 4
# Load model on-demand when recording starts (true) or keep loaded (false)
# When true, model is loaded when recording starts and unloaded after transcription
# When false, model is kept in memory for faster response times (default)
on_demand_loading = false
# GPU memory isolation mode
# Enable on laptops with hybrid graphics to let dGPU sleep between transcriptions.
# gpu_isolation = true
# Context window optimization for short recordings (disabled by default)
# Speeds up transcription for clips under 22.5 seconds. Disabled by default
# because some models (especially large-v3/turbo) may experience repetition
# loops. Enable if you want faster transcription and don't experience issues.
# context_window_optimization = true
# --- Remote mode settings (used when mode = "remote") ---
# remote_endpoint = "http://192.168.1.100:8080" # Required
# remote_model = "whisper-1" # Model to request from server
# remote_api_key = "sk-..." # Or use VOXTYPE_WHISPER_API_KEY env var
# remote_timeout_secs = 30
# [parakeet]
# Parakeet configuration (only used when engine = "parakeet")
# Requires: cargo build --features parakeet
#
# Model name (from ~/.local/share/voxtype/models/) or absolute path
# model = "parakeet-tdt-0.6b-v3"
#
# Model type: "tdt" (recommended, proper punctuation) or "ctc" (faster, char-level)
# Auto-detected from model directory if not specified
# model_type = "tdt"
#
# on_demand_loading = false
[output]
# Primary output mode: "type", "clipboard", or "paste"
# - type: Simulates keyboard input at cursor position (requires wtype or ydotool)
# - clipboard: Copies text to clipboard (requires wl-copy)
# - paste: Copies to clipboard then simulates paste keystroke (requires wl-copy and wtype or ydotool)
mode = "type"
# Fall back to clipboard if typing fails
fallback_to_clipboard = true
# Per-language XKB layout variants for multilingual dictation.
# Use this with language arrays such as `language = ["en", "ru"]` when a
# language needs a variant that should not apply to other languages.
# Built-in layout defaults already include `ru = "ru"` in language_to_layout.
# dotoolc does not work with variants and cannot receive these hints; voxtype
# uses direct dotool for them. Switch your desktop layout to the target
# layout/variant before dictating; dotool does not change the active layout.
# [output.language_to_variant]
# ru = "phonetic"
# Delay between typed characters in milliseconds
# 0 = fastest possible, increase if characters are dropped
# On KDE, eitype uses an effective minimum of 1ms when this is 0 to prevent
# long dictations from being silently truncated by KWin.
type_delay_ms = 0
# Delay before typing starts (ms)
# Allows virtual keyboard to initialize. Some users report this helps prevent
# the first character from being dropped on text insertion. Try 100-200ms.
# Note: When using compositor integration (via `voxtype setup compositor`),
# best results come from not binding Escape in the submap. Some users have
# had success with Escape bound by increasing this delay, but the most
# consistent fix is to use F12 or another key instead.
pre_type_delay_ms = 0
# Keystroke for paste mode (when mode = "paste")
# Shipped default is "shift+insert": it works in terminal emulators as well
# as GUI apps, unlike ctrl+v, which many terminals reserve for their own
# bindings (readline's literal-insert, tmux/screen prefixes, etc.) instead
# of treating as paste. If this key is removed from the file entirely, the
# built-in fallback is "ctrl+v".
# Examples:
# paste_keys = "shift+insert" # Shipped default; universal paste shortcut
# paste_keys = "ctrl+v" # Standard GUI shortcut
# paste_keys = "ctrl+shift+v" # Some terminal emulators
paste_keys = "shift+insert"
# Compositor integration hooks
# Use `voxtype setup compositor hyprland|sway|river` for automatic setup.
#
# pre_recording_command: Runs when recording starts. Switch to a submap/mode
# where F12 can cancel recording/transcription.
# pre_output_command: Runs before typing output. Switch to a submap/mode that
# blocks modifier keys from triggering compositor shortcuts during typing.
# post_output_command: Runs after typing output. Reset to normal mode.
#
# Example (Hyprland):
# pre_recording_command = "hyprctl dispatch submap voxtype_recording"
# pre_output_command = "hyprctl dispatch submap voxtype_suppress"
# post_output_command = "hyprctl dispatch submap reset"
[output.notification]
# Show notification when recording starts (hotkey pressed)
on_recording_start = false
# Show notification when recording stops (transcription beginning)
on_recording_stop = false
# Show notification with transcribed text after transcription completes
on_transcription = true
# Show notification when no speech is detected and the recording is discarded
on_no_speech = true
# When text cleanup or post_process changed the transcription, show the edits
# as a word diff in the notification instead of a plain preview
show_edits = true
# [output.post_process]
# Pipe transcribed text through an external command for cleanup before output.
# The command receives text on stdin and outputs processed text on stdout.
# Useful for LLM-based text cleanup, grammar correction, filler word removal.
# On any failure (timeout, error), falls back to original transcription.
#
# command = "ollama run llama3.2:1b 'Clean up this dictation. Fix grammar, remove filler words. Output only the cleaned text:'"
# timeout_ms = 30000 # 30 second timeout (generous for LLM)
[text]
# Optional English-only trained cleanup. Install the separately licensed model
# explicitly with: voxtype setup lard --source /path/to/lard-disfluency-v1.vxdf
# lard_disfluency = false
# lard_model_path = "/path/to/lard-disfluency-v1.vxdf"
# Text processing options (word replacements, spoken punctuation)
#
# Enable spoken punctuation conversion (e.g., say "period" to get ".")
spoken_punctuation = false
#
# Custom word replacements (case-insensitive)
# replacements = { "vox type" = "voxtype" }
# Remove common filler words while preserving word boundaries.
filter_filler_words = true
# Keep destructive restart collapsing opt-in: a false positive deletes words.
collapse_restarts = false
# Enable the cleanup stages whose guards leave ordinary prose unchanged.
repair_sentence_breaks = true
format_numbers = true
[osd]
# On-screen display frontend.
# - auto: Quickshell when qs and a Wayland session are available, else gtk4,
# else native (default)
# - gtk4: GTK4 + layer-shell frontend
# - native: SCTK + wgpu + egui frontend
# - quickshell: QML frontend with recipe/style customization
frontend = "auto"
# Quickshell style customization. These fields are ignored by gtk4/native.
# style can be "default", an installed package name, or a package path.
style = "default"
# Palette source for Quickshell recipes. Leave unset to let a selected
# package manifest choose its palette, falling back to Omarchy.
# - omarchy: inherit colors from ~/.config/omarchy/current/theme/colors.toml
# - fallback: use Voxtype's built-in palette
# - package: use package colors when a style package provides them
# - custom: use literal recipe colors
# palette = "omarchy"
# Quickshell host layout: compact, wide, minimal, tile, orb, or custom.
layout = "compact"
# Quickshell host frame. Background/border accept semantic color roles,
# literal CSS colors, or "none".
# [osd.frame]
# background = "background"
# border = "state"
# glow = true
# halo = true
# Explicit trusted QML/style package path. Custom QML is trusted code.
# plugin_path = "/path/to/voxtype-osd-package"
# Declarative Quickshell visual recipe. Layers render in order.
# [[osd.visual.layers]]
# type = "bars" # shadow, waveform, bars, pulse, ring, meter, background, icon, label
# source = "peak" # peak, rms, vad, state
# color = "accent" # Omarchy token or literal color
# order = 10
# gain = 1.0
# opacity = 1.0
# mirror = true
[vad]
# Filter silence-only recordings without requiring a separate VAD model.
enabled = true
backend = "energy"
threshold = 0.5
min_speech_duration_ms = 100
[status]
# Status display icons for Waybar/tray integrations
#
# Icon theme (or path to custom theme file):
# Font-based (require specific fonts):
# - "emoji" - Default emoji icons (🎙️ 🎤 ⏳)
# - "nerd-font" - Nerd Font icons (requires Nerd Font)
# - "material" - Material Design Icons (requires MDI font)
# - "phosphor" - Phosphor Icons (requires Phosphor font)
# - "codicons" - VS Code icons (requires Codicons font)
# - "omarchy" - Omarchy distro icons
# Universal (no special fonts needed):
# - "minimal" - Simple Unicode (○ ● ◐ ×)
# - "dots" - Geometric shapes (◯ ⬤ ◔ ◌)
# - "arrows" - Media player style (▶ ● ↻ ■)
# - "text" - Plain text ([MIC] [REC] [...] [OFF])
icon_theme = "emoji"
#
# Native Linux system tray: enabled by default, including omitted keys.
# Disable in Status settings or via `voxtype config set tray.enabled false`.
# [tray]
# enabled = true
#
# On Omarchy, the daemon links the packaged Voxtype Settings panel into
# ~/.config/omarchy/plugins on first start. Set false to opt out; run
# `voxtype setup omarchy` to link it by hand.
# [omarchy]
# link_settings_plugin = true
#
# Per-state icon overrides (optional, takes precedence over theme)
# [status.icons]
# idle = "🎙️"
# recording = "🎤"
# transcribing = "⏳"
# stopped = ""