Skip to main content
Glama

VoxLoom

CI npm version License: MIT Live Studio

Studio-realistic multilingual open-weight TTS engine, spoken-text prosody normalizer, -16 LUFS broadcast mastering DSP, OpenAI-compatible /v1/audio/speech server, CLI, and MCP stdio server.

Built for developers who are tired of robotic browser speechSynthesis / gTTS voices and cloud per-character billing. Zero runtime npm dependencies, zero Python required, full TypeScript types, and first-class Turkish + English + 35+ language routing.

Try the live A/B Broadcast Audition Studio (WebGPU / WASM) →

VoxLoom Studio Preview


Why default TTS sounds robotic (and how VoxLoom fixes it)

Most "AI voice" failures happen before and after the neural model:

  1. Raw symbols go straight to the model (₺1.250,50, 14:30, %85, v2.4.1, Dr., Markdown links, URLs). VoxLoom normalizes raw text into natural spoken prose in Turkish and English while preserving explicit [pause 350ms] and [breath] cues.

  2. Long sentences wobble or rush. VoxLoom splits input at abbreviation-safe sentence and clause boundaries with calibrated punctuation pause timing (145 ms clauses, 300 ms sentences, 540 ms paragraphs) and includes createStreamingChunker() for token-by-token LLM streams.

  3. Abrupt digital silence & erratic loudness. Every chunk gets 8 ms Hann raised-cosine edge fades, subtle -62 dBFS pink-filtered studio room tone during pauses, broadcast vocal EQ (75 Hz HPF, 2.8 kHz presence, 7.2 kHz de-esser), ITU-R BS.1770 K-weighted -16.0 LUFS normalization, and a -1.0 dBTP soft-knee peak limiter in pure TypeScript.


Related MCP server: GPTVoice

Quick Start

1. CLI

# Inspect Turkish or English spoken-text normalization & prosody chunks (works offline, zero weights)
npx voxloom normalize "Dr. Ayşe 15.03.2026 saat 14:30 için ₺1.250,50 ve %85 indirim tanımladı." --lang tr

# List 65+ open-weight neural voices
npx voxloom voices
npx voxloom voices --lang tr

# Install optional local Kokoro-82M runtime (Apache-2.0, 54 voices across 8 languages)
npm install voxloom kokoro-js

# Synthesize -16 LUFS mastered WAV speech (supports voice blending!)
npx voxloom speak "Release v2.4.1 shipped at 19:05." --voice af_heart:0.65+af_bella:0.35 --out intro.wav

# Start a drop-in OpenAI-compatible speech server on localhost:8880
npx voxloom serve --port 8880

2. Drop-In OpenAI SDK Replacement

Keep your existing openai client code — just point baseURL at voxloom serve:

import OpenAI from "openai";
import { writeFileSync } from "node:fs";

const openai = new OpenAI({
  baseURL: "http://127.0.0.1:8880/v1",
  apiKey: "local-voxloom",
});

const speech = await openai.audio.speech.create({
  model: "tts-1",
  voice: "shimmer", // maps automatically to af_heart (or use tr_fahrettin, bf_emma, jf_alpha...)
  input: "Dr. Maya saved $1,250.50 at 19:05 with zero cloud voice fees.",
  response_format: "wav",
});

writeFileSync("studio.wav", Buffer.from(await speech.arrayBuffer()));

Every POST /v1/audio/speech response also exposes real mastering headers: X-VoxLoom-Voice, X-VoxLoom-Lang, X-VoxLoom-Backend, X-VoxLoom-Lufs, X-VoxLoom-Peak-Db, X-VoxLoom-Duration-Sec, and X-VoxLoom-Elapsed-Ms.

3. TypeScript SDK (Streaming, Dialogue & Pure DSP)

import { VoxLoom, createStreamingChunker, masterAudio } from "voxloom";
import { writeFileSync } from "node:fs";

const vox = new VoxLoom();

