Skip to content
BT. Open to select work
← All case studies09 / 12 · Learning through audio

Learning through audio

WisdomBot

From a book in Telegram to a series of spoken lessons.

01 / LibraryReaders contribute booksA Telegram bot accepts, labels, stores, searches, and returns PDF or EPUB files.
02 / Editorial workerOne book becomes four momentsThe system prepares an introduction and three distinct lessons once per day.
03 / ChannelText and narrated audio arrive on scheduleEach lesson is adapted for listening, voiced, captioned, and published.

01 /
A book becomes a learning series

A useful reading community needs more than a pile of uploaded files. WisdomBot turns a shared Telegram book library into a daily learning rhythm: one introduction, three focused lessons, and narrated audio that can be consumed without opening the source document.

02 /
The workflow

Two long-running Python processes share the work. A file bot owns the upload, language, search, download, queue, and admin flows. A scheduled publishing worker selects the day’s book, asks the model to prepare the full four-part plan once, transforms each lesson into a spoken script, synthesizes it with Gemini TTS, and posts it at the configured Addis Ababa times.

01Ingest

Uploads are size-checked, deduplicated, filename-sanitized, tagged by language, and recorded in MongoDB.

02Prepare once

The first daily slot extracts the introduction and three non-repeating lessons; later slots reuse that stored plan.

03Adapt

Language-aware models shape source material into channel copy and conversational audio scripts before TTS.

04Deliver safely

MongoDB slot reservations prevent duplicate posts; storage and audio paths degrade to Telegram files or text-only output.

03 /
The product decision

A summary and a learning series are different products. The editorial plan requires the three lessons to cover distinct ideas, while the audio pass rewrites for listening rather than reading. Preparing once and publishing later also makes scheduled delivery independent of a live user session—and avoids paying to reread the full book four times.

The editorial rule

Do the deep reading once. Make every publishing moment feel intentional.

04 /
Designing for failure

A scheduled content system must survive unattended. Network, model, database, storage, and TTS calls use bounded retries. FTP failures can fall back to Telegram’s stored file ID; TTS failure can fall back to text; a book is skipped only after repeated failure; and an idempotent day-and-slot key prevents a restarted worker from publishing the same episode twice.

Cadence4 posts / dayOne introduction followed by three lessons.
Processes2 workersLibrary management and publishing remain separate.
FallbacksLayeredStorage, generation, audio, and delivery can fail independently.

05 /
Scope of this case study

The local repository contains the file-management bot, scheduled worker, model pipeline, TTS layer, durable runtime state, retry helpers, and storage adapter described here. It is evidence of the implemented automation; current deployment status and usage metrics are not claimed on this page.

Inspect the repository ↗Ask Brook about the pipeline ↗

Keep exploring

OneClick Summary

Next case study →Ask about this work ↗