Skip to content

Whisperbook

An offline-first Android app that turns local EPUB and PDF books into synchronized, multi-voice audiobooks without an account, cloud upload or runtime network access.

Role
Chakib designed and built the Android product end to end: document import and extraction, chapter preparation, explainable speaker attribution, local voice casting, progressive Supertonic 3 synthesis, Media3 playback, synchronized reading and offline MP3 export.
Current status
The public v0.1 APK is a debug-signed test build for Android 8+ on arm64. The implementation described here includes later source changes; consult the release notes for the exact downloadable feature set.
01

Context and problem

Turning a book into a listenable audiobook usually means uploading private reading material, waiting for the whole book to render, and losing control over voices, chapters and corrections. Whisperbook keeps import, attribution, synthesis, playback and export on the device.

02

Ownership and contribution

Chakib designed and built the Android product end to end: document import and extraction, chapter preparation, explainable speaker attribution, local voice casting, progressive Supertonic 3 synthesis, Media3 playback, synchronized reading and offline MP3 export.

Responsibilities

  • Built the Kotlin/Compose product surfaces and Woodland Paper Theatre design system.
  • Implemented local EPUB/PDF extraction, bundled OCR fallback and durable per-book state.
  • Integrated Supertonic 3 through sherpa-onnx with local voice previews and per-book or per-chapter casts.
  • Built progressive chapter preparation, Media3 playback, read-along checkpoints and chapter continuation.
  • Added cancellable offline MP3 export that reuses finalized narration and generates only missing audio.
03

Architecture and data flow

A single-module Kotlin/Compose app copies the selected publication into private storage, extracts EPUB or PDF text, detects chapters and speakers, persists the library in Room, and prepares opening audio through WorkManager. Supertonic 3 generates finalized local WAV segments that Media3 can play progressively while later chapters continue preparing.

  1. Local EPUB or PDF
  2. Private extraction and chapter detection
  3. Speaker attribution and voice cast
  4. Progressive Supertonic 3 synthesis
  5. Media3 playback and synchronized passages
  6. Offline book-level MP3 export

Inside Whisperbook

Four steps from a book to its audio.

  1. Book You import your own EPUB or PDF on the phone. Privacy holds at the system boundary: the app has no runtime network permission.
  2. Chapters Chapters and their speakers are found in the text. Audio is prepared in small segments, so the opening chapter plays while later ones are still being narrated.
  3. Voices Each speaker is given a different local voice, so a conversation reads as a cast. Narration runs on the device.
  4. Audio Playback follows the text as it plays, and the finished book can be exported as an MP3.

Listen to an excerpt

A browser illustration using your device’s voices. It is not the Android app’s narration engine.

  1. Narrator Alice was beginning to get very tired of sitting by her sister on the bank, and of having nothing to do.
  2. Alice And what is the use of a book, without pictures or conversations?

Listening needs JavaScript and a voice on this device.

Hear an excerpt in your browser’s local voice. Whisperbook uses its own on-device narration on Android.

04

Engineering decisions

Remove runtime networking entirely.

The Android manifest has no INTERNET or ACCESS_NETWORK_STATE permission, so imported books, generated audio and listening history stay inside the device boundary.Alternative not selected: Requiring a hosted model, account or cloud fallback for core narration.

Stream finalized local segments instead of waiting for the whole book.

The opening chapter becomes listenable first while later chapters are prepared sequentially, without sacrificing cache, seek or restart behavior.Alternative not selected: Blocking playback until every chapter has been synthesized.

05

Reliability, security and evaluation

  • Room, DataStore and WorkManager persist library, settings and preparation checkpoints across restarts.
  • Finalized WAV microsegments remain the common cache, playback and export representation.
  • JVM and connected Android tests cover import, synthesis, playback, navigation, voice selection and chapter continuation on the production Compose surfaces.
06

Outcome and status

The public v0.1 APK is a debug-signed test build for Android 8+ on arm64. The implementation described here includes later source changes; consult the release notes for the exact downloadable feature set.

Technology groups

Android

Kotlin, Jetpack Compose, Room, DataStore, WorkManager

Audio

Supertonic 3, sherpa-onnx, Media3, AudioTrack, FFmpegKit

Documents

EPUB, PDF, ML Kit OCR, Storage Access Framework

07

Proof and source material