PROJECT 11 / AUTOMATION / 2026

Home Tunes.

Alexa and Discord playback for a Navidrome library.

Architecture sketch / Two integrations for a private music library
01 / THE PROBLEM

Problem.

A self-hosted music collection was available in a browser, but reaching it from a voice assistant or a Discord call required a different interface—and a careful way to expose audio.

02 / THE APPROACH

Implementation.

  1. 01

    Built a self-hosted Alexa Custom Skill in Go, validating signed requests and maintaining durable queues by user and device.

  2. 02

    Used expiring, signed stream URLs to proxy audio from the private library. Kept byte-range requests and streaming behavior intact.

  3. 03

    Built a separate Discord bridge with a native Now Playing controller, search selection, pause, skip, shuffle, loop, and exact queue-item removal.

  4. 04

    Serialized queue mutations, checked controls against the configured owner or moderator role, and added idle and empty-channel timeouts.

Alexa / Discord
Playback gateway
Private music library
03 / THE RESULT

Result.

Verified the Alexa path on a physical Echo, including signed audio delivery and playback callbacks. Deployed the Discord bridge with working controller buttons, persistent queue settings, and clean startup checks.

VERIFICATION

Go tests, race checks, static analysis, Node tests, signed-stream verification, Discord controller inspection, and reported physical Echo playback. Private source.

04 / THE TAKEAWAY

What I learned.

Protocol correctness matters at the edges. A transcoder’s estimated content length broke otherwise valid audio streaming; invocation routing also needed physical-device tests. The Alexa implementation targets the original Alexa experience, with Alexa+ compatibility limitations documented.

Questions about this project?

Email Binh ↗
NEXT PROJECT

ULTINT