Why VieNeu Studio?
- Zero-Build Docker Deployment: Pull pre-built
ghcr.io/sinhsac/vieneu-studio:latest(ONNX CPU) or:gpu(CUDA 12.8) with Python 3.12,vieneu,ffmpeg, and the compiled React SPA baked in. - 7 Production Workspaces on One Port: Switch effortlessly between single-voice TTS, multi-speaker Podcasts, batch Audiobook MP3s, SRT Video Dubbing, Voice Lab cloning, LoRA Fine-tune dataset curation, and Media History.
- Pro Fine-Tune Audio Slicer & Transcriber: Process existing recordings or podcasts on a high-res interactive waveform with minimap, zoom/pan, automatic speech detection, silence snapping, slow-speed region looping, and live
sea-g2pphoneme checks while typing transcripts. - Built-in OpenAI-Compatible TTS API: Call
POST /v1/audio/speechon the exact same port (:8765) to integrate Vietnamese 48 kHz synthesis into Open WebUI, n8n, Home Assistant, or any OpenAI SDK client. - Clean Standalone Architecture: Consumes
vieneudirectly from PyPI as a clean dependency (no fork baggage) — upgrading the core engine is a singleuv lock --upgrade-package vieneucommand.
Quick Start (Docker Compose)
No repository clone, Python, or Node.js required. Download docker-compose.yml and launch:
mkdir vieneu-studio && cd vieneu-studio
curl -fsSLO https://raw.githubusercontent.com/sinhsac/vieneu-studio/main/docker-compose.yml
# 1) CPU / ONNX Runtime (default — no GPU required)
docker compose up -d
# 2) Or NVIDIA CUDA 12.8 GPU acceleration
docker compose --profile gpu up -d vieneu-studio-gpu
Open http://localhost:8765 in your browser. Model weights download automatically on first launch and persist in the vieneu_hf_cache volume.
Updating & Configuration
# Pull latest GHCR image and recreate container
docker compose pull && docker compose up -d
# Custom port + faster INT8 CPU model + optional API key for /v1/*
VIENEU_STUDIO_PORT=9000 \
VIENEU_STUDIO_PROFILE=v3turbo_int8 \
VIENEU_API_KEY=my-secret-key \
docker compose up -d
| Variable / Volume | Default | Description |
|---|---|---|
VIENEU_STUDIO_PORT |
8765 |
Host port serving both the Web UI and OpenAI API |
VIENEU_STUDIO_PROFILE |
v3turbo_fp32 |
Default engine profile: v3turbo_fp32, v3turbo_int8, or v3nano |
VIENEU_API_KEY |
empty | Optional Bearer token protecting /v1/* OpenAI endpoints |
vieneu_hf_cache |
/data/hf_cache |
Persistent HuggingFace model cache (downloaded once) |
vieneu_studio_data |
/data/vieneu |
Persistent cloned voices, history, audio slicer drafts, and datasets |
./finetune_dataset |
/data/finetune_dataset |
Host folder synced when exporting LoRA datasets directly |
7 Workspaces Overview
| Workspace | Highlights |
|---|---|
| 1. TTS Studio | Emotion tags ([cười], [thở dài], [hắng giọng]), Ctrl+Enter, URL/PDF/SRT/TXT import, 25+ searchable voices with 1-click preview, MP3/WAV 48 kHz + -16 LUFS normalization. |
| 2. Dialogue & Podcast | Multi-speaker turn editor with distinct voice/color per character, per-turn pauses, and bulk script paste (Speaker: Line). |
| 3. Audiobook MP3 Exporter | Auto-splits long novels into chapters (Chương 1, Chapter 1, # ...), embeds ID3 tags, normalizes loudness, and bundles all chapter MP3s + playlist.json into a ZIP. |
| 4. SRT & Video Dubbing | Upload .mp4/.mkv/.mov + .srt, edit cues inline, preserve timing or concatenate, mix original background audio (0%–80%), and mux a dubbed .mp4 via ffmpeg. |
| 5. Voice Lab | Upload reference audio or record live via microphone, apply ONNX AI Denoise with Original vs. Denoised A/B comparison, and save custom voices permanently to ~/.vieneu/. |
| 6. Dataset Fine-Tune (LoRA) | 4 collection modes: Pro Audio Slicer, Teleprompter packs, Auto-Split, and Bulk Upload + CSV. Quality metrics (duration 3–15s, SNR, RMS, clipping, G2P), per-clip waveform cropper, and ZIP/folder export. |
| 7. Media History & Player | Auto-saved library with search & filter plus a persistent bottom Retina Canvas Waveform Player (Space play/pause, 0.75x–2x speed, Light/Dark mode). |
Pro Audio Slicer & Transcriber (Fine-Tune Data Prep)
Designed specifically to turn existing podcasts, interviews, or raw recordings into clean 3–15s LoRA fine-tuning datasets (metadata.csv + raw_audio/):
- Interactive Waveform + Minimap: Upload any audio/video file (auto-converted to 48 kHz mono WAV and persisted as a draft). Zoom with
Ctrl+Scroll, pan via the top minimap orShift+Scroll, drag on empty space to create regions, and drag left/right handles with millisecond precision. - Smart Cut Helpers: One-click Auto-Detect Speech to populate editable regions on the timeline, Snap to Speech to tighten silence edges, Split at Playhead (
S), Merge with Next,±0.1snudges, and Undo (Ctrl+Z). - Keyboard-First Transcription: Slow playback down to
0.75x, toggle Loop (L), type transcripts with livesea-g2pphoneme validation, and stay on the keyboard:Ctrl + Space(while typing): replay the active segmentCtrl + Enter(while typing): jump to the next segment and auto-playAlt + ← / →(while typing): seek±1s[/]: set region start / end to current playhead
- Anti-Click Slicing & Existing Clip Crop: Commits single or batch
3–15ssegments with subtle8 msboundary fades and optional AI denoising. Any clip already in the dataset can also be re-trimmed visually via the Crop (Cắt chỉnh) modal.
OpenAI-Compatible TTS API
Every VieNeu Studio instance exposes OpenAI-compatible speech routes on the same port (8765):
curl -X POST http://localhost:8765/v1/audio/speech \
-H "Content-Type: application/json" \
-d '{
"model": "v3turbo_fp32",
"voice": "Hải Đăng",
"input": "Xin chào, đây là giọng đọc tiếng Việt từ VieNeu Studio!",
"response_format": "mp3"
}' \
--output speech.mp3
| Endpoint | Method | Purpose |
|---|---|---|
/health |
GET |
Container & engine readiness check |
/v1/models |
GET |
Lists available VieNeu profiles (v3turbo_fp32, v3turbo_int8, v3nano) |
/v1/audio/voices |
GET |
Lists all built-in and saved user-cloned voices |
/v1/audio/speech |
POST |
Synthesizes speech as mp3, wav, or raw pcm |
Local Development
Requires Python 3.10+ (uv), Node.js 18+, and ffmpeg:
git clone https://github.com/sinhsac/vieneu-studio.git
cd vieneu-studio
# One-command launcher (installs Python env, builds React UI, starts FastAPI on :8765)
chmod +x run.sh
./run.sh
# Optional: Frontend HMR dev server (proxies /api -> :8765)
cd frontend && npm install && npm run dev
# Build Docker image locally
docker compose -f docker-compose.yml -f docker-compose.build.yml up -d --build
VieNeu Studio installs the vieneu TTS library cleanly from PyPI as an external dependency. Upgrade to newer VieNeu releases anytime with uv lock --upgrade-package vieneu && uv sync.