Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01As1S7fpDqEDnZxcGbSSoUW
📚 Arknights EPUB & Audiobook AI Voice Visual Novel
An all-in-one suite for experiencing the complete story of Arknights in chronological timeline order—either as compiled EPUB 3 eBooks or through a locally-hosted, background-playable Audiobook & Visual Novel Web App with automated AI voice acting (GPT-SoVITS) and dynamic artwork/OST.
✨ Features
-
🎧 Audiobook & Visual Novel Web Application
- Full Chronological Timeline: Browse all 10 volumes and jump directly into any chapter.
- Obsidian & Gold Premium UI: Dark-mode glassmorphism interface with smooth 60fps CSS crossfades for background artwork and character sprites.
- Audiobook Auto-Play Mode: Automatically advances dialogue when voice lines finish, ducking BGM OST volume while characters speak.
- Background Playable: Built-in Browser MediaSession API integration allows you to minimize the window or lock your screen and control playback (Play/Pause/Next Line) using your OS media keys!
-
🤖 AI Voice Dubbing Pipeline (GPT-SoVITS)
- Pre-Trained Library: Ready-to-link mapping table (
config/voice_models.json) for Amiya, Kal'tsit, Ch'en, W, SilverAsh, and more. - Automated Voice Dataset Extractor: Includes
scripts/extract_voices.pyto download clean voice samples and transcriptions from community repositories (Aceship,tlvr-source) to train custom operator checkpoints in under 5 minutes. - AMD GPU & Linux Server Ready: Fully supports running locally on AMD Radeon GPUs (DirectML/ROCm) or deploying on your AlmaLinux server (
192.168.1.110). - Batch Generator: Pre-render audio for entire chapters using
npm run tts:generate.
- Pre-Trained Library: Ready-to-link mapping table (
-
📖 EPUB 3 eBook Compiler
- Combines 62 English-translated chapters into 10 themed volumes with auto-generated SVG covers and clean prose formatting.
🚀 Quick Start — Audiobook Web App
1. Install Dependencies
npm install
cd src/webapp && npm install
cd ../..
2. Start the Backend API & Asset Proxy Server (Terminal 1)
npm run server
Runs on http://localhost:3001 — automatically fetches and caches story scripts, background images (/cache/bg/), character sprites (/cache/sprite/), and OST tracks (/cache/bgm/).
3. Launch the Visual Novel Web App (Terminal 2)
npm run webapp
Open http://localhost:5173 in your browser to start reading or listening!
🎙️ AI Voice Acting Setup (GPT-SoVITS)
To enable character voice synthesis for dialogue lines:
- Follow the full setup guide in
docs/TTS_SETUP.md. - Run the GPT-SoVITS inference API server on port 9880:
# Example Windows PowerShell AMD GPU launch .\runtime\python.exe api.py -s SoVITS_weights\amiya.pth -g GPT_weights\amiya.ckpt -p 9880 - Pre-generate audio for any story chapter:
node src/tts-generator.js --story act18d0 --chapter 1
📚 EPUB Generation Commands
Generate individual volume EPUBs or the complete collection:
# Build all 10 Volumes
npm run build
# Build a specific Volume (e.g., Volume 1: Shadows over Chernobog)
npm run build:volume -- --volume 1
Output EPUBs are saved to dist/.
🏗️ Architecture & Documentation
- Master Roadmap & Execution Plan:
AUDIOBOOK_PLAN.md - Chronological Story Timeline:
src/timeline.js - Visual Novel JSON Parser:
src/parser-json.js - Asset Caching Downloader:
src/asset-cache.js
The generated EPUBs are not in this repo: Arknights story text is (c) Hypergryph - run the pipeline to build your own.