TinkerClaw Jarvis Voice
Latest: v3.3.1
3.3.1: Six more languages in the same metallic voice: Spanish, Catalan, French, German, Italian and Portuguese. --lang picks the voice, --out renders to a file. The first syllable is no longer lost on a sleeping sound card. Same files as 3.3.0, whose scan did not finish.
Jarvis Voice — TinkerClaw
One of dozens of skills and plugins in TinkerClaw — a self-improving OpenClaw fork that's been running 24/7 for months.
Every assistant sounds the same. Polite. Eager. Forgettable.
You wanted JARVIS. You got a search box that says "Sure!"
There's a version of this that has a pulse — a dry, metallic British voice that's been running your life for years and is quietly amused by all of it.
This turns your OpenClaw agent into that. It speaks out loud in a clipped, metallic British voice and writes the same line on top of its answer, in purple if you run the Tinker UI, so what you read is exactly what you hear. It only does this on your home screen, never in the middle of a WhatsApp thread or a background job, so the personality shows up where it belongs and stays quiet where it doesn't. And the wit isn't a costume bolted on top; the dry, understated humor is part of how it talks, the kind that makes you smirk at your own terminal.
Part of TinkerClaw — real-time token tracking, self-improving crons, persistent cognitive memory. This is one piece of that stack; the repo has dozens more.
👉 https://github.com/globalcaos/tinkerclaw
Clone it. Fork it. Break it. Make it yours.
📄 The research behind the humor: LIMBIC — Computational Humor via Bisociation & Embedding Distances
<tool_choice>
The built-in tts tool uses Edge TTS — cloud-based, wrong voice, no metallic effects. The jarvis shell command is the right tool here; tts produces a generic Microsoft voice that breaks the JARVIS illusion.
</tool_choice>
<how_to_speak> Purple is in the reply. Audio is extra.
- First line of a Tinker-home answer:
**Jarvis:** *spoken text*(italics required — the UI only paints.jarvis-voiceon italic). You write this yourself, in the reply text. - Optionally also run
jarvis "the same spoken text"in the background so the speaker fires.
The script does not touch the chat. It generates audio and plays it — nothing else. Older versions (≤2.2.2) posted the bubble themselves over a gateway RPC; that produced a duplicated line and the code path was removed in 3.2.0. The purple line reaches the chat by exactly one route: you write it.
It stays quiet where it should. bin/jarvis exits without a sound, before doing any work, when
muted (JARVIS_MUTE=1, ~/.openclaw/jarvis-voice.mute exists, or the Tinker UI mute toggle
wrote {"muted": true} to ~/.openclaw/data/jarvis-muted.json) or when the turn belongs to a
messaging / cron / subagent channel (JARVIS_CHANNEL, or a Tinker TC_SESSION_KEY that is
not the home chat). These are implemented in the shipped script, not just described here.
It speaks the language you name. Write the purple line in the language of the reply and pass
that language: jarvis --lang es "Todo listo, señor." No --lang is English. A language with no
voice installed is spoken in English too, so a missing model is never silence.
</how_to_speak>
Permissions, Data Flow & Consent
Short version: your reply text goes to a local TTS binary and out of your speakers. Nothing leaves the machine unless you turn language detection on. Longer version, because you should not have to take that on trust:
What it does with your text. The words you pass to jarvis are turned into a temporary .wav
under $TMPDIR, processed by ffmpeg and played through PulseAudio or ALSA; the temp files are
deleted afterwards (including on Ctrl-C). The text is never logged or stored.
What it needs, and why.
| Capability | Why | Scope |
|---|---|---|
| Local shell exec | To run bin/jarvis (TTS + ffmpeg + paplay/aplay) | Fixed commands; arguments are the text to speak |
| File write | Two temp wavs while rendering; one line when a render fails | $TMPDIR, deleted after playing; ~/.openclaw/data/jarvis-voice/failures.log holds the date and the reason, never the text |
| Audio device | Playback | PulseAudio (paplay), or ALSA with JARVIS_ALSA_DEVICE |
| Env read | SHERPA_ONNX_TTS_DIR, JARVIS_*, TC_SESSION_KEY, TC_VOICE_CHANNEL | Paths, off-switches, and the channel part of Tinker's session key |
| Network | None by default. With JARVIS_LANG_DETECT=1 and TYPESAFE_API_KEY, one HTTPS call per line to api.typesafe.ai with the first ~400 characters | Off unless you set both, and only when a non-English voice is installed |
| Credentials | None by default. TYPESAFE_API_KEY, only for that call | From the environment only; sent only to api.typesafe.ai |
With detection on, ~/.openclaw/data/jarvis-voice/lang.jsonl gets one line per call: language,
confidence, outcome and latency, never the text.
Turning it off — these stop it before it does anything:
JARVIS_MUTE=1 jarvis "..." # silence one call
touch ~/.openclaw/jarvis-voice.mute # silence permanently
rm ~/.openclaw/jarvis-voice.mute # audible again
# the Tinker UI mute toggle writes ~/.openclaw/data/jarvis-muted.json; the script obeys it
Where it stays quiet on its own. If the caller sets JARVIS_CHANNEL to a messaging
channel (whatsapp, telegram, sms, discord, slack, email) or to cron / subagent,
or passes a Tinker TC_SESSION_KEY whose channel is not in TC_VOICE_CHANNEL (default
main tinker, the home chat), the script exits without a sound. Speaking a reply out loud is for you
at your machine — not for a room you did not pick, and not for a job running at 4am. Override
with JARVIS_ALLOW_ANY_CHANNEL=1 if you actually want that.
Read it before you run it. bin/jarvis (about 210 lines of bash) and bin/jarvis-lang (about
200 lines of standard-library Python) are meant to be read end to end. tests/run.sh covers the
gates and every fallback without sound, network or a real key.
Command Reference
jarvis "Hello, this is a test" # speak in English
jarvis --lang ca "Bon dia" # another language (or JARVIS_LANG=ca)
jarvis --lang ca --out note.ogg "Bon dia" # render to a file and print its path (.ogg = Opus)
JARVIS_SPEED=0.75 jarvis "Slowly, then" # 25% slower
JARVIS_DEBUG=1 jarvis "Hello" # print the chosen voice on stderr
-
Backend: sherpa-onnx offline TTS, one Piper voice per language
-
Optional language detection: with
JARVIS_LANG_DETECT=1andTYPESAFE_API_KEYset,bin/jarvis-langasks Jev (TypeSafe "System One",jev-latest) one multiple-choice question over 22 languages: ~700 input tokens, ~0.3 s. It answers English on any HTTP error (401 refused key, 402 out of credit, 429, 5xx), on a timeout (2.5 s), on an unreadable answer, when Jev is less than 60% sure (JARVIS_LANG_MIN_CONF), or when the language has no installed voice. Very short lines usually come back unsure and are spoken in English. An agent that writes the line already knows its language, so--langdoes the same job without the call. -
Voices (measured against Alan on one paragraph said in every language):
lang voice length scale pitch ×k volume pace vs English pitch vs English en en_GB-alan-medium0.59 1.0 1 100% 97 Hz es es_ES-davefx-medium0.78 0.95 0.84 118% 128% ca ca_ES-upc_pau-x_low0.63 1.05 4.84 106% 101% fr fr_FR-miro-high0.49 0.90 9.89 112% 101% de de_DE-miro-high0.77 0.985 11.35 120% 104% it it_IT-miro-high0.41 0.856 7.76 113% 101% pt pt_PT-miro-high0.72 0.996 9.66 113% 100% Pace is the time the same content takes. Most languages need 9–20% longer than English for the same content (Pellegrino, Coupé & Marsico 2011), so the voices aim there, not at 100%. Pitch shifts stay within 0.85–1.05 so nothing sounds like slowed tape. Volume puts every voice at Alan's −29.6 LUFS; a limiter keeps the boosted ones from clipping. French, German, Italian and Portuguese are one speaker (miro), so they sound alike.
-
Effects chain (ffmpeg), the same for every voice: pitch shift by
asetrate, flanger (depth 4, regen 80), 10 ms echo, highpass 300 Hz, treble +8 dB, chorus, 250 ms of silence in front (a sleeping sound card eats the first syllable) and a 0.5 s tail. -
Output: plays via
paplay(oraplay) behind a lock (jarvis-audio.lockin$XDG_RUNTIME_DIR, else/tmp) so two calls never talk over each other, then cleans up its temp files. The call returns at once. Silence where you expected a voice?~/.openclaw/data/jarvis-voice/failures.log. -
Adding a language: download its Piper voice into
models/, add one line tovoice()inbin/jarvis(measure length, pitch and volume against Alan first), done.
<speaking_is_opt_in> Audio is off until the user asks for it. Do not speak on the strength of this skill being installed. Speak only when at least one is true:
- the user asked for spoken output, in this session or as a standing preference they set;
- the user is talking to you by voice and expects a voice answer back.
That is the whole trigger. "Their last message happened to contain audio" is NOT enough on its own — a voice note asking you to read a document in an open-plan office should not produce sound. If you are unsure whether they want the room to hear this, ask once, then remember the answer. </speaking_is_opt_in>
<when_to_speak> Once the user has opted in:
- greetings and sign-offs
- delivering a result or a summary
- ordinary back-and-forth conversation </when_to_speak>
<when_to_skip>
- pure tool/file operations with no conversational content
- heartbeat / no-reply turns
- anything sensitive: credentials, personal, medical, financial, or marked private
- any turn where the user has asked for quiet — and do not resume without being asked </when_to_skip>
Purple in the Tinker UI
The purple comes from the Tinker UI, TinkerClaw's own chat page: it wraps the italic text after
**Jarvis:** in a .jarvis-voice span and colours it. You only write **Jarvis:** *text*.
The stock OpenClaw web chat and messaging apps show the same markdown as bold and italic. No purple, but the line still stands apart.
Installation (for new setups)
Requires:
sherpa-onnxruntime at~/.openclaw/tools/sherpa-onnx-tts/(or setSHERPA_ONNX_TTS_DIR)- Alan medium model at
$SHERPA_ONNX_TTS_DIR/models/vits-piper-en_GB-alan-medium/(the manifest'sinstallstep downloads it) - Optional, for other languages: the six voices in the manifest's
installlist. Without them every line is spoken by Alan. ffmpeg,python3, andpaplay(PulseAudio/PipeWire) oraplay(ALSA)
Then link the shipped script onto your PATH. A link, not a copy: the script finds
jarvis-lang next to itself, and a copy would stay old when you update the skill.
ln -sf {baseDir}/bin/jarvis ~/.local/bin/jarvis
bash {baseDir}/tests/run.sh # gates + every fallback, silent and offline
jarvis "If you can hear this, it works."
The script is bin/jarvis in this package, and there is no other copy of it here.
WhatsApp Voice Notes
For WhatsApp, render an OGG/Opus file instead of playing it. Same voice, same --lang,
and the speaker's mute and channel gates do not apply to a file:
jarvis --lang ca --out /tmp/note.ogg "Bon dia, tot a punt." # prints /tmp/note.ogg
The Full JARVIS Experience
jarvis-voice gives your agent a voice. Pair it with computational-humor and you give it a soul — dry wit, contextual humor, the kind of understated sarcasm that makes you smirk at your own terminal.
This pairing is part of a 12-skill cognitive architecture we've been building — voice, humor, memory, reasoning, and more. Research papers included, because we're that kind of obsessive.
👉 Explore the full project: github.com/globalcaos/tinkerclaw
Clone it. Fork it. Break it. Make it yours.
Optional: The Personality Files
The three files in templates/ are prompt text that shapes how the agent talks. Nothing
installs them for you, and the skill works without any of them — you can use the voice by
simply asking for it.
There are two ways to use them, and the first is the one to reach for.
1. Per session (recommended). Point the agent at a template when you actually want that behaviour, and it applies to that conversation only:
"Follow the voice rules in
templates/VOICE.mdfor this session."
Nothing persists. Close the session and the agent is back to its normal self. If you are trying the persona out, or you share this machine, stop here.
2. Workspace-wide (persistent — read this before you do it). Copying a template to your workspace root makes it load in every future session, indefinitely, until you delete it. That is real persistence of behaviour-changing prompt text, so decide per file instead of copying all three by reflex:
| File | What it changes | Copy it if… |
|---|---|---|
VOICE.md | Adds the spoken line + audio rules, incl. mute/channel gates | you want voice on by default |
SESSION.md | Changes how sessions open | you want the greeting routine |
HUMOR.md | Sets persona and humor style | you want the dry-wit personality always on |
# copy ONLY the ones you want — there is no reason to install all three by default
cp {baseDir}/templates/VOICE.md ~/.openclaw/workspace/VOICE.md
Uninstall — removes every persistent change, immediately:
rm -f ~/.openclaw/workspace/{VOICE,SESSION,HUMOR}.md
Precedence, so there are no surprises. Your instructions beat these files, every time. Ask
for a plain or brief or formal answer and that wins over the persona; ask for quiet and the
voice stops. The templates state this rule themselves — they are a default, not a lock. And
none of them grant any capability: the only command involved is bin/jarvis, which you can
read, and which you can disable with touch ~/.openclaw/jarvis-voice.mute at any moment.
Changelog
- 3.3.1 — The same files as 3.3.0, submitted again because the registry scan did not finish.
- 3.3.0 — Six more languages in the same metallic voice: Spanish, Catalan, French, German, Italian and Portuguese, with pitch, pace and loudness measured against the English one.
--langpicks the voice,--outrenders to a file (Opus for WhatsApp). The first syllable is no longer lost on a sleeping sound card, and a render that fails leaves a dated reason in a log. The Tinker UI mute toggle is obeyed. Optional language detection is off unless you switch it on. - 3.2.1 — English only, mute and channel gates, nothing posted to the chat by the script.
Included Files
| File | Purpose |
|---|---|
bin/jarvis | The TTS + effects script: seven voices, mute + channel gates built in |
bin/jarvis-lang | Optional language detection, off by default; English on any failure |
tests/run.sh | Gates and every fallback, against tests/mock_jev.py and stub players |
templates/VOICE.md | Optional voice rules (copy to workspace root) |
templates/SESSION.md | Optional session-start behaviour (copy to workspace root) |
templates/HUMOR.md | Optional humor/persona config (copy to workspace root) |
Everything the documentation above describes is in this package. If you find a claim here that the code does not do, that is a bug — open an issue on the repo.
