- Create lightsync/api/audio.py with POST /load and GET /state endpoints - Validate file existence and extension (.mp3/.wav/.flac/.ogg) - Use asyncio.to_thread for engine.load to avoid blocking event loop - Return 404/400/503 on error conditions - Register audio router at /api/audio prefix in main.py - AUD-02 (YouTube) noted as Phase 6 deferral
2.1 KiB
2.1 KiB