Black Voice
Black Voice

Black Voice

Say “Black.” Then say what you need.

A voice assistant for Linux that recognises your speech on your own machine.

Version 0.10.1. Free and open source under the MIT licence.

Say it. It's done.

It runs your desktop by voice, and answers questions through a language model you choose.

  1. youblack, open firefox
  2. blackOpening firefox.
  3. youblack, volume 40
  4. blackVolume set to 40 percent.
  5. youblack, run command df -h
  6. blackRun df -h? Say yes to confirm.

Your whole desktop, by voice.

Apps, settings, files and the shell, with a language model for everything else.

  • Applications

    Open and close programs by name, with aliases that resolve to whatever is installed.

  • System

    Volume, brightness, screenshots, screen lock, Wi-Fi, Bluetooth and power.

  • Files

    Search your home folder, open standard folders, create folders and check disk usage.

  • Terminal

    Run shell commands behind a three-tier safety guard.

  • Everyday

    Clock, weather, timers, reminders, notes, web search, media keys and arithmetic.

  • Questions

    Anything it doesn't recognise goes to a local or hosted language model you pick.

Runs on the desktop you already have.

Every action looks for the tool that's installed, so it works without configuration. Use the tray icon, or run it headless over SSH.

  • GNOME
  • KDE Plasma
  • Xfce
  • Tiling window managers
  • PipeWire
  • PulseAudio
  • ALSA

Things to try first.

Say “Black,” then any of these. Anything it doesn't match becomes a question for the language model.

Apps
open firefox close chrome
Volume
volume 40 mute volume up
Screen
screenshot lock screen
Files
find file report.pdf open downloads
Shell
run command df -h
Time
what time is it set timer for 5 minutes
Notes
take a note buy milk read my notes
Itself
help stop go to sleep

See every command

Recognition happens on your machine.

Every command is transcribed locally first. In the default mode, audio goes to a cloud recogniser only when the offline pass is unsure and you're online. Switch to offline mode and nothing ever leaves the machine.

  1. whisper.cpp, on your machine

    The more accurate model. Transcribes each command when it's installed.

  2. Vosk, on your machine

    Always running. Hears the wake word, and transcribes when whisper.cpp isn't installed.

  3. Google's recogniser, only when unsure

    Used in the default hybrid mode when the offline pass wasn't confident and you're online. Never in offline mode.

{ "speech": { "mode": "offline" } }
This line in ~/.config/blackvoice/config.json keeps every recording on your machine.

See everything that can leave your machine

Safe with a shell.

Voice recognition mishears things. Black Voice is built for it: destructive commands never run, and anything that changes the system asks first.

  • Refused outright

    These never run, whoever asks.

    • rm -rf
    • mkfs
    • dd to a device
    • curl … | sh
    • sudo
  • Asks first

    Anything that could change the system, and any command chained with a pipe or a separator.

    • ;
    • &&
    • |
    • power actions
  • Runs straight away

    A short list of commands that only read.

    • ls
    • df
    • cat
    • git status

When the language model runs a command, it goes through this same guard. Nothing runs as root. Read the security model

Get Black Voice.

Packages for the Debian and Fedora families, or the source for any distribution.

Requires Linux and Python 3.9 or newer. Install commands, checksums and earlier versions