Piper TTS: J.A.R.V.I.S. (en_GB-jarvis-high)
An ultra-fast, offline neural text-to-speech (TTS) voice model for Piper, Home Assistant, and Wyoming Satellite, capturing the refined British Received Pronunciation (RP), calm measured cadence, and distinctive timbre of J.A.R.V.I.S.
🎙️ Live Interactive Web Experience: Try the voice model live in your browser with real-time waveform visualizers and the Iron Man HUD visor:
- Hugging Face Space: https://huggingface.co/spaces/vishalrao8/jarvis-tts
- Direct Fullscreen Showcase: https://vishalrao8-jarvis-tts.static.hf.space
🎧 Model Specifications
- Architecture: VITS (Variational Inference with adversarial learning for end-to-end Text-to-Speech)
- Hardware & Device Compatibility: Ultra-lightweight and efficient. Runs locally on all CPUs, Raspberry Pi (3/4/5), and mobile or edge devices with minimal compute and zero GPU requirements.
- Phonemizer:
espeak-ng(en-gb-x-rp) - Format: ONNX (
en_GB-jarvis-high.onnx+en_GB-jarvis-high.onnx.json) - Real-Time Factor (RTF): ~0.08x on modern CPU (over 12x faster than real-time)
🚀 Quick Start
1. Using Piper CLI
Download the model files and synthesize directly:
# Install piper
pip install piper-tts
# Synthesize speech
echo "Good evening, sir. All systems are running at nominal efficiency." | \
piper --model en_GB-jarvis-high.onnx \
--config en_GB-jarvis-high.onnx.json \
--output_file jarvis_output.wav
2. Using Python: Production Grade Volume Normalisation Effect
For applications and long-form speech, this helper maintains steady vocal volume across multiple sentences and applies the analog low-pass filter:
import subprocess
import wave
import numpy as np
from scipy import signal
def synthesize_jarvis(text: str, output_path: str = "output.wav"):
cmd = [
"piper",
"--model", "en_GB-jarvis-high.onnx",
"--config", "en_GB-jarvis-high.onnx.json",
"--noise_scale", "0.35",
"--length_scale", "1.10",
"--noise_w", "0.50",
"--sentence_silence", "0.25",
"--output-raw"
]
proc = subprocess.run(cmd, input=text.encode("utf-8"), capture_output=True, check=True)
samples = np.frombuffer(proc.stdout, dtype=np.int16).astype(np.float32)
# 1. Analog low-pass filter (9.5 kHz)
b, a = signal.butter(2, 9500 / 11025, btype="low")
filtered = signal.lfilter(b, a, samples)
# 2. Consistent loudness leveling
active = filtered[np.abs(filtered) > 350.0]
if len(active) > 0:
cur_rms = np.sqrt(np.mean(active**2))
target_rms = 32768.0 * (10 ** (-20.0 / 20.0))
gain = np.clip(target_rms / (cur_rms + 1e-5), 0.5, 2.5)
filtered = filtered * gain
# 3. Soft peak limiter
max_val = 30000.0
peak = np.max(np.abs(filtered))
if peak > max_val:
filtered = np.tanh(filtered / max_val) * max_val
with wave.open(output_path, "wb") as wf:
wf.setnchannels(1)
wf.setsampwidth(2)
wf.setframerate(22050)
wf.writeframes(filtered.astype(np.int16).tobytes())
synthesize_jarvis("Good evening, sir. Subsystem telemetry is operational.")
3. Home Assistant & Wyoming Satellite
To use this voice in Home Assistant (Wyoming Piper):
- Copy
en_GB-jarvis-high.onnxanden_GB-jarvis-high.onnx.jsoninto your Home Assistant/share/piperdirectory. - Restart the Wyoming Piper add-on.
- Select
en_GB-jarvis-highin Settings -> Voice Assistants.
4. Optional: 1-Liner with FFmpeg Dynamic Leveling
echo "Good evening, sir. Internal diagnostics complete, standing by for your command." | \
piper --model en_GB-jarvis-high.onnx --output_file - | \
ffmpeg -i - -af "lowpass=f=9500,dynaudnorm=f=150:g=15" jarvis_studio.wav
📊 Evaluation & Audio Samples
The model has been optimized for:
- Technical telemetry and code logs (microservices, Docker, Kubernetes, database latency)
- Natural conversational rhythm without robotic artifacts
- Crisp consonant articulation and silence handling between multi-clause sentences
📜 License
This model is released under the MIT License.
⚖️ Legal Notice & Non-Affiliation Disclaimer
This model repository is an independent, non-commercial fan tribute and acoustic speech synthesis research showcase. J.A.R.V.I.S., Iron Man, and all related character names, marks, and visual likenesses are registered trademarks and copyright of Marvel Characters, Inc. and The Walt Disney Company. This project is not affiliated with, endorsed by, or sponsored by Marvel, Disney, or their affiliates.