← Back to selected work

Project notes · Live

Ebook to Audio

The workflow extracts a book, detects its chapters, generates speech in different voices and languages, and prepares it for playback and download.

Role
Product, design, and engineering
Period
Current
Status
Live
Disciplines
Product, Audio systems, AI systems, Engineering

01 · Context

What prompted it

Turning a long document into useful audio is more than text-to-speech: book structure, processing reliability, chapter timing, playback, and temporary file storage all have to work together.

EPUB and PDF sources vary widely, while long-running conversions must survive partial failures and still produce an audiobook that is easy to navigate.

02 · Approach

How it works

Extract and normalize source text, detect chapter structure, then divide the work into processing jobs that can run in batches.

Generate audio through standard and premium pipelines, assemble the result, and audit chapter timing before playback.

Treat the player and chapter model as part of the conversion system, with book chat and privacy-focused retention built around the finished audiobook.

03 · Decisions

Choices along the way

01

Shipped

Process long books as queued jobs

Constraint
A full book exceeds the practical duration and payload of a single serverless request.
Choice
Split normalized text into batches and use a supervised worker queue for parallel processing and retries.
Result
Conversions can progress incrementally and recover at the job level instead of restarting the entire book.
02

Shipped

Make chapters part of the audio model

Constraint
A single audio file without reliable positions is difficult to navigate as a book.
Choice
Detect chapters, retain their metadata, and refine start times through SSML timepoints and audio auditing.
Result
The built-in player can expose chapter navigation alongside ordinary playback controls.
03

Shipped

Delete conversion files automatically

Constraint
Uploaded books and generated audio should not remain in storage indefinitely.
Choice
Apply a documented 30-day retention policy to source files, audiobooks, and conversion metadata.
Result
The live system has a defined, automated lifecycle for conversion data.

04 · Current version

Where it is now

  • A live EPUB and PDF conversion flow with automatic chapter detection and multiple languages and voices.
  • Standard and premium processing paths feed a built-in audiobook player with chapter navigation.
  • Completed books support playback, download, and AI chat about book content.
Visit Ebook to Audio

05 · Lessons

What I learned

  1. I learned that recovery and orchestration directly affect the experience of converting a long book.
  2. Reliable chapter navigation depends on preserving structure from extraction through final audio timing.
  3. A defined retention period makes it clearer what happens to uploaded books and generated audio.