Snortle
A snore and sleep tracker for Android. It is an attempt to replace SnoreLab with something that is less bloated and not tied to a private service.






Why
SnoreLab is closed source, heavy with features and accounts, and keeps its data in a service I do not control. I wanted the useful part, a score for the night and a few clips to listen to, in an app that works on its own and keeps recordings on the phone.
What it does
- Tonight: one button starts recording. The microphone is analysed each second and the audio is thrown away. Only per-minute totals are kept, plus a few short clips of the loudest snoring.
- Snore score and time snoring: a second counts when it is well above the room's noise and low in pitch, and an on-device sound classifier confirms it is snoring rather than speech, a television or a thump.
- Breathing and pauses: an approximate breath rate, and a note when snoring stops for a while and then restarts. It is not a medical device and does not detect apnea.
- Sleep and wake: estimated from the phone's movement and screen.
- Smart alarm: wakes me at the first stir inside a window I set, never before a minimum rest and always by the latest time.
- Sleep sounds: plays any audio file I put in a folder, with a timer and a fade-out.
- History: trends over 7, 14 or 30 nights and a page per night with charts on a clock axis.
- Sonar mode is an experiment, off by default, that listens for chest movement using an inaudible tone. It is not validated.
Under the hood
- Native Kotlin and Jetpack Compose, with a microphone foreground service and the data in a local database. It works with no network.
- Detection is layered: an adaptive threshold finds candidates, the YAMNet classifier runs only on those seconds, and a smoother removes lone seconds and fills gaps between breaths.
- An optional archive on a small Worker can keep clips and nights from the phone. Clips are removed from the phone after a week once uploaded.
A personal app for my own phone. Screenshots are from a debug build on an emulator with invented nights. Not a medical device.