somnia
Bedtime audiobook reader with semantic seek: TTS-rendered public-domain books plus a conversational agent that finds your place again
You fall asleep to an audiobook, wake at 2am somewhere unfamiliar, and have no idea how far back the last thing you remember was. somnia renders Project Gutenberg books to audio itself — which means it knows exactly which span of audio every sentence occupies — and puts a conversation in front of that index. Say "go back to where the horse gets hurt", half asleep and in the dark, and the book goes there and plays from there. Nothing to press afterwards.
It will not tell you anything from a part of the book you have not heard yet. That bound is measured from audio that really came out of the speaker, so being carried forward does not unlock the ending.
somnia add 271 # render + index a Gutenberg book
somnia find 271 "the horse is beaten in the street"
somnia serve # the page that plays it, and the agent
The page is the player: an installable PWA served over your tailnet, with a sleep timer, lock-screen controls and a rewind sized by how long the sound was off. There is no login — reachability is the authentication.
| What | Where |
|---|---|
| Source | https://github.com/gilesknap/somnia |
| PyPI | pip install somnia-reader — not somnia, which is somebody else's |
| Docker | docker run ghcr.io/gilesknap/somnia:latest |
| Documentation | https://gilesknap.github.io/somnia |
| Releases | https://github.com/gilesknap/somnia/releases |
See https://gilesknap.github.io/somnia for more detailed documentation.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file somnia_reader-0.7.tar.gz.
File metadata
- Download URL: somnia_reader-0.7.tar.gz
- Upload date:
- Size: 1.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f298d273138b10dd4c426f21367f5668e8defc89d0e85156d4b7308df9ff5d04
|
|
| MD5 |
44c4bc30eceb51465783a37c5a48e31a
|
|
| BLAKE2b-256 |
f18ce9ec14015d97c2f3bb1a21994d67a25c1bab2b75289ca2894e32968da725
|
File details
Details for the file somnia_reader-0.7-py3-none-any.whl.
File metadata
- Download URL: somnia_reader-0.7-py3-none-any.whl
- Upload date:
- Size: 799.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
daf3d9d03ff16ca87a6dc6fd7b76045b715fae08f784b3ed7384b090c711a968
|
|
| MD5 |
1e851aacc2175ca3ceee74b321626a93
|
|
| BLAKE2b-256 |
07bb48b8c3b258555e0c85b17662e4c2ad980e6e394f3ad3004d013befbfd742
|