VoiceForge is designed as a modular monolith. While it runs as a unified local application, the internal components are strictly decoupled to allow for future splitting into microservices (e.g., separating inference from the API).
[ USER BROWSER ]
|
(HTTP/JSON)
|
+-------------v-------------+
| API GATEWAY | <-- FastAPI (main.py)
| (Request Validation) |
+-------------+-------------+
|
+----------------+----------------+
| |
+-------v-------+ +-------v-------+
| SERVICE: | | SERVICE: |
| Voice Cloning| | TTS Engine |
+-------+-------+ +-------+-------+
| |
(Speaker Encoder) (Flow Matching)
| |
v v
+-------------------------------------------------+
| ML INFERENCE MODEL | <-- PyTorch / OnnxRunTime
| (Optimized for CPU execution) |
+-------------------------------------------------+
The UI is built with Next.js 14 (App Router) and React Server Components.
The core intelligence runs on Python 3.10+ and PyTorch.