Megumin (Style-Bert-VITS2) + Ready-to-Run TTS Server
A Style-Bert-VITS2 text-to-speech voice model trained on Megumin (KonoSuba), packaged with a plug-and-play FastAPI backend server (backend.py) and one-click Windows launcher (Start_Server.bat).
Looking for the full desktop client? Check out the Megumin app on GitHub: Megumin-Resurrections
Audio Samples
| Style | Line (Japanese) | Preview |
|---|---|---|
| Neutral | ใจใฏในใใญใผใธใงใณ๏ผ | |
| Happy (Smug) | ใตใตใใใฉใใงใใใ็งใฎ็่ฃ้ญๆณใฎๅจๅใฏ๏ผใใใใงใใใใใใฃใจ่คใใฆใใใใใงใใ๏ผ | |
| Shy (Flustered) | ในใๅฅใซใซใบใใฎใใใซใใฃใใใใใใใใพใใใใ๏ผๅ้ใใใชใใงใใ ใใ๏ผ | |
| Pride (Arch-Wizard) | ๆใๅใฏใใใฟใ๏ผ็ด ้ญๆ้ไธใฎ้ญๆณใฎไฝฟใๆใซใใฆใ็่ฃ้ญๆณใๆใ่ ๏ผใใใใฒใไผใใใใใฎใงใ๏ผ |
Quick Start (One-Click Local Server)
This repository includes everything needed to run the TTS engine locally without manual path configuration:
- Clone or download this repository to your PC.
- Double-click
Start_Server.bat.- On the first launch, the script automatically creates a Python
venv, installs all dependencies fromrequirements.txt, and starts the server onhttp://localhost:8000. - Subsequent launches skip installation and boot the server immediately.
- On the first launch, the script automatically creates a Python
API Usage (POST /synthesize)
Once the server is running, send a UTF-8 JSON POST request to http://localhost:8000/synthesize to receive streaming audio/wav bytes:
$body = [System.Text.Encoding]::UTF8.GetBytes('{"text": "ๆใๅใฏใใใฟใ๏ผ", "style_name": "Pride", "style_weight": 1.2, "speed": 1.0}')
Invoke-RestMethod -Uri "http://localhost:8000/synthesize" `
-Method Post `
-ContentType "application/json; charset=utf-8" `
-Body $body `
-OutFile "output.wav"
- Downloads last month
- 220