VeilVoice: the command line
veilvoice. Everything the application does, over SSH, in a container, in a script, or on a machine with no graphics toolkit at all. If you have a terminal and nothing else, this is your half of VeilVoice.
Every command takes --help, and the help is the reference; this is the part that says what to reach for and why.
The whole story, including the parts about the other two programs, is in USER_GUIDE.md. This is the same text, narrowed to one program.
1. Installing
Download an archive from Releases, or build it, since a fresh clone needs no secrets:
git clone https://github.com/tilas01/veilvoice && cd veilvoice
cargo build --release
Verify the download before running it. Instructions are in REPRODUCIBLE_BUILDS.md and on the site; there is also an in-browser hash verifier that uploads nothing.
Nothing installs a service, writes to a registry, or phones home. Delete the folder and it is gone.
2. The two programs, and which one you want
A release contains two executables. They overlap on purpose, and which one to reach for depends only on what you have in front of you.
| Program | What it is for |
|---|---|
veilvoice | The command line. Everything the application does, over SSH, in a container, in a script, or on a machine with no graphics toolkit at all. Checking a download is veilvoice verify, which was a third binary until 0.1.18. |
veilvoice-gui | The window. The same engine with somewhere to click, plus the things that only make sense with a screen: live level meters, the app lock, the microphone monitor, and a Verify tab that runs the same check as veilvoice verify. |
Which parts are built in, and which are not
Everything VeilVoice does is in these binaries. There is no runtime to install, no service, no plugin directory, and nothing is downloaded on first run.
That includes the parts people expect to be separate:
- The signature check. The signing key is compiled into the programs, and the OpenPGP verification is Rust code in this repository.
veilvoice verifyneeds no GnuPG to do its job. - The audio decoders, the resampler, the encryption, the key exchange, the hashing. All of it is in the binary.
- The at-rest encryption, including the post-quantum half.
Three things are genuinely outside, and each is optional:
- GnuPG, for a second opinion on a release signature. Worth having, and explained under §7.
- A virtual audio cable, if you want live mode to feed a call. On Linux this is usually PipeWire, which is already there.
ffmpeg, only if you ask for a video file. VeilVoice draws every picture in the video itself and asksffmpegfor the last step only, because a video encoder is a large piece of C and carrying one would end the claim that you can read the whole of this program. Without it, a render still writes the audio, the subtitles, the player page and every picture, then prints exactly the command that turns them into the file and exits successfully, because nothing failed.
veilvoice companions lists all of them, says whether this machine has each, and prints the one command that would install it. It never runs somebody else's installer.
What runs where
Eleven platforms get a signed archive with every release, and the table says what is in each one. It is not the same everywhere, and where it is not, that is a limit of what the platform offers rather than something waiting to be written.
| Platform | Command line | Desktop app | Live microphone |
|---|---|---|---|
| Windows 10 and 11, x86-64 | yes | yes | yes, with a virtual cable |
| macOS on Intel | yes | yes | yes, with a virtual cable |
| macOS on Apple Silicon | yes | yes | yes, with a virtual cable |
| Linux, x86-64 and arm64 | yes | yes | yes, through PipeWire |
| Linux, statically linked (musl) | yes | not shipped | no |
| Raspberry Pi and other armv7 | yes | not shipped | no |
| WSL on Windows | yes | yes, with WSLg | through the Windows side |
| FreeBSD, OpenBSD, NetBSD | yes | not shipped | no |
Any Linux distribution. The .deb and .rpm are conveniences, not requirements: the plain archive is a folder of binaries that needs no package manager, and the statically linked build needs no system libraries at all, which is the one to reach for on a distribution nothing else fits.
One library the desktop app needs, and why it is worth a paragraph. The window toolkit opens libxkbcommon-x11 by name when it starts, rather than linking against it. Nothing that works out dependencies by reading a binary can see that, so a minimal or server install can be missing it and the application will exit at once instead of drawing a window. If that happens, the crash report VeilVoice writes names the library and the package that carries it; the short version is libxkbcommon-x11-0 on Debian and Ubuntu and libxkbcommon-x11 elsewhere. The command line needs none of it.
The first time you open it. After the two settings questions, VeilVoice shows one card per tab saying what that tab is for, which takes about twenty seconds and can be skipped at any point. Two of the nine are worth the card on their own: Monitor is not a level meter, it watches for another program picking up a real microphone while you are being veiled; and Lock is a passphrase on the application rather than on a recording.
The last card says whether this copy is portable or installed, in those words. Portable means it runs from wherever you put it and installs nothing: move the folder and VeilVoice moves with it, delete the folder and it is gone. Installed means it is on this machine for good, on your menu or path, with its settings in your account. Both are fine, and the Install tab is where the decision is made rather than in the tour.
After an upgrade the tour comes back only for tabs that did not exist last time, and a release that adds no tab shows nothing. What is stored is the list of tabs you have been shown, which is what "which of these is new to you" is actually asking.
When something goes wrong. VeilVoice writes a report of a crash to a file beside its settings, and on the next launch it offers it to you above whatever tab you land on: what happened, where the file is, and a button to read the whole of it before you decide anything.
Nothing is sent. Nothing here can send it, and that is not a policy but a property of the build: this project contains no network client and the build fails if one enters the dependency graph. The ordinary shape of this feature is a reporter that uploads, and that is the wrong shape for a program people use to protect themselves, because a report from a privacy tool is a report about somebody who was being careful.
So the panel offers two things instead: copy the report, and open the issue tracker. What happens next is your decision and your clipboard. If you would rather it went away, "dismiss and delete it" removes the file.
The report holds the version, your operating system and processor, and the error with its source location. It holds no file names, no settings, no passphrase and nothing about any audio. That list is in the panel too, because "would you like to send this" is only a real question if you can see what "this" is.
The BSDs get the command line only, and the reason is specific. The audio library VeilVoice uses has no backend for them, so live capture cannot work there. Everything that operates on a file, meaning de-identification, encryption, metadata cleaning and verification, is pure Rust and runs exactly as it does anywhere else. The window can be built there without live audio, and a build like that says so at the top of the Studio tab before anything is pressed, leaves out the controls that could only refuse, and greys out play in the Browser with the reason beside it. No release has shipped that window yet, which is why the table says not shipped.
WSL is Linux, so the command line runs unchanged. The window needs WSLg, which recent Windows has by default. A microphone belongs to Windows rather than to the distribution, so live mode is the Windows build's job.
Nothing is emulated and nothing is a wrapper. Every archive is a native build for that processor, compiled from the same source with the same pinned compiler, and built twice in separate directories and compared byte for byte before it ships.
How anything reaches the network, given that nothing here is a network client
VeilVoice bundles no HTTP client, and this is checked rather than claimed: nothing in the workspace links one. Two features nonetheless involve the network, and the way they do it is the point.
Looking for a newer version asks the operating system's own transfer tool to fetch one small file, and reads a version number out of what it printed. It is the Check for updates button on the window's About tab, and it is veilvoice update --check at the command line. Neither is ever automatic: there is no timer, no check at startup and nothing in the background, and no setting turns either into a schedule. veilvoice update without --check goes on to fetch the release, check its signature against the key compiled into this program, and put it in place. Updating is the whole of what that does and what you see afterwards.
Fetching a release to check it is the other one. veilvoice verify release <tag> downloads that release's hash list and signature from the releases page, through the same transfer tool, so somebody can verify a copy they already have without opening a browser. It downloads nothing else and replaces nothing.
Those two are the whole list, and veilvoice --help says so in its opening paragraph. Nothing else in either program opens a connection for any reason.
It looks along the stream this copy came from, and says which. There are two, and they are the same program built the same way:
| Stable | Early | |
|---|---|---|
| Version looks like | 0.1.23 | 0.1.23-beta.1 |
| Cut from | main, as a release | main, between releases |
| On the releases page | a release | marked a prerelease |
| Offered by the download page | yes | no, deliberately |
An early build is the same reproducible archive, signed with the same key, with the same hash lists and the same contents manifest; it is newer and it has been used by fewer people. Nothing about it is less checkable. The check never moves you from one stream to the other: a stable copy is not told about a prerelease, and an early copy is compared against the newest release of either kind, so the day 0.1.23 is published somebody running 0.1.23-beta.1 is told about it.
Which stream a copy belongs to is read from the version it carries rather than compiled in, so the binary stays a pure function of its source and rebuilding it needs nothing extra. veilvoice info prints it, and so does the About tab.
The tool is found by absolute path, never through PATH. On Windows that is %SystemRoot%\System32\curl.exe, which has shipped with Windows since
- Elsewhere it is
curlat/usr/bin,/binor/usr/local/bin, and
wget at the same three places if there is no curl.
That distinction is not fussiness. Windows searches the current directory before PATH, so a file called curl.exe sitting beside VeilVoice would otherwise be the program that ran, and a privacy tool reaching for the network is the last place to accept a stranger's binary. If none of those paths holds a tool, the button and the command both say so, and nothing is run.
Installing a companion does not fetch anything either. It runs the package manager already on the machine, which is the thing your system already trusts to install software, and for anything needing root it prints the command instead of running it.
The consequence worth stating: there is no code path in VeilVoice that opens a socket. A firewall rule that blocks it entirely costs you the two things named at the top of this section, looking for a newer version and fetching a release to check, and nothing else.
3. The command line
veilvoice. Everything the app does, over SSH, in a container, or on a machine with no GUI toolkit at all.
veilvoice anonymise interview.mp3 -o clean.wav # writes clean.wav.veil
veilvoice anonymise interview.mp3 --encrypt-to friend.pub
veilvoice anonymise interview.mp3 --encrypt false # warns, then asks
veilvoice decrypt clean.wav.veil -o clean.wav
veilvoice live --output "CABLE Input (VB-Audio Virtual Cable)"
veilvoice devices
veilvoice clean photo.jpg # EXIF, GPS, tags
veilvoice encrypt notes.wav
veilvoice keygen
veilvoice lock set
veilvoice watch # who is using the mic/camera
veilvoice shred secret.wav # irreversible
veilvoice info
Every command takes --help.
Flags worth knowing
| Flag | Effect |
|---|---|
--intensity 0.0–1.0 | How far pitch and formants move. Default 1.0. |
--keep-accent | Leaves intonation, accent and vocal tract intact. Weaker; use only if you know why. |
--reseed-secs N | Seed roll interval. 0 keeps one stream for the session. |
--preview | On live: sends the veiled voice to this machine's own output rather than to a virtual cable, so you hear it and nothing else does. Use headphones. |
--no-monitor | On live: does not draw the level meters. For a terminal that is being logged or read by something other than a person. |
--clean-metadata false | Keeps tags on the written file. On by default. |
--encrypt false | Writes the recording in the clear. On by default; prints what you are giving up and waits for you to type UNENCRYPTED. |
--encrypt-to key.pub | Seals to a recipient's hybrid public key instead of a passphrase. |
--yes | Skips that confirmation, for scripts that already mean it. |
Where did my WAV go?
anonymise seals its output, so -o clean.wav produces clean.wav.veil. Open it with:
veilvoice decrypt clean.wav.veil -o clean.wav
If you genuinely want a bare WAV, --encrypt false still does that. It will tell you what that costs first.
4. An interview, start to finish
The commonest thing people ask VeilVoice to do, in the order it happens. This is also how to veil the person you were interviewing rather than only yourself.
Step 1: get the sound out of what you recorded
If you recorded in OBS, or anything like it, you have a .mkv or .mp4 holding a video track and an audio track. VeilVoice reads audio:
veilvoice import interview.mkv # writes interview.wav
That needs ffmpeg. VeilVoice does not ship one and will not install one; when it is missing you get the exact command printed, to run yourself or after installing it. --dry-run prints it without running anything.
Already have a .wav, .mp3, .flac, .ogg, .m4a, .aac or .opus? Skip this step; those go straight into anonymise.
Step 2: write a plan, so each person gets their own voice
Running an interview through anonymise gives both people the same voice. That is private and useless: nobody can tell a question from its answer. A plan gives each speaker their own destination voice.
VeilVoice will not work out who is talking. That is speaker diarisation, it needs a trained model, this project ships none and asks no server, and a wrong guess would either merge two people or invent a third with nothing in the output showing it. So you tell it. A plan is a text file:
VEILCONV1
title Interview with Sam
speaker 0 Me
speaker 1 Sam
turn 0.000 4.200 0 So, how did it go?
turn 4.100 19.050 1
turn 19.000 22.400 0 And after that?
Line by line:
| Line | What it is |
|---|---|
VEILCONV1 | The first line of every plan, so the file says what it is |
title | What the recording is called, shown in the player |
speaker <n> <name> | One per person. The number is how turns refer to them |
turn <from> <to> <speaker> [words] | One per stretch of speech, in seconds |
The words on a turn are optional. With them the subtitles carry what was said; without them they carry the speaker's name, which is still enough to follow a conversation whose voices have all been replaced.
Overlapping turns are fine. People talk over each other, and VeilVoice mixes them rather than picking a winner.
Anything no turn claims is silenced, not passed through. A gap in a plan must never put a real voice into the result, and how much was silenced is printed so you can tell a deliberate pause from a plan that missed a minute.
Check a plan before spending time on a render:
veilvoice conversation inspect interview.plan
It prints who is in it, which voice each gets, and any overlaps.
Step 3: render it
veilvoice conversation render interview.plan interview.wav -o veiled.wav
Every speaker comes out with their own voice and every voiceprint is destroyed, including the interviewee's. Subtitles are written beside the audio in both formats, and a self-contained player page comes with it that needs nothing installed.
None of it is encrypted, unlike anonymise. Seal the audio afterwards with veilvoice encrypt if it matters. Everything a render writes is created readable only by your account, which is a file permission and nothing more: it does not survive a copy, a backup, or anyone who has the disk.
And read the subtitles before sending them anywhere. They carry the names you typed and the words you typed, in plain text, and nothing veils a name.
Step 4: a video, if you need one
Somewhere that will not accept an audio file:
veilvoice video veiled.wav # writes veiled.mp4
A black picture for the length of the recording. The picture is not the point and does not pretend to be. Needs ffmpeg, same as step 1.
Recording each person on their own microphone instead
If your recording already has one channel per person, the split is exact and there is no plan to write. That is the better arrangement whenever you can manage it: no times to type, and no chance of typing them wrong.
5. Things VeilVoice will not do
Read this twice. Misunderstanding it is the only way this software gets someone hurt.
- It does not hide what you said. The words are preserved on purpose and can be transcribed. Encrypt the file, which is now the default, if the content must stay secret.
- It does not fully remove a strong accent. Its melody and colour go; which phonemes you actually produced cannot be changed by any filter.
- It does not sanitise the background. Room acoustics, other voices, a passing siren.
- It does not hide your speaking rate or rhythm. A weak biometric, but a real one.
- It does not help against an attacker already running code on your machine.
- It does not clean the filename, the filesystem timestamps, or the channel you send the file over.
- The app lock is not tamper-proof, as above.
- Secure erase is not reliable on flash storage.
shredoverwrites in place, which works on a spinning disk; wear levelling on an SSD, SD card or USB stick leaves the original blocks where no software can reach them. Full volume encryption is the answer that works.
This page is also Guide-command-line in the GitHub wiki, and both are generated from the same document in the repository.