Skip to main content

CI Coverage

License

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

somnia_reader-0.7.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

somnia_reader-0.7-py3-none-any.whl (799.4 kB view details)

Uploaded Python 3

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

Hashes for somnia_reader-0.7.tar.gz
Algorithm Hash digest
SHA256 f298d273138b10dd4c426f21367f5668e8defc89d0e85156d4b7308df9ff5d04
MD5 44c4bc30eceb51465783a37c5a48e31a
BLAKE2b-256 f18ce9ec14015d97c2f3bb1a21994d67a25c1bab2b75289ca2894e32968da725

See more details on using hashes here.

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

Hashes for somnia_reader-0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 daf3d9d03ff16ca87a6dc6fd7b76045b715fae08f784b3ed7384b090c711a968
MD5 1e851aacc2175ca3ceee74b321626a93
BLAKE2b-256 07bb48b8c3b258555e0c85b17662e4c2ad980e6e394f3ad3004d013befbfd742

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.7 This release

2 files

0.6

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page