INPUT & ROUTING / CODE MODE
Code mode
Spoken constructs converted to syntax. Say it, get valid code.
How it works
Code mode is a post-processing stage. When active, transcribed words like "underscore", "dot", "open paren" are converted to symbols, and identifier-like phrases are camel-cased or snake-cased.
Examples
| You say | Code mode produces |
|---|---|
| get underscore user dot name | get_user.name |
| function handle user login | handleUserLogin |
| constant max retries | MAX_RETRIES |
| open paren x comma y close paren | (x, y) |
Triggering code mode
Two ways:
- Per-target setting: set
code_mode = trueunder[my_target.processing]intargets.toml, for a target dedicated to your editor or terminal - Auto code mode: when
atspi.auto_code_modeis enabled (defaulttrue), voxctrl detects a focused code editor or terminal and enables code-mode processing automatically for that dictation, without touching your target config
[[target]] id = "code_editor" label = "Code Editor" delivery = "inject" [code_editor.processing] code_mode = true