Skip to content

40% off my fees until 31 Jan 2027Terms

Alexa skills

Generative audio Alexa skill with gapless playback

Endless Tales is my Alexa skill that writes a story with AI, turns it into speech and streams it with no gaps. A listener who pauses today can resume tomorrow from the same second.

My own open-source project

The problem

Most Alexa audio skills play a fixed list of recordings. I wanted to solve two things Alexa audio developers often get stuck on: continuous playback with no gaps, and audio that is created while it plays.

Skills that use Alexa’s AudioPlayer also face extra certification checks, so every playback command and event had to be handled correctly.

The solution

Each part of the story plays while the next part is written and turned into speech in the background, then starts the moment the current one ends.

The story text comes from a built-in generator or from Claude through Amazon Bedrock. Amazon Polly turns it into speech, Amazon S3 hosts the audio and DynamoDB remembers where each listener is up to.

Listeners can change the tone by voice, for example “make it spooky”, and on an Echo Show the words scroll along on screen.

It runs at three levels: a static playlist with no AWS at all, speech generated with Amazon Polly, and stories written with Amazon Bedrock.

The result

Playback runs continuously with no gaps, and listeners resume from the exact second they stopped.

A pre-submission checklist maps each of Amazon’s AudioPlayer certification requirements to the code that handles it.

The code is open source, with a design document and a step-by-step tutorial for other developers.

Built with

  • Alexa Skills Kit
  • AudioPlayer
  • APL
  • Node.js
  • AWS Lambda
  • Amazon Bedrock (Claude)
  • Amazon Polly
  • Amazon S3
  • Amazon DynamoDB
  • AWS SAM

Start the year with 40% off.

The offer ends 31 January. It takes about a minute, and the quote is free.