Skip to content

Voice Commands

github-actions[bot] edited this page Sep 21, 2026 · 6 revisions

Voice Commands

Everything below is in English.

Anything that matches none of these rules becomes a question for the AI backend.

Tip: test a phrase without speaking it — blackvoice text "open firefox" shows you exactly which skill it routes to.


Applications

  • open firefox
  • launch vlc · start code
  • close chrome · quit spotify

Known aliases resolve to whatever is actually installed: browser, terminal, files, editor, calculator, music, video, settings, system monitor. So open browser finds Firefox, Chromium, Chrome, Brave or Epiphany — whichever is on the machine.

Anything else is treated as the binary name, then as a .desktop entry. Set your preferred defaults in skills.browser, skills.terminal, skills.editor and skills.file_manager — see Configuration.

Volume

  • volume up · louder
  • volume down · quieter
  • volume 40 · set volume to 70
  • mute
  • unmute

Uses PipeWire (wpctl), then PulseAudio (pactl), then ALSA (amixer) — whichever is present. Up and down move in steps of 10.

Brightness

  • brightness up · brighter
  • brightness down · dim the screen
  • brightness 70

Uses brightnessctl, then light, then raw sysfs. Never goes below 5% — a misheard number should not blank your screen.

If it refuses, you are probably not in the video group:

sudo usermod -aG video $USER    # then log out and back in

Screen and power

  • screenshot
  • lock screen
  • shut down
  • restart · reboot
  • log out
  • suspend

Screenshots land in ~/Pictures with a timestamped name. Six tools are tried: gnome-screenshot, spectacle, grim, scrot, import, maim.

Every power action asks for confirmation first. Say “yes” to go through with it.

Radios and hardware

  • wifi off · turn on the wifi
  • bluetooth on
  • battery · battery status
  • system info · cpu usage

Turning Wi-Fi or Bluetooth off asks for confirmation first, the same as a power command - turning either back on does not. See Security Model for why.

battery reports the charge and, on battery power, the estimated time left. system info shows CPU, memory, disk and uptime.

Folders and files

  • open downloads
  • open documents · open desktop
  • find file report.pdf
  • create folder demo
  • disk space

Recognised folders: downloads, documents, desktop, pictures, music, videos, home, trash. Localised XDG directory names are respected, so this works on a non-English desktop.

find uses plocate/locate when available and falls back to a depth-limited walk of your home directory, skipping .git, node_modules, caches and dotfiles. It returns at most 8 matches.

Leave the name out - find a file, search for the document - and it asks "What should I look for?" and searches for whatever you say next, rather than needing the full command in one breath. That follow-up is not a new command: say anything at all and it is taken as the file name, searched for exactly as given.

create folder strips anything that is not a letter, digit, space, hyphen or underscore, and only ever creates inside your home directory.

Terminal

  • run command df -h
  • execute command uptime

Read-only commands run immediately. Anything else asks first. A short deny-list never runs at all. This is covered properly in Security Model — read it before using this skill.

The recogniser spells out punctuation, so dash, double dash, slash, dot, star and tilde are translated back into -, --, /, ., * and ~.

Time, date and weather

  • what time is it · time
  • what is the date · date
  • weather · weather in Jaipur

Weather comes from wttr.in and needs no API key. With no city it geolocates by IP; set skills.weather_city to pin it.

Timers and reminders

  • set timer for 5 minutes
  • remind me to call mom in 20 minutes

Seconds, minutes and hours are understood, up to 24 hours. When a timer fires it speaks and raises a desktop notification.

Timers survive a restart — a crash, an upgrade, a reboot. Each one is saved to ~/.local/share/blackvoice/timers.json the moment it is set and removed once it fires; on the next startup anything still pending is rescheduled for whatever time is left, and anything that was due while nothing was running is spoken once, immediately, rather than dropped.

Notes

  • take a note buy milk
  • read my notes

Notes append to ~/.local/share/blackvoice/notes.md with a timestamp. Reading them speaks the last five.

Search and media

  • search for python decorators
  • google linux distros
  • play · pause
  • next · next song
  • previous song

Search opens your browser at DuckDuckGo; change skills.search_url for a different engine. Media control needs playerctl, falling back to xdotool.

Arithmetic

  • calculate 12 * 8
  • what is 100 / 4
  • 5 + 3

Only numbers and operators are evaluated — + - * / % ** and parentheses. It parses an abstract syntax tree rather than calling eval, so names, calls and attributes are rejected. Say “x” or “times” for multiplication.

A phrase without an operator is treated as a question, not a sum: “what is 42” goes to the AI.

Meta

  • help · what can you do
  • stop · cancel · never mind
  • go to sleep · stop listening
  • yes · ok · go ahead
  • no · don't

“Yes” and “no” only mean something while a confirmation is pending. At any other time they are just words.


How matching works

Rules are tried in order, first match wins. The generic open X and close X rules are deliberately tried last, so open downloads reaches the folder rule and run command df -h reaches the terminal rule rather than being read as an application named “command df -h”.

Two rules are also rejected when they look like questions instead of commands:

  • calculate needs an actual operator in the expression
  • open / close reject targets longer than four words, and phrases starting with question words (what, why, how, …)

There are 42 rules in total. They live in blackvoice/nlu/intents.py; adding your own is covered in Writing Skills.

When it mishears you

blackvoice text "the phrase you said"

If text mode routes it correctly but speech does not, the problem is recognition, not routing — see Troubleshooting → Recognition is poor.

Clone this wiki locally