Alexa and Echo
How voice requests, remote commands, streaming, and track transitions work on Echo.
Connect Amazon and enable the private skill
The connected Amazon session lets the web or Android player discover available Echo devices and send controls. The private Alexa skill handles the Music Box invocation, translates requests into AudioPlayer directives, and tells the backend what the Echo played. Configure the skill with the account's issued Alexa token and the public Music Box HTTPS URL. See private skill setup.
| If you want to | Use |
|---|---|
| Start a song from your Echo | “Alexa, ask music box to play” followed by a song name |
| Send playback to an Echo from the web or phone | Select the Echo as the active output in the device picker |
| Return audio to the web player | Select This browser and resume on that output |
| Diagnose a connected Echo that stays silent | Check remote session, skill access, and public HTTPS reachability |
From a request to audio
A voice request enters the skill through the Alexa interaction model. For a remote play or seek, the backend prepares the requested track and offset, then triggers the skill through the connected Amazon session. The skill reads the prepared playback request and returns an AudioPlayer directive that points the Echo at the Music Box audio relay.
The Echo fetches audio over HTTPS. Backend acceptance, successful skill dispatch, and playback confirmation are separate events. The Music Box player uses confirmed device state to settle the current track and progress.
Track transitions and queue edits
The skill asks the backend for a successor when Alexa signals that playback is nearly finished. The backend chooses it from the current queue, taking repeat settings and the active output into account. Before enqueuing, the skill rechecks whether the decision is still current. Queue edits can replace an already buffered successor. If an older entry starts despite an edit, recovery rechecks the current queue before applying a correction.
Playback events carry stream identity and timing. Delayed callbacks from an older stream cannot update newer playback. Near the end of a song, the backend can recover a missed transition after a short grace period. New user input, pause, or selecting another output cancels obsolete recovery.
Seeking and a disconnected Amazon session
A seek during Echo playback requests audio at an offset and can buffer again. A paused seek updates the resume position. If the Amazon session disconnects, voice-started playback can still appear as read-only when skill reports are available. Reconnect Amazon to restore remote controls.