Headless audio delivery for voice assistants

InstaCDN

Converts origin audio with FFmpeg, stores the result on S3, and serves assistant-ready files through CloudFront without asking clients to wait.

Input Origin URL
Transform FFmpeg profile
Cache S3 plus CloudFront
Output Alexa, Google, Bixby

Signal path

Origin audio becomes voice-assistant audio in one request.

InstaCDN keeps the public surface small and lets configuration decide the conversion profile, target format, preload behavior, and timeout response.

01

Match

Configured URL prefixes map the incoming CDN path to an owned origin.

02

Convert

FFmpeg renders the requested quality profile, including silence trimming when enabled.

03

Store

The cache key combines origin, file path, and quality so profile changes stay isolated.

04

Ship

CloudFront serves the final audio with cache headers that fit each configured source.

Cache behavior

Fast paths stay fast. Slow paths are contained.

Existing S3 objects return immediately. Misses generate once, lock concurrent Alexa work, and can answer with the preload notification while conversion continues.

Cache hit Serve binary response
Cache miss Download, convert, upload
Alexa timeout Send ups, finish later
Preload Queue all marked profiles

Public contract

One productive endpoint, no dashboard required.

The service remains machine-driven: clients call the CDN path, operators watch the queue dashboard, and quality profiles live in Laravel config.

GET /cdn/{origin-url}?quality=alexa&preload=true

Operations

Built for the parts that usually fail quietly.

  • Queue monitoring with retry control
  • Scheduled generation-lock reset
  • Temporary FFmpeg file cleanup
  • CloudFront invalidation hooks