// Auto language detection + normalization + mastering
const res = await vox.speak({
  text: "Merhaba! [pause 350ms] Saat 14:30 itibarıyla ₺250 ödeme onaylandı.",
  lang: "tr",
});
writeFileSync("duyuru.wav", res.audio);
console.log(res.metrics); // { inputLufs, outputLufs: -16.0, peakDb: -1.0, durationSec }

// Multi-speaker podcast / dialogue rendering
const show = await vox.dialogue(
  `[Host]: Welcome to VoxLoom.
   [Guest]: Every sentence is normalized and mastered before output.`,
  { voices: { Host: "af_heart", Guest: "am_michael" } },
);
writeFileSync("dialogue.wav", show.audio);

4. Native Turkish & 35+ Languages (Piper VITS ONNX / Local GPU)

VoxLoom routes each voice to the best open-weight backend cleanly:

Backend

Languages

Sample Rate

Runtime

License

Kokoro-82M ONNX (kokoro-js)

English (US/UK), Spanish, French, Italian, Portuguese, Japanese, Mandarin, Hindi (54 voices)

24 kHz

Browser WebGPU/WASM & Node CPU

Apache-2.0

Piper VITS ONNX (piper)

Turkish (tr_fahrettin, tr_dfki, tr_fettah), German, Arabic, Russian, Polish, Dutch, Ukrainian, Swedish, Persian, Vietnamese, Greek (35+ languages)

22.05 kHz

Local CPU (VOXLOOM_PIPER_DIR)

MIT

OpenAI-Compatible (--openai-url)

Any model served by local VoxCPM, Qwen3-TTS, Kikiri Turkish (tf_nisan), Chatterbox, or Kokoro-FastAPI

24–48 kHz

Local GPU / HTTP

Upstream

CustomBackend

Any async (params) => { samples, sampleRate } function

Any

In-process

Your choice

To run native Turkish locally with Piper:

  1. Install the piper CLI binary from rhasspy/piper.

  2. Download tr_TR-fahrettin-medium.onnx and tr_TR-fahrettin-medium.onnx.json from rhasspy/piper-voices into ./models.

  3. Synthesize:

export VOXLOOM_PIPER_DIR=./models
npx voxloom speak "Merhaba! Saat 14:30 için ₺1.250,50 tutarındaki rapor %85 hızlandı." --lang tr --out tr.wav

5. MCP Server for AI Coding & Voice Agents

Add VoxLoom to Claude Desktop, Cursor, or any MCP-compatible client:

{
  "mcpServers": {
    "voxloom": {
      "command": "npx",
      "args": ["-y", "voxloom", "mcp"]
    }
  }
}

Exposes 4 stdio JSON-RPC tools: normalize_speech, list_voices, speak_text, and synthesize_dialogue.


Development

npm install
npm run verify   # strict tsc typecheck + build + node:test suite

See CONTRIBUTING.md and the full API & CLI Reference.

Credits & License

  • VoxLoom is licensed under the MIT License.

  • Open-weight models are downloaded or run by the user directly from their upstream projects:

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to narrate internal thoughts, announce tool actions, and speak final responses aloud through local cross-platform text-to-speech. It exposes dedicated audio tools over stdio JSON-RPC for MCP-compatible clients.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      A local MCP server that turns any text into narration, voice-overs, dialogues, audiobook chapters and per-shot video clips as MP3/WAV files — with emotions, acting modes, inline cues, presets and subtitles — driven by a ChatGPT sign-in rather than an API key. It also exposes tools for inspecting audio (timings, pace, pitch, waveform), transcribing recordings, listing and favouring voices, saving pronunciation presets, and checking sign-in status.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables MCP clients such as Claude, Cursor and VS Code to synthesize speech locally in 31 languages, saving mp3, wav or ogg files, listing and installing catalog voices, and playing audio back through the system player — offline after the first run with no usage limits.
      Apache 2.0
    • A
      license
      Not graded
      quality
      C
      maintenance
      Exposes listen, speak, and converse tools over MCP so terminal coding agents such as Claude Code, Copilot CLI, and Gemini CLI can capture spoken input and reply with synthesized HD voice audio. It streams playback with live subtitles, VU meters, status chimes, and voice-activity detection for a hands-free voice loop.
      1
      GPL 3.0