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.6.tar.gz (1.0 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.6-py3-none-any.whl (371.0 kB view details)

Uploaded Python 3

File details

Details for the file somnia_reader-0.6.tar.gz.

File metadata

  • Download URL: somnia_reader-0.6.tar.gz
  • Upload date:
  • Size: 1.0 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.6.tar.gz
Algorithm Hash digest
SHA256 c410f5312be9d958925f4bb39f2dd54babc873540bb4ead45f323ab076d7e325
MD5 ca9f254e9258fe037cd77816e336ad23
BLAKE2b-256 5d9ad1ef9ce2c7138491cf11f082efd08093e8d22959794300658c144986bb40

See more details on using hashes here.

File details

Details for the file somnia_reader-0.6-py3-none-any.whl.

File metadata

  • Download URL: somnia_reader-0.6-py3-none-any.whl
  • Upload date:
  • Size: 371.0 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 0dd3c35663fc245d3c0e4f06eb43eed777cd6a366be2a57eb5fed6c51afd3782
MD5 6e0b910a81e8d16ee1c1e43e7ecb12fa
BLAKE2b-256 fb553c0d9dda03cf067df9ad2b55112b90d627de0726286b71f72f8b2c0fc936

See more details on using hashes here.

Release history Release notifications | RSS feed

0.7

2 files

This release

0.6 This release

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