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.
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.
View full sizeNow Playing keeps the active speaker, chapter controls and offline state visible on the production Compose surface.
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.
Local EPUB or PDF
Private extraction and chapter detection
Speaker attribution and voice cast
Progressive Supertonic 3 synthesis
Media3 playback and synchronized passages
Offline book-level MP3 export
Inside Whisperbook
Four steps from a book to its audio.
BookYou import your own EPUB or PDF on the phone. Privacy holds at the system boundary: the app has no runtime network permission.
ChaptersChapters 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.
VoicesEach speaker is given a different local voice, so a conversation reads as a cast. Narration runs on the device.
AudioPlayback 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.
NarratorAlice was beginning to get very tired of sitting by her sister on the bank, and of having nothing to do.
AliceAnd 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.
View full sizeRead Along follows the active passage and keeps manual speaker correction available.View full sizeVoice Cast manages per-book language and previewable local voices without leaving the device.View full sizeThe Library restores each book's own listening position and preparation state.