Repository avatar
AI Tools
v0.7.3
active

mirli

io.github.HamSanders/mirli

Local AI sound effects, music, speech and voice cloning on your own computer. Returns WAV paths.

Documentation

Mirli

Free, open-source, local alternative to ElevenLabs and Suno.

An AI sound effects generator, AI music and song generator, text-to-speech and voice cloning app that runs open-weight models on your own computer. Arrange it all on a multi-track timeline, stream speech into a game or a chat agent, or let Claude Code, Cursor or any MCP agent drive it. No account, no credits, works offline. MIT licensed.

Download · Features · For agents · Models · Docs · Website · Patreon

Latest release MIT licence MCP server Patreon

The Mirli studio: a script cast across three voices above a timeline with narration, dialogue, a music bed, ambience and sound effects on five lanes, and the library beside it

Watch: 30-second tour · Under the hood · Agents and MCP

Mirli was formerly Soundbox. The repository, the soundbox command, the soundbox.* MCP tools and the installer file names keep the old name for now. Environment variables are MIRLI_*; the old SOUNDBOX_* names still work.

Features

Sound effects and ambience. Type the material, the action and the space, and get foley, game SFX, UI sounds and seamless ambience loops as WAV files. Hear the samples · Prompting guide

Music and songs. Instrumentals and loops from a style prompt, or full songs with vocals from a lyric sheet. Extend a track, cover it in another style, or repaint a section. Hear tracks

Text-to-speech and voice cloning. 45 speech models, from Kokoro to Chatterbox, IndexTTS 2 and Fish Audio S2 Pro. Clone a voice from up to five clips, recorded or uploaded, and keep it in Voice Lab to reuse anywhere. Voice conversion turns one recording into another voice.

Streaming speech. POST /api/speak/stream sends audio while the line is still being generated, as server-sent events or raw 16-bit PCM, for game dialogue and live chat agents. VoxCPM2 gets first audio out in about 0.2 seconds on an RTX 5080. Streaming docs

Stem separation. Split any track into vocals, drums, bass and the rest with HTDemucs or RoFormer models.

Multi-track studio. A timeline with effects racks, MIDI and a piano roll, mixdown and export. Paste a script, cast saved voices onto its lines, and lay music, ambience and effects underneath. Studio docs

Agents, MCP and API. An MCP server with 27 tools for Claude Code, Cursor and other clients, three agent skills including a full game sound pass, a local HTTP API, and OpenAI-compatible /v1/audio/speech and /v1/audio/transcriptions routes.

Yours, on your machine. 65 models in the catalog, four verified and on by default, each with its licence shown before download. Everything lives in one SQLite file and a folder of WAVs under ~/.mirli. Profiles keep a separate library per game or client. Bring your own ElevenLabs or fal key through custom endpoints if you want a hosted model too.

The Mirli dashboard: a sidebar of icons, Studio, Music and SFX shortcuts, a shelf of tag tiles and a list of recent sounds with licence badges, models and lengths
More screenshots · library, music, sound effects, models, details, voices
The Library: kind tabs, a search box with filter pills, music, sound effects and speech in one list with their tags, licence and model, and the bottom player holding Low TideThe Music page: the Create panel with model, lyrics switch, styles and tempo, beside seven tracks with their licence, model and length, and the main theme in the player
Library. Every take in one list, with the player along the bottom.Music. The Create panel beside the tracks it has made.
The SFX page: a prompt box with duration, variations, seed, steps and CFG, beside ten sound effects from two models with their licence badges and lengthsThe Models page: the Fast, Balanced, Quality and Max packs, each naming one model for sound effects, music and voice with its size
Sound effects. Describe it, set a length, generate.Models. Four packs, or pick models one at a time.
The details panel docked on the right of the Library: a waveform for Rain on tin roof with trim tools and its generation settings: model, prompt, seed, steps and durationVoice Lab: five voices as cards and as a table with the kind, model and number of reads of each
Details. Waveform, edits and the exact settings that made it.Voice Lab. Your voices, cloned or built in, and how much each has read.
Voice creation: three cards, Clone from clips, Built-in voice from a model, and Import a voice fileClone a voice: an upload or record area for up to five clips, a clip timer, and name, model and notes fields
New voice. Clone it, pick a built-in, or import one.Clone. Up to five clips of one speaker, recorded or uploaded.

