SMERESKI
  1. PROJECTS
  2. RESUME
  3. BLOG
  4. CONTACT

PROJECT

2026 · 4.2k LOC

Suno Studio

An audio-generation pipeline: one call from any project turns a text prompt into a finished soundtrack.

PythonhttpxClickFastAPIPydanticPRIVATE

Suno Studio is the asset pipeline behind the audio in the games. It requests generation — instrumental tracks, menu loops, stingers, ambient beds — polls the render until it is ready, and pulls the finished audio down in MP3, WAV, or video.

The generation-and-download core is deliberately isolated from the interfaces around it, so the same code backs three front doors: a Rich-formatted CLI for batch and scripted use, a small local web UI for browsing and listening, and a callable engine that other tools invoke directly. That last door is the point — an app build can ask for a track in one line and get back a file path to drop into the project.

It is honest about failure: when generation does not complete, it passes the upstream message straight through instead of masking it, and Pydantic models keep the responses type-safe across the API's quirks. Around four thousand lines of Python on httpx, Click, and FastAPI.

Single-operator and local by design. It authenticates against an existing Suno session, which is the one moving part that needs the occasional refresh.