Sleep tracking for Swift apps, using the phone's microphone overnight. It's what Parley's sleep tracking runs on.
The goal
Wake up in light sleep, close to when you want to get up, without a second of your night leaving the phone.
Wake window, 6:30 to 7Woken here, in light sleepThe real alarm, always set
An example night, drawn to show the idea. Not real data.
How a night works
ListensThe phone's microphone, by the bed, all night.
MeasuresEvery 30 seconds becomes a few numbers, like how loud and how busy the sound was.
ForgetsThe sound itself is thrown away. Only the numbers are kept, on the phone.
WakesA model reads the numbers and picks a light moment in your window. The real alarm stays set.
Where it fits
Phone sleep tracking that listens is out there, but in closed apps and paid SDKs. Remnant is the open version any Swift app can use.
Paid sleep SDKs
Remnant
Price
A licence deal
Free, Apache 2.0
Sign-up
An API key
None
The code
Closed
Open
The model
Theirs
Bring or train your own
Your night
Depends on the deal
Never leaves the phone
Where it's up to
Works now
Listening overnight, with interruptions shown
30-second measurements, audio thrown away
Wake plans with real alarms set up front
Importing and running a model on the phone
Keeping and exporting each night
Not yet
A trained sleep-stage model
Proof it matches a sleep lab
Moving your alarm earlier
Sound level alone isn't a sleep stage. A model has to be tested and approved before it's allowed to wake you early, so for now it doesn't move your alarm.