Download

The download page picks the installer for your system. Or take one directly:

PlatformInstaller
Windows 10 and 11 (x64)Soundbox_x.y.z_x64-setup.exe
macOS, Apple siliconSoundbox_x.y.z_aarch64.dmg
macOS, IntelSoundbox_x.y.z_x64.dmg
Linux x64 (glibc 2.35+)Soundbox_x.y.z_amd64.AppImage or .deb

The installer carries its own runtime. The builds are not signed yet, so the first launch asks you to confirm (where). Open SFX, describe the material, the action and the space, and generate: the first model downloads when you pick it, with its licence shown first.

HardwareWhat to expect
NVIDIA GPU (Windows, Linux)CUDA. A few GB of VRAM covers the verified models; MiniMax Music 3 wants about 10 GB.
AMD or Intel GPURuns on the CPU unless you set MIRLI_AUDIOCPP_BACKEND=vulkan (how). Vulkan is not yet confirmed on the verified models; reports welcome.
Apple siliconMetal.
No dedicated GPUWorks, slowly. A clip that takes seconds on a GPU takes minutes on the CPU.

Docker and running from source (Linux arm64 included) are under Run from source.

Install with a prompt

Paste this into Claude Code, Cursor or Codex:

Install Mirli on this machine and confirm it works, following
https://github.com/HamSanders/soundbox/blob/main/docs/INSTALL-AGENT.md

The guide tells the agent to check the GPU and VRAM first, to show you each model's size and licence before downloading it, never to accept a non-commercial licence for you, and to finish by generating one sound and telling you where the WAV is.

For agents

Start Mirli, then add it to your client.

claude mcp add --transport http soundbox http://127.0.0.1:17494/mcp

Cursor and other MCP clients take { "type": "http", "url": "http://127.0.0.1:17494/mcp" }. Then ask: "add a door slam and a coin pickup to this game", "voice these three lines as two characters", "write a 20-second loading-screen loop". The agent gets 27 tools for sounds, speech, multi-track stories and the studio you have open, and three skills: soundbox-sfx, soundbox-sound-pass and soundbox-voice-story. Every tool, the stdio bridge and the skills are in docs/MCP.md.

The Agents page: call counts for the day, the MCP address and the Claude Code command to copy, and three agents that have connected

Models

Every model runs through audio.cpp, a native runtime, so there is no Python to set up. Verified end to end and on by default:

ModelGood forLicenceCommercial use
Stable Audio 3.0 SFXSound effects, foley, ambienceStability AI Community⚠️ Under $1M revenue
Stable Audio 3.0 Small MusicInstrumental music, loopsStability AI Community⚠️ Under $1M revenue
ACE-Step 1.5 TurboSongs with lyrics; extend, cover, repaintMIT✅ Yes
MiniMax Music 3Songs with lyrics, about 10 GB VRAMMiniMax-Music3 Community⚠️ Conditional
61 more in the catalog · 45 text-to-speech, 6 music, 2 SFX, 4 stem separation, 4 voice conversion
KindCountIncludes
Text-to-speech45Chatterbox, Fish Audio S2 Pro, IndexTTS 2, VibeVoice, Higgs Audio v3, Qwen3-TTS, CosyVoice 3, Kokoro and more; several clone from a reference clip
Music6ACE-Step 1.5 Base and XL, Stable Audio 3.0 Medium, HeartMuLa, MiniMax H3
Sound effects2MiDashengLM-Gen, ControlFoley
Stem separation4HTDemucs (4- and 6-stem), BS-RoFormer, Mel-Band RoFormer
Voice conversion4RVC, Seed-VC, MioCodec, MeanVC2

