Repository navigation
Installation
Black Voice targets Linux. It needs Python 3.9+, PortAudio for the microphone, and a speech engine for talking back.
There are two routes: a distribution package, or the source installer.
Download from the releases page.
Debian, Ubuntu, Mint, Pop!_OS
sudo apt install ./blackvoice_0.6.1-1_amd64.debFedora, RHEL, openSUSE
sudo dnf install ./blackvoice-0.6.1-1.x86_64.rpm| Path | Contents |
|---|---|
/opt/blackvoice/lib |
The few libraries no distribution packages |
/usr/bin/blackvoice |
The launcher |
/usr/share/applications/ |
Desktop entry |
/usr/lib/systemd/user/ |
The user service |
/usr/share/icons/hicolor/ |
The icon |
Black Voice runs on your system Python. Anything your distribution already packages — numpy, cffi, requests, PyQt6, psutil — is pulled in as a normal dependency, so it tracks whatever interpreter you have.
Only four libraries are bundled, because no distribution ships them:
| Bundled | Why |
|---|---|
vosk |
Not in any distribution's repositories |
sounddevice |
Not packaged in Ubuntu |
SpeechRecognition |
Not packaged in Ubuntu |
pyttsx3 |
Not packaged in Ubuntu |
All four are py3-none wheels — they carry no CPython ABI tag, so they keep
working when your Python is upgraded. That is what keeps the package to about
15 MB and lets one build serve every distribution.
sha256sum -c SHA256SUMSWorks on any distribution, including those with no package above.
git clone https://github.com/RudraLabs-dev/blackvoice.git
cd blackvoice
./install.sh --systemThen check it:
blackvoice doctordoctor prints what is installed, what is missing, and the exact command to fix
each gap. Run it first whenever something misbehaves.
| Step | Where it lands |
|---|---|
System packages (--system only) |
via apt / dnf / pacman / zypper |
| Virtualenv + dependencies | ~/.local/share/blackvoice-venv |
blackvoice command |
~/.local/bin/blackvoice |
| Desktop entry and icon |
~/.local/share/applications, ~/.local/share/icons
|
| systemd user unit | ~/.config/systemd/user/blackvoice.service |
| Speech model (~40 MB) | ~/.local/share/blackvoice/models |
Nothing is installed system-wide except the distro packages, and those only when
you pass --system.
./install.sh # Python side only; tells you what system packages are missing
./install.sh --system # also installs the distro packages (needs sudo)
./install.sh --no-models # skip the ~40 MB model download
./install.sh --uninstall # remove everything the installer created--uninstall leaves your config, models and notes alone. Delete those yourself
if you want them gone:
rm -rf ~/.config/blackvoice ~/.local/share/blackvoice ~/.cache/blackvoice--system installs these for you. If you would rather do it by hand:
Debian / Ubuntu / Mint / Pop!_OS
sudo apt install portaudio19-dev python3-dev python3-venv espeak-ng \
libnotify-bin playerctl brightnessctl pulseaudio-utils gnome-screenshotFedora / RHEL
sudo dnf install portaudio-devel python3-devel espeak-ng \
libnotify playerctl brightnessctl pulseaudio-utils gnome-screenshotArch / Manjaro
sudo pacman -S --needed portaudio espeak-ng libnotify playerctl \
brightnessctl libpulse gnome-screenshotopenSUSE
sudo zypper install portaudio-devel python3-devel espeak-ng \
libnotify-tools playerctl brightnessctl pulseaudio-utils| Package | Without it |
|---|---|
portaudio19-dev |
No microphone at all. This one is not optional. |
python3-venv |
The installer cannot create its virtualenv |
espeak-ng |
No speech output — replies are printed, not spoken |
pulseaudio-utils / PipeWire |
Volume commands do nothing |
brightnessctl |
Brightness commands do nothing |
playerctl |
Media keys (play, next, previous) do nothing |
libnotify-bin |
No desktop notifications for timers and reminders |
gnome-screenshot |
Screenshots fail — grim, scrot, maim and spectacle also work |
If you would rather not use the installer:
python3 -m venv .venv
source .venv/bin/activate
pip install -e ".[all]"
blackvoice setup # download the Vosk models
blackvoice doctorThe optional extras can be installed separately if you want a smaller footprint:
pip install -e ".[offline]" # Vosk only, no cloud fallback
pip install -e ".[ui]" # PyQt6 tray icon and overlay
pip install -e ".[online]" # cloud fallback
pip install -e ".[tts]" # pyttsx3 speech outputWithout [ui] it runs headless (blackvoice run --no-ui), which is fine over
SSH or on a server.
You do not normally have to do anything here. On its first run Black Voice notices the model is missing and downloads it (~40 MB), reporting progress as it goes. It happens once.
They cannot ship inside the .deb or .rpm. A package's post-install script
must not use the network — installs have to work in chroots, containers and
offline mirrors — and that script runs as root, while the models belong to a
user's home directory. First run is the correct place for it: the right user,
the right directory, and a moment when a network connection is a reasonable
thing to expect.
To fetch them yourself, or to re-fetch them:
blackvoice setup # fetches the English Vosk model
blackvoice setup --force # re-downloadTo turn the automatic download off — for a metered connection, or to control exactly when it happens:
Models come from alphacephei.com/vosk/models
and land in ~/.local/share/blackvoice/models. If the download fails behind a
proxy, fetch the zips by hand and extract them there — the folder names must stay
as they are:
~/.local/share/blackvoice/models/
└── vosk-model-small-en-us-0.15/
You can point at a bigger model by setting speech.model_en to an absolute
path. See Configuration.
The Vosk model above is enough to run. For better accuracy than Vosk offers — see FAQ → Why not just Vosk? — install whisper.cpp and fetch a model:
blackvoice setup --whisper # ggml-base-q5_1.bin, ~57 MB
blackvoice doctor # confirms both the binary and model are foundOpt-in rather than downloaded automatically, because it is a compiled binary
you install yourself (your package manager, or build it), not a Python
package pip install -e ".[all]" above already covers. speech.engine: "auto" — the default — uses it once it is there and falls back to Vosk
silently if it is not, so nothing breaks either way.
Answering open questions (anything that is not a recognised command) needs a language model. The default, Ollama, runs locally - and if it is already on this machine, Black Voice notices on first run, wakes it if it is stopped, and pulls a model on its own. Nothing to install for that beyond Ollama itself:
Or skip that too: set ai.auto_install: true in the config, and Black
Voice fetches a private copy for you on first run and runs it as a
background service - no root, nothing else to do. It is opt-in rather than
the default for one reason worth knowing before you turn it on: there is no
small build. Upstream's smallest general Linux release is over a gigabyte,
which is a very different download than the rest of what this project
fetches automatically. Turn it on right now instead of waiting for the next
run:
blackvoice setup --ollama --installEither way, pick a model:
blackvoice setup --ollama # what's known to run acceptably
blackvoice setup --ollama --model qwen2.5:1.5b --set-default # fetch and switch to itSee Configuration → ai
for what auto_install does and does not do (it never runs Ollama's own
install script, on principle - see there for why), and for Claude, OpenAI,
or turning question-answering off entirely. Every voice command works
without any of this.
systemctl --user enable --now blackvoice
systemctl --user status blackvoice
journalctl --user -u blackvoice -f # follow the logscd blackvoice
git pull
./install.shOne thing the upgrade does not do: your ~/.config/blackvoice/config.json
was written on first run and is never overwritten, so new default settings — and
in particular new entries in safety.blocked_patterns — do not reach an existing
config. After an upgrade, either merge them by hand or reset:
blackvoice config --resetBlack Voice — a Rudra Labs product · Repository · MIT licensed
This wiki is generated from the wiki/ folder in the repository. Edits made
here are overwritten on the next sync — send a pull request instead.
Using it
Understanding it
Extending it
Help