A full-stack, modular trilingual (Japanese / English / Brazilian Portuguese) multimodal conversational AI runtime inspired by the Amadeus System from Steins;Gate 0. It features interactive visual novel sprite animations (with a copyright-safe procedural holographic silhouette fallback), F1/F2 spectral formant lip-sync, Silero neural VAD, real-time HTML5 Canvas oscilloscope telemetry, ultra-low-latency neural voice cloning (Kurisu Qwen3-TTS Multilingual with CUDA Graphs, Kokoro-TTS 82M, Microsoft Edge-TTS, and Kurisu RVC v2), Dynamic Few-Shot Retrieval-Augmented Generation (RAG), and fault-tolerant multi-provider LLM orchestration.
Cortex Configuration Modal β Multi-provider LLM routing (Groq, Gemini, OpenRouter), strict model pinning, and 2-stage contextual impatience telemetry.
OpenAmadeus Companion (lucca3447/OpenAmadeus) recreates the digitalized persona and consciousness of the neuroscientist character Makise Kurisu using strict natural language system directives, episodic semantic memory retrieval, and synchronized audiovisual rendering.
-
4-Stage Universal Voice Engine Cascade (
server/app/services/voice_service.py): - Real-Time PCM16 Streaming & Web Audio DSP Chain
- Visual State Machine, F1/F2 Formant Lip-Sync & Audio-Reactive HUD
-
Neural Silero VAD, Hands-Free Voice Call & Real Barge-In (
src/services/speechService.ts): -
Trilingual Experience (PT-BR / EN / JA) & Canonical Japanese Voice Mode (
canonicalJpVoice): -
Temporal Hiatus Telemetry (
$\Delta t$ ), Live Call Greeting & End-of-Call Summarization: -
Dynamic Few-Shot RAG, Canonical Lorebook & Episodic Memory (
server/training/& ChromaDB): -
Multi-Provider LLM Orchestration (
server/app/services/llm/):
OpenAmadeus scales from CPU-only laptops to local NVIDIA GPUs and free/low-cost Google Colab workers:
| Tier / Engine | Execution Mode | Hardware / VRAM | First Audio (TTFA) | Speed (RTF) | Notes & Capabilities |
|---|---|---|---|---|---|
| Tier 1: Edge-TTS (Universal) | Cloud Neural Stream | Any PC / Laptop (0 GB VRAM) | ~400β900 ms | > 3.00x | Zero downloads required; works out-of-the-box on Windows, macOS, and Linux |
| Tier 2: Kokoro-TTS 82M (Offline) | Local CPU / GPU | CPU or GPU (~350 MB RAM/VRAM) | ~80β300 ms | > 2.50x | 100% offline PT-BR synthesis (pf_dora), zero cloud dependency |
| Tier 3: Kokoro / Edge + RVC v2 | Local Timbre Morph | NVIDIA GPU (~2β4 GB VRAM FP16) | ~800β1,500 ms | ~1.50x | Converts Kokoro or Edge speech into Kurisu's canonical acoustic timbre (KurisuRVCv147) |
Tier 4: Qwen3-TTS (faster) |
Streaming PCM16 (CUDA Graphs) | Colab L4/A100 or Local GPU (~4β6 GB VRAM) | ~391 ms | 1.92x (L4) | End-to-end Kurisu synthesis with natural sighs, calibrated cadence, and pure-weight SFT stability |
Tier 4 (Legacy): Qwen3-TTS (stock) |
Batch WAV (Dynamic Cache) | NVIDIA GPU (~6 GB VRAM) | ~14,000β20,000 ms | ~0.44x | Fallback batch mode when faster-qwen3-tts is disabled (QWEN_BACKEND=stock) |
Empirical runtime measurements collected with OpenAmadeus' built-in telemetry (/api/metrics) and server/scripts/benchmark_amadeus.py:
| Metric | Before (v0.3.2) |
After (v0.3.3) |
Measured Gain |
|---|---|---|---|
Gateway /api/health (p50 / p95) |
20.2 / 135.3 ms |
7.9 / 11.0 ms |
2.6Γ faster p50, 12.3Γ lower p95 |
ONNX Warm-up (onnx_warmup_ms) |
37,427.6 ms (1st probe) |
204.5 ms |
Persistent ONNXMiniLM_L6_V2 session kept warm in RAM |
RAG Uncached Query (rag_cold_query_ms, p50 / p95) |
389.6 / 28,170.6 ms |
9.7 / 13.4 ms |
40Γ faster p50 (single-query dynamic padding + zero collection.get()) |
RAG Cached Query (rag_cached_ms, LRU hit, p50 / p95) |
β | 5.1 / 5.4 ms |
Sub-6 ms HNSW lookup on repeated prompts |
Offline /api/chat (100% uncached, p50 / p95) |
96.7 / 448.5 ms (with LRU hits) |
34.6 / 39.2 ms |
Measured on unique uncached utterances (_embed_cache.clear()) |
Offline /api/chat/stream (100% uncached, p50 / p95) |
87.7 / 420.2 ms (with LRU hits) |
35.4 / 38.9 ms |
Non-blocking asyncio.to_thread + single SQLite connection per turn |
Backend Unit Tests (88 tests) |
71.66 s |
21.06 s |
3.4Γ faster full suite |
| Metric | Before (v0.3.1) |
After (v0.3.2) |
Measured Gain |
|---|---|---|---|
First Turn (Cold end-to-end, live) |
29,353 ms |
2,016β2,971 ms |
~10Γβ14.5Γ faster (background ONNX warm-up eliminates ~27.7 s stall) |
LLM Model Discovery (GET /models, warm p50) |
365β432 ms |
0 ms |
Eliminated (10-min TTL cache + keep-alive httpx client) |
| RAG ONNX Embeddings per Turn | 4Γ |
1Γ |
-75% CPU (LRU single-embedding reuse across canonical, learned & 154 exemplars) |
Offline /api/chat (p50) |
369.2 ms |
96.7 ms |
3.8Γ faster |
Offline /api/chat/stream (p50) |
693.6 ms |
87.7 ms |
7.9Γ faster |
| Stage / Test Case | First Byte / TTFA | Speed / Duration | Reliability & DSP Notes |
|---|---|---|---|
Gateway /api/health |
4.3 ms (p50: 5.9 ms) |
β | Fast SELECT COUNT(*) SQLite + ChromaDB probe |
Qwen3-TTS Stream β PT-BR (tsundere) |
826.5 ms |
1.52Γ (5.76 s audio in 3.78 s) |
6.8Γ lower TTFA than batch WAV (5,599.6 ms, 0.90Γ) |
Qwen3-TTS Stream β EN (analytical) |
810.4 ms |
1.46Γ (4.24 s audio in 2.91 s) |
Clean F0 (273 / 389 Hz), zero truncations |
Qwen3-TTS Stream β JA (annoyed) |
1,422.2 ms |
1.12Γ (3.52 s audio in 3.15 s) |
High-energy expressiveness (F0 462 / 600 Hz) |
Live Multi-Turn Session (5β12 turns) |
LLM 1st Sent p50: ~1,946β2,016 ms |
TTS TTFB p50: 854β1,335 ms (1.5Γβ1.6Γ) |
Discovery p50: 0 ms β’ 0 PCM underruns β’ 0 errors/fallbacks |
| Barge-In / Mid-Stream Abort | Immediate cancel | Instant recovery | PASS β worker /health stays ready after mid-stream disconnect |
Reproduce locally via
python server/scripts/benchmark_amadeus.py --offline/--liveor inspect live per-turn waterfalls in Setup β SYSTEM.
flowchart TD
subgraph Client["Frontend β React 19 / TypeScript / Vite (:5173)"]
UI["HUD, ChatFeedStream, SettingsModal & Trilingual i18n (PT/EN/JA)"]
SpriteEngine["AmadeusSpriteView (174 Sprite Pack / F1-F2 Formant Lip-Sync / Hologram)"]
Oscilloscope["AudioOscilloscope (HTML5 Canvas FFT)"]
MicVAD["Silero VAD v5 (@ricky0123/vad-web ONNX) + Groq Whisper STT"]
Reader["speechService.ts: PCM16 Stream Reader + SentenceSpeaker"]
DSP["Web Audio DSP: Jitter (+240ms) -> Make-up Gain (1.65x) -> Compressor (-20dB) -> AnalyserNode"]
UI --> Reader
MicVAD --> UI
Reader --> DSP
DSP --> SpriteEngine
DSP --> Oscilloscope
end
subgraph Server["Backend β FastAPI Core Gateway (:8000)"]
Router["API v1 Router (/chat, /chat/stream, /tts, /memories, /sessions)"]
Orchestrator["Multi-Provider LLM Orchestrator + Trilingual Lorebook"]
EmotionParser["Emotion Tag Parser, SentenceStream & clean_text_for_tts"]
VoiceManager["voice_service.py (4-Stage Fallback Controller)"]
Router --> Orchestrator
Router --> VoiceManager
Orchestrator --> EmotionParser
EmotionParser --> VoiceManager
VoiceManager -- "StreamingResponse (audio/L16, WAV, MP3)" --> Reader
end
subgraph VoiceEngines["Modular Voice Synthesis Engines"]
QwenWorker["Kurisu Qwen3-TTS Multilingual (JA/EN/PT-BR, :8005 or Colab) β FasterQwen3TTS + C0 Ramp"]
KokoroEngine["Kokoro-TTS 82M (lang_code='p', voice='pf_dora')"]
EdgeTTS["Microsoft Edge-TTS (pt-BR / en-US / ja-JP)"]
RVCWorker["Kurisu RVC v2 Pipeline (KurisuRVCv147 + HuBERT/JP-HuBERT + RMVPE)"]
VoiceManager --> QwenWorker
VoiceManager --> KokoroEngine
VoiceManager --> EdgeTTS
KokoroEngine -. "use_rvc=True" .-> RVCWorker
EdgeTTS -. "use_rvc=True" .-> RVCWorker
QwenWorker -- "audio/L16;rate=24000 (PCM Stream)" --> VoiceManager
RVCWorker -- "audio/wav" --> VoiceManager
KokoroEngine -- "audio/wav" --> VoiceManager
EdgeTTS -- "audio/mpeg" --> VoiceManager
end
subgraph Persistence["Hybrid Memory & Fine-Tuning Layer"]
SQLite[("SQLite: amadeus.db + End-of-Call Summaries")]
ChromaDB[("ChromaDB: memory_db + 154 Trilingual Few-Shot Dialogues")]
end
subgraph ExternalLLMs["LLM Inference Providers"]
Gemini["Google Gemini 2.5 Flash"]
Groq["Groq LPU (Llama 3.3 70B / Qwen 3.8)"]
OpenRouter["OpenRouter Free Tier (Gemma 4 / Nemotron)"]
OfflineSim["Local Heuristic Offline Simulator"]
end
UI -- "POST /api/chat & /api/tts" --> Router
Orchestrator <--> SQLite
Orchestrator <--> ChromaDB
Orchestrator --> Gemini
Orchestrator --> Groq
Orchestrator --> OpenRouter
Orchestrator --> OfflineSim
Switch between voice engines dynamically at runtime via the in-app Settings Modal (βοΈ):
- Hugging Face Checkpoint (Official
v0.3.0): lucca3447/Makise_Kurisu_Qwen3_TTS_PTBR_added β extendsstarrydark/Makise_Kurisu_Qwen3_TTS/ Qwen3-TTS (native Japanese & English) by adding Brazilian Portuguese (vn_only ep2bilingual-replay LoRA via notebooks/Amadeus_Qwen3_TTS_PTBR_LoRA.ipynb), keeping speaker IDkurisuintact across all 3 languages. - Acceleration Runtime: andimarafioti/faster-qwen3-tts (captures the 28-layer Talker and 15-step Code Predictor into static-cache CUDA Graphs, cutting per-step latency from ~330 ms to ~54 ms).
- Automatic Weight Caching: Weights (~3.8 GB) are downloaded automatically on first startup into
~/.cache/huggingface/hub/(controlled byQWEN_MODEL_ID). - Manual Offline Clone (Optional):
server/weights/kurisu_qwen3/overrides the Hugging Face download when present:git lfs install git clone https://huggingface.co/lucca3447/Makise_Kurisu_Qwen3_TTS_PTBR_added server/weights/kurisu_qwen3
- Hugging Face Checkpoint: FrancescoCaracciolo/Kurisu-RVC (
KurisuRVCv147.pth+KurisuRVCv147.index). - Pipeline Features: Supports configurable consonant
protect(rvcProtect), RMS envelope matching, and auto-detection of Japanese HuBERT (yky-h/japanese-hubert-base) checkpoints viatransformers. - Directory Layout: Place
KurisuRVCv147.pthandKurisuRVCv147.indexinsideserver/weights/kurisu_rvc/:server/ βββ weights/ βββ kurisu_rvc/ β βββ KurisuRVCv147.pth β βββ KurisuRVCv147.index βββ models/ βββ hubert_base.pt βββ rmvpe.pt
To respect intellectual property, commercial Steins;Gate game assets are not distributed in this repository. OpenAmadeus includes a fully functional procedural holographic silhouette (AmadeusSpriteView.tsx) out of the box, requiring zero external assets.
If you wish to enable the authentic 174-sprite visual novel expressions locally:
- Method A (Official Steam Extraction): Extract
chara.mpkfrom your purchased Steam/GOG copy of Steins;Gate 0 using open-source extraction tools such as GARbro. - Method B (Community Preservation Reference): Consult the educational sprite sheet archive on The Spriters Resource (Asset #108143).
To automatically unpack and verify your assets into public/assets/sprites/kurisu/, run:
# Automated import from a downloaded .zip or folder:
python scripts/setup_sprites.py --import "path/to/archive.zip"
# Or verify existing assets in public/assets/sprites/kurisu/:
python scripts/setup_sprites.py- Node.js: v18.0.0+ (v20+ recommended)
- Python: 3.10+
- GPU (Optional): NVIDIA GPU (CUDA 12.4+) or a Google Colab session (L4/A100 recommended).
npm install # postinstall automatically copies Silero VAD ONNX & WASM assets to public/vad/
npm run devThe visual novel interface will be live at http://localhost:5173.
Step 2: Launch Core FastAPI Backend (:8000)
# Windows (PowerShell):
cd server
python -m venv rvc_env
.\rvc_env\Scripts\Activate.ps1
pip install -r requirements.txt
python -m uvicorn main:app --reload --port 8000 # or: python main.py
# Linux / macOS:
cd server
python3 -m venv rvc_env
source rvc_env/bin/activate
pip install -r requirements.txt
python -m uvicorn main:app --reload --port 8000 # or: python main.pyInteractive Swagger API documentation is available at http://localhost:8000/docs.
- Upload or open
notebooks/Amadeus_Qwen3_TTS_Colab.ipynbin Google Colab and select the NVIDIA L4 (best cost/latency ratio) or A100 runtime. - Execute the cells. The notebook automatically installs
sox, pinstransformers==5.15.1, installs faster-qwen3-tts, captures CUDA Graphs, warms up the Mimi audio decoder, and prints a public Cloudflare Tunnel URL (https://*.trycloudflare.com). - Open Settings (βοΈ) in OpenAmadeus, select Qwen3-TTS (Remote Colab), and paste the tunnel URL (or set
QWEN_REMOTE_URLinserver/.env).
cd server
python -m venv qwen_env
.\qwen_env\Scripts\Activate.ps1 # Linux/macOS: source qwen_env/bin/activate
# Install CUDA PyTorch + pinned Qwen3-TTS streaming dependencies
pip uninstall -y qwen-tts
pip install -r requirements-qwen.txt
# Launch worker (auto-detected by FastAPI on port 8005 if server/qwen_env exists)
python -m app.services.qwen_tts.qwen_workerThe server/training/ directory ships with a complete persona alignment toolkit:
- Automatic Dynamic Few-Shot RAG (Zero Setup): On startup,
memory_store.pyindexeskurisu_finetuning_dataset_enhanced.jsonl(154 curated PT-BR / EN / JA ChatML dialogue exemplars with<!--emotion:...-->,<!--pose:...-->,<!--camera:...-->, and<!--remember:...-->tags) into ChromaDB with hash-based auto-resync, injecting the most semantically relevant canon responses in the active language into every LLM prompt.
Cortex Synaptic Injector β Injecting structured episodic memories into ChromaDB with cognitive domains, emotional valence, and lexical triggers.
Spin up the full-stack CPU / Zero-VRAM environment (amadeus-frontend on Nginx :5173 + amadeus-backend on FastAPI :8000 with SQLite, ChromaDB, Cloud LLMs, Remote Colab Qwen3-TTS, and Edge-TTS) with persistent volumes:
docker compose up --build -d| Provider | Key Format | Supported / Default Models | Dashboard |
|---|---|---|---|
| Google Gemini | AIzaSy... |
gemini-2.5-flash, gemini-1.5-flash |
aistudio.google.com |
| Groq Cloud LPU | gsk_... |
llama-3.3-70b-versatile, qwen/qwen3.8-27b, openai/gpt-oss-120b |
console.groq.com |
| OpenRouter | sk-or-... |
google/gemma-4-31b-it:free, nvidia/nemotron-3.5-lightning:free |
openrouter.ai |
| Offline Simulator | None | Deterministic Heuristic Persona Simulator | 100% Offline |
Primary Backend Endpoints (http://localhost:8000)
| Endpoint | Method | Description |
|---|---|---|
/api/health |
GET |
Core gateway health, uptime, ChromaDB vector count, and active subsystem status |
/api/metrics |
GET |
Rolling (p50/p95) chat/RAG/LLM/TTS latency telemetry, cold vs. warm comparison, and error/fallback/abort counters |
/api/metrics/reset |
POST |
Resets in-memory runtime metrics counters and rolling buffers (useful between benchmark runs) |
/api/chat |
POST |
Conversational turn execution with RAG retrieval, emotion parsing, LLM fallback, and per-turn metrics |
/api/chat/stream |
POST |
Sentence-level SSE streaming (meta -> sentence* -> done) with per-stage timing breakdown |
/api/tts |
POST |
Universal speech synthesis (audio/L16;rate=24000 PCM stream, audio/wav, or audio/mpeg) emitting X-TTS-* headers |
/api/voice/status |
GET |
Real-time diagnostics across Remote Qwen3, Local Qwen3 (:8005), Kokoro, and RVC v2 |
/api/voice/ping |
POST |
Probes Qwen3-TTS worker /health and measures round-trip latency + allocated VRAM |
/api/voice/models |
GET |
Lists discovered RVC checkpoints, Kokoro voices (pf_dora), and Edge-TTS voices |
/api/memories |
GET / POST / DELETE |
Episodic semantic memory inspection and management (ChromaDB + SQLite) |
/api/sessions |
GET / POST / DELETE |
Conversation session persistence and history retrieval |
OpenAmadeus/
βββ notebooks/
β βββ Amadeus_Qwen3_TTS_Colab.ipynb # Remote Colab GPU worker (FasterQwen3TTS + Cloudflare Tunnel)
β βββ Amadeus_Qwen3_TTS_PTBR_LoRA.ipynb # LoRA training notebook adding PT-BR while preserving JA/EN
β βββ spike_faster_qwen3.py # TTFA/RTF benchmark & audio parity validation script
βββ public/
β βββ amadeus-icon.svg # Application vector emblem
β βββ vad/ # Local Silero VAD ONNX & ONNX Runtime WASM assets (postinstall)
β βββ assets/sprites/kurisu/ # Local destination for optional 174 sprite PNGs (gitignored)
βββ scripts/
β βββ copy-vad-assets.mjs # Copies @ricky0123/vad-web & onnxruntime-web files to public/vad/
β βββ eval_emotion_fidelity.py # Emotion/tag fidelity evaluation helper
β βββ optimize_sprites.py # Sprite image optimizer
β βββ setup_sprites.py # Sprite asset pack validator and directory initializer
βββ server/ # FastAPI Python Backend
β βββ app/
β β βββ api/v1/endpoints/ # Modular route handlers (chat, voice, memory, persona)
β β βββ core/ # config.py paths, model lists, and FastAPI lifespan
β β βββ db/ # Hybrid SQLite + ChromaDB vector persistence (memory_store.py)
β β βββ schemas/ # Pydantic request/response contracts (chat, memory, voice)
β β βββ services/
β β βββ llm/ # Multi-provider orchestrator, Lorebook, SentenceStream (gemini, groq, openrouter)
β β βββ qwen_tts/ # qwen_worker.py, qwen_manager.py, emotion_mapper.py (21 empirical targets)
β β βββ kokoro_tts/ # kokoro_manager.py (82M PT-BR local synthesis)
β β βββ rvc/ # rvc_manager.py, rvc_worker.py, pipeline.py & lib/ (HuBERT, RMVPE, PureTorchIndex)
β β βββ voice_service.py # 4-stage voice cascade & trilingual clean_text_for_tts sanitizer
β β βββ emotion_service.py # Sentiment/pose/camera parsing & trilingual shift inference
β β βββ metrics.py # In-memory rolling latency/reliability registry (p50/p95, cold vs. warm)
β β βββ offline_simulator.py # Zero-internet trilingual heuristic dialogue fallback
β βββ personas/ # Persona definitions, languageProfiles & canonical memories (kurisu.json)
β βββ scripts/ # Unified E2E benchmark CLI (benchmark_amadeus.py), DSP probes & RAG calibration
β βββ training/ # 154-pair PT/EN/JA ChatML dataset, Unsloth LoRA script, Ollama Modelfile
β βββ tests/ # Unit, streaming, metrics, RAG & RVC suites (test_metrics.py, test_chat_stream.py, etc.)
β βββ weights/ # Local model directory (kurisu_rvc/, kurisu_qwen3/, models/)
β βββ main.py # FastAPI gateway entry point
β βββ remote_worker.py # Standalone remote worker runner
β βββ requirements.txt # Universal CPU backend dependencies
β βββ requirements-qwen.txt # GPU worker dependencies (faster-qwen3-tts, transformers==5.15.1)
βββ src/ # React 19 + TypeScript + Vite Frontend
β βββ components/ # AmadeusSpriteView, AudioOscilloscope, SettingsModal, etc.
β βββ data/personas/ # Frontend persona metadata (kurisu.ts)
β βββ services/ # speechService.ts (Silero VAD + F1/F2 Lip-Sync + PCM16 DSP), vadGate, aiService, memoryService
β βββ types/ # TypeScript domain contracts (amadeus.ts)
β βββ i18n.ts # Complete PT-BR / EN / JA UI translation dictionary
β βββ App.tsx # Main visual novel & call state orchestrator
β βββ main.tsx # React DOM entry point
βββ docker-compose.yml # Full-stack multi-container orchestration
βββ Dockerfile # Multi-stage frontend production build
βββ package.json # Frontend dependencies and build scripts
Live runtime diagnostics are available directly in the UI (click the TTFA latency pill in the top bar or open Setup β SYSTEM) showing the per-turn waterfall (STT β RAG β Model Discovery β LLM TTFT / 1st Sentence β TTS TTFB), rolling p50/p95 stats, PCM underrun counts, and cold vs. warm averages.
Setup β SYSTEM (native <dialog> modal) β Live Latency Telemetry & Diagnostics (p50/p95 percentiles, cold vs. warm averages, 1-click subsystem probes) paired with the Active Runtime Stack ledger for v0.3.3.
Run the automated test and benchmark suites before submitting pull requests:
# 1. Backend unit tests (core API, metrics, Qwen3 streaming, C0 DSP ramp, text sanitizer, and RVC)
python -m unittest discover -s server/tests -p "test_*.py"
# 2. Frontend TypeScript strict type-checking and production build verification
npx tsc --noEmit
npm run build
# 3. Unified E2E latency & functioning benchmark (deterministic offline β zero API cost)
python server/scripts/benchmark_amadeus.py --offline
# 4. Live E2E benchmark (real LLM cold vs. warm + Colab/local Qwen3-TTS streaming, DSP & barge-in)
python server/scripts/benchmark_amadeus.py --live --in-process --api-key "<KEY>" --qwen-url "https://<tunnel>.trycloudflare.com"Timestamped JSON and Markdown benchmark reports are saved automatically to server/data/benchmarks/.
OpenAmadeus follows Semantic Versioning 2.0.0 (MAJOR.MINOR.PATCH) under a strict 3-Tier Execution Triad (Free Cloud / Local Mainstream 8β12GB GPU / Local Ultra-Lightweight CPU).
For the complete granular evolution timeline, technical milestones, and architectural decisions from v0.1.0 through v1.0.0, see docs/ROADMAP.md.
Contributions, bug reports, and acoustic calibration improvements are welcome!
- Versioning: This project adheres to Semantic Versioning 2.0.0 (
MAJOR.MINOR.PATCH). - Branching: Create a feature branch from
main(e.g.,feat/faster-qwen3-ttsorfeat/emotion-calibration). - Commit Format: Use atomic commits following the Conventional Commits specification:
feat(qwen-tts): ...for synthesis worker, CUDA Graph runtime, and boundary DSP featuresfeat(voice): ...for fallback orchestration, text sanitization, andemotion_mapper.pytuningfeat(frontend): ...for UI components, Web Audio API DSP, and lip-sync updateschore(colab): ...for notebook and remote worker toolingtest(voice): ...for unit and integration tests
- Verification: Ensure all Python unit tests and
npx tsc --noEmitpass cleanly before opening a Pull Request.
OpenAmadeus builds upon the following open-source libraries, pre-trained weights, and research works:
- lucca3447 / Makise_Kurisu_Qwen3_TTS_PTBR_added: Multilingual Makise Kurisu 1.7B voice checkpoint extending upstream JA/EN synthesis with Brazilian Portuguese (
vn_only ep2bilingual-replay LoRA), preserving studio-grade vocal identity across JA, EN, and PT-BR. - QwenLM / Qwen3-TTS (Apache-2.0): Base 1.7B speech synthesis architecture and 12 Hz discrete speech tokenizer by The Qwen Team, Alibaba Cloud.
- starrydark / Makise_Kurisu_Qwen3_TTS: Upstream Makise Kurisu 1.7B SFT checkpoint used as our fine-tuning base.
- andimarafioti / faster-qwen3-tts (Apache-2.0): Real-time Qwen3-TTS inference runtime using static KV cache and CUDA Graphs (
Marafioti, A., 2026). - RVC-Project / Retrieval-based-Voice-Conversion-WebUI (MIT): Open-source Retrieval-based Voice Conversion architecture (
SynthesizerTrnMs768NSFsidinference pipeline). - FrancescoCaracciolo / Kurisu-RVC: Pre-trained Makise Kurisu RVC v2 voice model (
KurisuRVCv147.pth&KurisuRVCv147.index). - Dream-High / RMVPE (Apache-2.0): Robust vocal pitch estimation (
Wei et al., 2023, "RMVPE: A Robust Model for Vocal Pitch Estimation in Polyphonic Music", arXiv:2306.15412). - rinna / japanese-hubert-base (via yky-h/japanese-hubert-base): Japanese HuBERT acoustic feature extractor (
Sawada et al., PACLIC 2024, "Release of Pre-Trained Models for the Japanese Language"). - hexgrad / Kokoro-82M (Apache-2.0): Lightweight 82M-parameter open-weight multilingual neural TTS engine.
- rany2 / edge-tts (LGPL-3.0) & Microsoft Azure Neural TTS: Zero-setup cloud neural speech synthesis.
- snakers4 / silero-vad (MIT): Pre-trained enterprise-grade Silero VAD v5 neural speech detector (
Silero Team, 2024, "Silero VAD: pre-trained enterprise-grade Voice Activity Detector (VAD), Number Detector and Language Classifier"). - ricky0123 / vad (
@ricky0123/vad-web) (ISC): Browser AudioWorklet / MicVAD wrapper running Silero VAD locally in WebAssembly. - microsoft / onnxruntime (
onnxruntime-web) (MIT): In-browser WebAssembly / SIMD neural inference runtime powering Silero VAD. - chroma-core / chroma (Apache-2.0): Open-source vector database powering dynamic few-shot & episodic RAG.
Non-Commercial Project:
OpenAmadeus Companion is an independent, non-commercial open-source research and educational tribute project inspired by Steins;Gate 0. It is free, non-monetized, and open to the community for exploring human-computer interaction and multimodal conversational agents under the GNU General Public License v3.0.Trademarks & Copyrights:
All characters, names, lore, and visual assets related to STEINS;GATE (including Makise Kurisu, Amadeus System, Viktor Chondria University, and Lab 304) are registered trademarks and copyrighted properties of MAGES. Inc. / 5pb. / Chiyomaru Studio / KADOKAWA. This project is not affiliated with, endorsed by, or sponsored by these entities.Voice Models & Attribution:
The community acoustic models (RVC v2 and Qwen3-TTS) are hosted externally on Hugging Face by independent researchers. They represent experimental synthetic voice emulation and are neither officially endorsed by nor affiliated with the original voice cast or copyright holders.Asset Distribution Policy:
To respect copyright boundaries, no commercial game assets or sprite images are bundled or tracked in this Git repository. The engine functions natively with a stylized procedural holographic silhouette. Users wishing to apply local character sprites do so privately on their own machines (python scripts/setup_sprites.py).Notice & Takedown:
If you are a copyright holder and believe any material exceeds fair use or infringes your rights, please open an Issue for prompt resolution or removal.