VibeVoice 1.5B, MiDashengLM-Gen, HTDemucs 6-stem and Chatterbox Turbo have also been run end to end; the rest are marked unverified until someone reports. The 19 added in October 2026 need audio.cpp 0.9.2 or newer (soundbox model install audiocpp fetches the latest).

Any model whose licence could not be established is treated as non-commercial. This is a summary, not legal advice: read each licence before you ship what a model made.

Compared with a hosted service

Hosted (ElevenLabs, Suno and similar)Mirli
Runs onTheir GPUsYour machine
CostSubscription or creditsYour electricity
AccountRequiredNone
ModelsClosed, tuned, consistentOpen weights; quality varies by model
Output rightsTheir terms of serviceThe licence of the model that made it, shown up front
OfflineNoYes, once the weights are downloaded
AgentsHTTP APIHTTP API and an MCP server
SourceClosedMIT

Run from source

Node, Docker and the HTTP API

Requires Node 22.12 or later. No Python, no CUDA toolkit.

git clone https://github.com/HamSanders/soundbox
cd soundbox
npm install
npm run dev

This starts the server on port 17494 and the UI on http://localhost:5174. npm run dev:mock runs the UI with no GPU or server (see CONTRIBUTING.md).

Docker. The server and web UI run headless in one container with the audio.cpp runtime inside. CPU by default; add the CUDA override for a GPU. Both pull the prebuilt image from GHCR (:latest, :cuda, or a version such as :v0.4.0 and :v0.4.0-cuda).

docker compose up -d
docker compose -f docker-compose.yml -f docker-compose.cuda.yml up -d

To build from the checkout instead, add -f docker-compose.build.yml (and -f docker-compose.build-cuda.yml for CUDA) and --build; see docs/INSTALL-DOCKER.md.

There is no authentication unless you set MIRLI_API_TOKEN, so keep the port on localhost, or set a token and serve it over HTTPS, and set MIRLI_ALLOWED_HOSTS to the name you reach it by. Details are in docs/INSTALL-ACCESS.md.

HTTP API. Everything the app does is available on port 17494:

curl -X POST http://127.0.0.1:17494/api/generate \
  -H 'Content-Type: application/json' \
  -d '{"model":"audiocpp-stable-audio-3-sfx","prompt":"heavy wooden door slamming in a stone corridor","duration_s":3}'

Long jobs return an id with a server-sent event stream. Every route is in docs/API.md.

Anything with an OpenAI base URL setting can use Mirli for speech: point it at http://127.0.0.1:17494/v1 for /v1/audio/speech and /v1/audio/transcriptions. See OpenAI-compatible routes.

Docs

If you want toRead
Get it running, or fix a first runRun from source · Desktop · Troubleshooting
Write prompts these models answerGenerating
Arrange, mix and exportStudio · Library
Drive it from an agent or a scriptMCP · HTTP API
Add or verify a modelaudio.cpp · Contributing
Understand how the pieces fitArchitecture

FAQ

Can I sell what I make? It depends on the model. Stable Audio is free under $1M revenue, ACE-Step 1.5 is MIT, and models with an unestablished licence are marked non-commercial. Each model's terms are on its card in the app.

Do I need a GPU? No, but CPU generation is slow. The hardware table above says what to expect.

Does it work on a Mac? There are installers for Apple silicon and Intel, and audio.cpp runs on Metal.

How do I remove it? Delete the app and ~/.mirli. There is no account to close and nothing was uploaded.

Star history

Star history chart for HamSanders/soundbox

Licence

Mirli is MIT. The model weights are not (details): each carries its own licence, and what you can do with generated audio is governed by the licence of the model that made it. Clone only voices you have permission to use. Mirli downloads weights at your direction and does not redistribute them. Example media under site/public/ was generated with third-party models; its provenance is in ASSETS.md.

The Mirli name and logo are trademarks and aren't covered by the MIT licence. TRADEMARK.md says how to use them; in short, talk about Mirli freely, and give a fork its own name.

OCI
ghcr.io/hamsanders/soundbox:v0.7.3
Install Command
docker pull ghcr.io/hamsanders/soundbox:v0.7.3:undefined