2 Commits
Author SHA1 Message Date
gabby 530e9968a4 gutendex: read a book aloud over a voice front end
read_book now checks the local library first: a book already saved (matched by
Project Gutenberg id, or by the name in the request) is read from disk with no
network at all, and a book resolved from the catalog is reused from disk rather
than re-downloaded.

When the request arrives from a front end that can stream a read-aloud (the
local voice gateway, or an LXMF/Sideband voice chat), the saved text is handed
to the scheduler's speech channel (ctx.speech) instead of being summarised: the
gateway streams it through Piper a chunk at a time until the user stops it, and
the position is kept in a bookmarks.json beside the saved books so a later
request resumes where the listener stopped. A text front end keeps the
saved-file summary, and the skill reports honestly when a book has no plain
text to read.

The skill asks ctx.speech.supports(source) on both the saved-library and the
fresh-download paths; the manifest/README describe the read-aloud and the
library-first behaviour.
2026-10-17 23:29:50 +00:00
agent 9a41f66fd6 gutendex: add Project Gutenberg pack (find books, read full text) 2026-10-13 17:27:04 +00:00