Semantic Drift Media Engine (SDME)
Keywords: FastAPI, Celery, Redis, Whisper, Docker, Gemini API
Overview
The Semantic Drift Media Engine (SDME) is a production-ready asynchronous media processing backend designed to handle audio/video ingestion, speech transcription, and contextual synthesis.
Key Architecture & Decisions
- Microservices with FastAPI & Next.js: Decoupled client interactions from heavy CPU/GPU processing pipelines.
- Distributed Queue with Celery & Redis: Long-running transcription and analysis tasks are offloaded asynchronously, keeping web API response latencies minimal.
- Local Whisper Optimization: Implemented lazy-loading and quantization strategies to run speech-to-text transcription within strict 512MB RAM constraints.
- LLM Synthesis & BYOK Security: Automated topic extraction and academic reference indexing via Google Gemini API with a Bring Your Own Key (BYOK) paradigm.
- Container Orchestration: Deployed using Docker Compose with isolated networks and health-checked workers.