Skip to content

About

Portable offline AI audio studio with web UI & local API – XTTS, Fish Speech, Kokoro, Stable Audio, ACE-Step, voice cloning, music gen (no install)

Topics

Resources

Stars

33 stars

Watchers

2 watching

Forks

Latest commit

 

History

27 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎧 LocalSoundsAPI

A portable, offline AI audio studio for Windows. Voice cloning · Text-to-speech · Music with vocals · Sound effects · Transcription · Subtitled video · AI writing assistant with a web UI and a local REST API.

Release License: MIT Platform: Windows Python Stars

📥 Download · 📖 Wiki · 🚀 Getting started · 🔌 API · 📘 PDF manual

Kokoro narrating while Stable Audio renders a thunderstorm on another GPU, each with its own live progress bar

Real-time capture: Kokoro narrates a script while Stable Audio renders a thunderstorm on a second GPU (the long wait is sped up 4×).


Everything runs on your own machine from one folder: no admin rights, no system Python, no cloud. After the models download once, it works fully offline.

✨ What's inside

XTTS-v2 panel XTTS-v2: clone any voice from ~10 s of audio, 17 languages, 58 built-in speakers. Fish Speech panel Fish Speech: the most natural cloned voices, for final takes.
Kokoro panel Kokoro 82M: tiny and very fast, 54 voices in 9 languages, runs well on CPU. Stable Audio panel Stable Audio Open: sound effects, ambiences and instrumentals up to 47 s, best variant picked by CLAP.
ACE-Step panel ACE-Step: whole songs with sung lyrics from a style tag and [verse]/[chorus]. Video Production panel Video Production: audio + images → Whisper-subtitled video, 720p to 4K, vertical or transparent.
Chatbot panel Chatbot: local llama.cpp, LM Studio or OpenRouter writes scripts and lyrics; one click sends them to any engine. Upload and transcribe panel Whisper: transcribes your reference voices and checks every generated chunk, retrying any that don't match the text.

🔊 Hear the results: every engine page in the wiki has a sample generated with this app.

🧰 Features

  • Engines run side by side. Different engines generate at the same time (if you have the VRAM). Each panel has its own live progress bar with elapsed time and ETA. → Concurrency & Progress
  • Any model on any GPU. Every engine has its own device picker: music on the big card, speech on the small one, Kokoro and Whisper on CPU.
  • Studio-grade cleanup. De-reverb, de-essing, loudness normalization (-23 LUFS), silence trimming and peak limiting, plus optional Whisper verification with automatic retries.
  • Long jobs that survive. Scripts are chunked; saved projects keep a job.json, and ##recover## resumes a stopped job where it left off.
  • A real local API. Every button is a JSON call, and each panel's API Payload button shows the exact request. Busy engines answer 503 with Retry-After; GET /job_status reports progress. → API Reference
  • GUI launcher. Start servers per GPU and port, download models and tools, and read all logs in one window. → Launcher
  • Presets. Save and restore all your settings in one click.

🚀 Quick start

  1. Get the code: git clone https://github.com/aivrar/LocalSoundsAPI.git, or Code → Download ZIP and extract anywhere.
  2. Double-click install.bat. It downloads the portable Python environment and audio tools (~2.1 GB) from the compatible release bundle, checks their SHA-256 hashes, extracts them, and opens the launcher. No admin rights or system Python needed. (launcher.bat on a fresh clone starts the installer automatically.)
  3. Start the app:
    • launcher.bat (recommended): pick a GPU and port, click Start, then Open in Browser.
    • (portable) LocalSoundsAPI-Single.bat: one instance on http://127.0.0.1:5006.
    • (portable) LocalSoundsAPI-Multi.bat: several instances on consecutive ports.
  4. Click Load on an engine. Its model downloads the first time (or pre-download from the launcher's Models & Tools tab; about 35 GB for everything).

Manual fallback: download portable-python-env-v1.7z and bin.zip from the v1.0 dependency bundle and extract both into the project root; they create python/ and fill bin/.

Next: the Getting Started guide walks through your first generation.

🔌 API in 10 lines

import base64, requests
API = "http://127.0.0.1:5006"

requests.post(f"{API}/kokoro_load", json={"device": "cpu"})
r = requests.post(f"{API}/kokoro_infer", json={
    "text": "Hello from LocalSoundsAPI!", "voice": "af_heart",
    "kokoroDeviceSelect": "cpu", "output_format": "wav"})
open("hello.wav", "wb").write(base64.b64decode(r.json()["audio_base64"]))

All endpoints, status codes and a retry-safe client are in the API Reference. [stand-alone-app]-API_client.py is a complete working example.

💻 Requirements

Minimum Comfortable
OS Windows 10/11 64-bit
GPU None (CPU works; Kokoro and Whisper are quick) NVIDIA, 8–12 GB VRAM per busy engine
Disk ~5 GB + the models you use ~40 GB for every model

Measured on two GPUs with every engine loaded at once: ≈ 12 GB for Stable Audio + ACE-Step + CLAP, ≈ 7 GB for XTTS + Fish + Kokoro + Whisper.

📁 Folders

Folder What's in it
models/ AI models, auto-downloaded (XTTS-v2/, fish-speech/, kokoro-82m/, stable-audio-open-1.0/, ace_step/, clap-htsat-unfused/)
voices/ Your reference clips for cloning
projects_output/ Saved jobs and finished audio/video
brain/ Chatbot history, archives and system prompts
settings/ Saved presets
bin/ Portable FFmpeg, RubberBand, eSpeak-ng
python/ The portable Python environment
Full project structure
project-root/
├── ACE-Step/                  # Bundled ACE-Step code (music generation)
├── fish-speech/               # Bundled Fish Speech code
├── bin/                       # ffmpeg/, rubberband/, espeak-ng/
├── brain/                     # Chatbot memory (context_history/, system_prompt.json)
├── models/                    # All models (auto-downloaded or placed here)
├── projects_output/           # Saved jobs and final outputs
├── voices/                    # Reference voice samples
├── settings/                  # Saved parameter presets
├── static/  templates/        # Web UI
├── routes/                    # Flask endpoints
├── python/                    # Portable Python environment
├── scripts/install.ps1        # Download, verification, and extraction logic
├── install.bat                # One-click first-time setup
├── launcher.py / launcher.bat # GUI launcher
├── (portable) LocalSoundsAPI-Single.bat
├── (portable) LocalSoundsAPI-Multi.bat
├── main.py  config.py  requirements.txt

💡 Tips

  • Low VRAM? Keep big models on your strongest GPU and run Whisper and Kokoro on CPU, or set JOB_CONCURRENCY = "single" in config.py.
  • Drafts vs. final: iterate with Kokoro or XTTS, then render the final take with Fish Speech.
  • Keep your work: fill in Save Path to write into projects_output/; unsaved results are temporary.
  • Stuck? See Troubleshooting & FAQ or open an issue.

📜 License

LocalSoundsAPI is MIT-licensed. The AI models have their own licenses (e.g. XTTS-v2: Coqui Public Model License; Stable Audio Open: Stability AI Community License; Fish Speech: CC BY-NC-SA 4.0). Check them before commercial use.

If LocalSoundsAPI is useful to you, a ⭐ helps others find it · 💖 Sponsor

About

Portable offline AI audio studio with web UI & local API – XTTS, Fish Speech, Kokoro, Stable Audio, ACE-Step, voice cloning, music gen (no install)

Topics

Resources

Stars

33 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages