Reverie is about to add a dream recorder: a nightly microphone feature that builds a timeline of your night — breathing, snoring, coughs, movement in the bedding, and the moments you talk in your sleep — so your dream journal can sit next to what your night actually sounded like.
A microphone in the bedroom is a serious privacy proposition. Sleep-talk is unfiltered speech. A partner’s voice, a phone call leaking through a wall, a late conversation — all of it lands on the microphone. So before we build this, we set ourselves one hard constraint, and this report is the public evidence of how we are meeting it:
Raw audio is never stored and never leaves your device. What is stored is a tiny, lossy, engineered summary — one that keeps the sleep-relevant events and is designed so that neither the words you said nor whose voice said them can be recovered from it.
Not “we promise not to look.” Not “encrypted on our servers.” The audio itself, the thing that could betray you, does not exist anywhere except a few seconds of memory on the phone you own. That claim has to survive contact with people actively trying to break it, and the rest of this report is about exactly that.

Executive summary
- What ships: a representation we call R — for each night, about 2 kB per minute (roughly 1 MB for an 8-hour night, about a thousand times smaller than the raw audio it replaces). It captures six sound-event classes (quiet breathing, snore, cough, bedding movement, speech present, other ambient) plus a breathing-rate estimate.
- What never exists: raw audio outside a ≤ 4-second ring buffer in RAM, on your device. Never on disk, never on the network. Verified by an instrumented test over ten nights.
- How we know it resists reconstruction: we run a five-attack adversarial suite — inversion, direct speech recognition, feature-domain recognition, speaker verification, and human listeners — against progressively stronger attackers, including ones that know our exact encoder and train 100 hours of paired data against it.
- The bars it must clear (worst attacker): attacker transcription error ≥ 90% (target), speaker-identification error ≥ 40%, human listeners recover ≤ 10% of words — while event detection stays within 3 points of a raw-audio baseline, on a battery budget of ≤ 3% per night.
- What we are not claiming: this is not anonymity and not a proof. It is an empirically bounded engineering claim. A “speech present” flag survives by design. Attackers beyond 100 hours of paired training data, cross-night linkage, and event-timing side channels are explicitly out of scope — and we say so rather than imply otherwise.
- What happens on failure: the feature doesn’t ship, and we publish the negative result anyway.
What the recorder keeps — and what it throws away
The dream recorder’s job is a night timeline, not a transcript. Six event classes and a breathing-rate estimate are what the product actually uses:
| Kept in R | Example | Used for |
|---|---|---|
| Quiet breathing | steady breath rhythm | breathing-rate trend across the night |
| Snore | loud, regular, low-frequency | night-sound timeline; wellness prompts |
| Cough | short, explosive events | “you coughed a lot before 3 a.m.” context |
| Bedding movement | duvet shifts, turning over | correlating movement with dream recall |
| Speech present | a binary flag, no words | marking sleep-talk episodes in your dream timeline |
| Other ambient | fan, traffic, pet | labelling the soundscape around events |
Everything else about the sound — the spectral detail that makes speech speech, the voice timbre that identifies you — is what the encoder is designed to destroy. That is the whole game: keep the event skeleton, discard the recoverable detail.
Where raw audio can exist — and where it cannot
Every privacy claim in this feature reduces to one boundary. Raw audio exists in exactly one place: a small ring buffer in your device’s memory, holding at most four seconds at a time while the on-device encoder consumes it. The encoder’s output — R — is the only thing that is ever written to storage or synced. The app and the device’s own process are trusted; everything beyond the device is not.
Two verification hooks make this boundary testable rather than aspirational:
- T1 — no raw audio on disk or network. An instrumented build runs ten real nights with file-system and network tracing. Any raw-audio byte that reaches persistent storage or a socket is a failure.
- T2 — one-command reproducibility. The full evaluation suite that produces the headline numbers in this report can be re-run end-to-end with a single command, so the results are checkable rather than narrated.
Storage is auditable by arithmetic: R is quantised to at most 2 kB per minute — under 1 MB for an 8-hour night, next to roughly 920 MB for 16 kHz 16-bit mono PCM. There is no place for raw audio to hide in a file that small.
Why the obvious designs fail
“Listen but don’t keep the audio” has no off-the-shelf answer, because every conventional representation of sound is either too informative or too destroyed. Five well-known failure modes shaped our design:
| Approach | What it promises | Where it breaks |
|---|---|---|
| Standard features (log-mel, MFCC) | compact, well-understood | neural vocoders reconstruct intelligible audio from them — this is routine practice [HiFi-GAN, Kong 2020] |
| Voice anonymisation | “de-identify” the speaker | preserves linguistic content; challenges show identity still leaks and intelligibility degrades [VoicePrivacy, 2022] |
| Very coarse envelopes (3–4 bands) | too little detail for speech | human listeners still recognise ~high proportions of words — temporal cues alone carry speech [Shannon 1995] |
| Voice-activity gating (keep non-speech only) | cut speech out | misses whispered sleep-talk, which looks like breath; a missed gate leaks full audio |
| Local noise injection (LDP-style) | formal privacy budget | at noise levels that protect speech, it destroys the event signal too — or it is denoisable |
Two more lessons come from adversarial machine learning itself. Adversarial training [Ganin 2016] only demonstrates robustness against the specific proxy attacker used in training — which is why our evaluation uses fresh attackers trained after the representation is frozen. And the information-bottleneck framing [Tishby 1999] tells us privacy and utility pull against each other by construction; the honest question is where on that frontier a sleep-event representation can live, not whether the frontier exists.
The representation families we are testing
We are evaluating five encoder families, from classical signal processing to learned bottlenecks. All operate far below speech’s information rate — coarse time, coarse frequency, few bits:
| Family | Idea | Why it might work | Where it could fail |
|---|---|---|---|
| F1 — slow envelopes | 8–32 critical-band energy envelopes, low-passed below 2 Hz, 4 frames/s | speech needs modulation detail up to ~16 Hz; breathing and bedding events live below 2 Hz [Drullman 1994, Elliott & Theunissen 2009] | whispered sleep-talk has breath-like modulation; a smart attacker may exploit what survives |
| F2 — modulation split | keep sub-2 Hz modulations, hard-attenuate the 4–8 Hz speech band | targets the known intelligibility band directly | the split is a fixed, public filter — an attacker knows exactly what was removed |
| F3 — event posteriors only | store only probabilities of the six event classes (+ energy) | nothing left to invert: privacy upper bound | utility floor — loses breathing-rate detail and event richness |
| F4 — learned bottleneck | 8–32 numbers at 2 Hz, trained with speech and speaker adversaries in the loop [Ganin 2016, Tishby 1999]; ≤ 200k parameters, int8 | learns the privacy-utility frontier instead of guessing it | measured robustness may not transfer to unseen attackers (see U2) |
| F5 — gated hybrid | high-recall speech detector; during speech, emit a constant token, elsewhere pass F1-style envelopes | containment: if speech is detected, nothing speech-specific is emitted | a missed whisper is a full leak; detector recall on sleep-talk is the whole ballgame |
The search grid around these families: 1–8 frames per second, 8–32 frequency bands, 4–8 bits per value. The final shipped encoder is whatever clears every bar in this report at the best utility — and the encoder’s weights ship inside the public app binary, so every assumption we make is one an attacker can also make.
Who we assume is attacking — and how hard they try
A privacy claim is only as strong as the attacker it names. We model four attacker classes, each strictly stronger than the last, and we publish what each is allowed to know and spend:
- A0 — Ignorant. Runs off-the-shelf speech recognition (Whisper-class) and speaker verification (ECAPA-TDNN-class) directly on R, no training. This is the “someone finds your synced file” scenario.
- A1 — Informed. Has our full public encoder, plus 20 hours of paired data (real speech and its R representation), and 20 GPU-hours. Trains an inversion vocoder (HiFi-GAN-class) to turn R back into audio, then runs ASR on the result.
- A2 — Adaptive. 100 hours of paired data and 100 GPU-hours. Skips audio reconstruction entirely and trains speech-recognition and speaker models directly on R — the strongest realistic attack on the representation itself.
- A3 — Targeted. A2 plus one minute of the target’s real voice for enrolment — the “someone specifically wants to identify you” scenario.
Out of scope, stated plainly: attackers with more than 100 hours of paired data; attempts to link one person’s nights to each other across time (cross-night linkage); and side channels from the timing of events (when you fell asleep, how often you turned over). These are real risks; we bound the claim rather than pretend the bound away. We report the 20 → 100-hour attacker-scaling result as a slope so you can see which way more attacker effort pushes the numbers.
How we try to break our own design
The evaluation suite is adversarial and pre-registered — the attackers are described and frozen before the final representation is measured, so the result cannot be tailored to a convenient attacker.
- Inversion + ASR (against A1). The attacker trains a neural vocoder on paired data to synthesise audio from R, then transcribes it. Metric: word error rate (WER) — higher is better for privacy. Calibration gate: the vocoder must first prove itself on standard features (log-mel) of the same benchmark set, reaching ≤ 15% WER there, before its results on R count. An attack that fails on easy input has proven nothing about hard input.
- Feature-domain ASR (against A2). Train a recogniser directly on R, skipping audio entirely — the strongest content attack.
- Speaker verification (against A2/A3). ECAPA-TDNN-class models try to link R to a voice, with and without a one-minute raw enrolment sample. Metric: equal error rate (EER) — 50% is a coin flip, which is the target.
- Attribute inference. Inferring coarse attributes (e.g., gender) from R. We measure and report it; it is not a release gate — a disclosure, not a promise.
- Human listening. At least five listeners, 100 sentences each, attempt to transcribe audio reconstructed from R. Target: ≤ 10% word accuracy.
Protocol details that make the numbers mean something:
- Held-out speakers. No voice appears in both attacker training and evaluation.
- Fresh attackers. The representation is frozen before the final attackers train, and the attack harness is frozen with it.
- Worst-of-three seeds. We report the best result the attacker achieved across three independent training runs, not the average.
- External red team. Researchers outside the project run the harness before results are final.
- Real-device audio paths. Attacks and events are tested across three distinct microphone signal paths (B8), because phone audio pipelines (automatic gain control, noise suppression, band-limiting) change what R sees.
The bars R must clear before release
These are the ship gates, fixed in advance. Every one of them applies to the worst attacker (A3) unless noted:
| Bar | Question it answers | Ship bar | Stretch | How it is measured |
|---|---|---|---|---|
| B1 | Does R still detect sleep events? | event macro-F1 within 3 pts of the raw log-mel baseline | within 1.5 pts | labelled event corpus, baseline trained on raw audio |
| B3 | Can an informed attacker transcribe R (20 h)? | WER ≥ 90% | ≥ 95% | inversion vocoder + ASR, calibration-gated |
| B4 | Does 5× more attacker data break it (100 h)? | WER ≥ 85%, and ≤ 5-pt drop from 20→100 h | — | A2 feature-domain ASR at 20 and 100 h |
| B5 | Can humans read reconstructed audio? | ≤ 10% word accuracy | — | ≥ 5 listeners × 100 sentences |
| B6 | Can an attacker identify the speaker? | EER ≥ 40% | ≥ 45% | ECAPA-class verification, incl. 1-min enrolment |
| B7 | Does it hold on sleep-talk specifically? | same WER/EER bars in the sleep-talk regime | — | whispered/murmured speech corpus + synthetic sleep-talk |
| B9 | Is it actually runnable on-device? | ≤ 3% battery per 8-h night, ≤ 5% of one big core, ≤ 50 MB peak memory | ≤ 2% battery | real phones, full night |
| B10 | How much is stored? | ≤ 2 kB/min (≈ 1 MB/night) | — | output audit |
| B11 | Is the shipped encoder the tested one? | on-device R within 1 quantiser step of the research pipeline over 10k frames | — | fixed-point parity harness |
| T1 | Does any raw audio escape? | zero raw-audio bytes to disk/network over 10 real nights | — | instrumented build, fs + network tracing |
| T2 | Can you check our work? | one command reproduces the headline table | — | frozen evaluation harness |
Two design properties sit behind the bars. On-device parity (B11): the arithmetic the shipped encoder does in fixed-point on a phone must match the research pipeline that was attacked, within one quantiser step — otherwise the tested object and the shipped object are different objects. And reproducibility (T2): the harness, the frozen attackers, and the metrics are a self-contained package, so the table above can be regenerated, not just believed.
The trade-off we will not hide
Privacy and utility are in tension by construction [Tishby 1999]. A representation that keeps everything is raw audio. A representation that keeps nothing is privacy-perfect and useless. The design question is where the sleep-event frontier lies, and the evaluation maps it rather than asserts it:
What we know going in, from four standing uncertainties:
- U1 — Separability. Speech intelligibility lives in modulations up to ~16 Hz; breathing events live below ~2 Hz. That gap is the entire premise of families F1/F2 — but whispered sleep-talk modulates slowly, resembling breath. If sleep-talk is not separable at our frame rates, the honest outcomes are the F5 gate or the F3 floor.
- U2 — Adaptive robustness. A bottleneck trained against our training-time adversaries may not survive adversaries trained after the freeze. This is why fresh attackers, external red-teaming, and the worst-of-three rule exist.
- U3 — Sleep-talk transfer. There is no large public corpus of real sleep-talk. We build one from degraded and whispered speech, validated against a smaller set of real murmured episodes, and we treat the transfer as a risk to be measured, not assumed.
- U4 — Device audio paths. Phones apply gain control, noise suppression, and band-limiting before our encoder ever sees a sample. A representation that is private on clean audio but leaks on processed audio is not private; hence three real microphone paths in every test.
Data, consent, and what we refuse to collect
The evaluation runs on public corpora — LibriSpeech (read speech), FSD50K and ESC-50 (environmental sound events) — plus whispered speech, and synthetic sleep-talk constructed from degraded speech corpora. The real-night corpus is collected under written consent: at least 30 nights across at least 3 phone models, with around 300 labelled events per class, from adults who volunteered with full knowledge of the research purpose.
Rules that are not negotiable: no recordings of children; no recordings where bystanders can be captured without consent (the data-collection protocol excludes shared rooms); no claims of “anonymity” in any output of this project; and the trained attack tools themselves are kept private — publishing turnkey inversion kits would harm the people this design protects, and security researchers can request access through our responsible-disclosure programme.
Reverie remains a wellness product. A snore timeline is not an apnea test, and this report changes nothing about the advice on every page of our Science Center: persistent sleep problems belong with a clinician.
Timeline and how this report will change
The programme runs six phases over 22 weeks — data and baselines, family screening, adversarial hardening, real-device evaluation, the frozen final attack, and the written results. When the final numbers exist, this report gains a results section with the measured value for every bar in the table above, and one of three verdicts: pass (the feature ships with the numbers attached), conditional pass (a weaker configuration ships, with the weaker numbers attached), or fail (the feature does not ship, and the negative result is published here all the same).
If you want the shortest possible version of this whole report: the microphone’s memory is four seconds long, the night’s file is one megabyte small, and before we let a single sentence survive that gauntlet, we will pay people to try to extract it.
What this report deliberately does not claim
- It is not a proof. It is a bounded, adversarial, reproducible measurement against named attackers with capped budgets.
- It is not anonymity. Timing, event patterns, and a speech-presence flag survive in R by design.
- It does not cover attackers beyond 100 hours of paired data, cross-night linkage, or event-timing side channels.
- It does not turn Reverie into a medical device or the event timeline into a diagnosis.
- And it is not finished: the numbers above are thresholds; the measurements are coming, and a failure will be printed as loudly as a success.
Primary sources
- Shannon RV, Zeng FG, Kamath V, Wygonski J, Ekelid M (1995). Speech recognition with primarily temporal cues Science, 270(5234), 303-304. doi:10.1126/science.270.5234.303 PMID 7569981
- Drullman R, Festen JM, Plomp R (1994). Effect of temporal envelope smearing on speech reception The Journal of the Acoustical Society of America, 95(2), 1053-1064. doi:10.1121/1.408467
- Elliott TM, Theunissen FE (2009). The modulation transfer function for speech intelligibility PLoS Computational Biology, 5(3), e1000302. doi:10.1371/journal.pcbi.1000302
- Kong J, Kim J, Bae J (2020). HiFi-GAN: Generative adversarial networks for efficient and high fidelity speech synthesis Advances in Neural Information Processing Systems 33 (NeurIPS 2020), 17022-17033. Source
- Tomashenko N, Wang X, Vincent E, et al. (2022). The VoicePrivacy 2020 Challenge: Results and findings Computer Speech & Language, 74, 101319. doi:10.1016/j.csl.2021.101319
- Desplanques B, Thienpondt J, Demuynck K (2020). ECAPA-TDNN: Emphasized channel attention, propagation and aggregation in TDNN based speaker verification Proceedings of INTERSPEECH 2020, 3830-3834. doi:10.21437/Interspeech.2020-2850
- Radford A, Kim JW, Xu T, Brockman G, McLeavey C, Sutskever I (2023). Robust speech recognition via large-scale weak supervision Proceedings of the 40th International Conference on Machine Learning (ICML), PMLR 202, 28492-28518. Source
- Panayotov V, Chen G, Povey D, Khudanpur S (2015). LibriSpeech: An ASR corpus based on public domain audio books IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), 5205-5209. doi:10.1109/ICASSP.2015.7178964
- Fonseca E, Favory X, Pons J, Font F, Bogdanov D, et al. (2022). FSD50K: An open dataset of human-labeled sound events IEEE/ACM Transactions on Audio, Speech, and Language Processing, 30, 829-852. Source
- Piczak KJ (2015). ESC: Dataset for environmental sound classification Proceedings of the 23rd ACM International Conference on Multimedia, 1015-1018. doi:10.1145/2806216.2806470
- Ganin Y, Ustinova E, Ajakan H, et al. (2016). Domain-adversarial training of neural networks Journal of Machine Learning Research, 17(59), 1-35.
- Tishby N, Pereira FC, Bialek W (1999). The information bottleneck method Proceedings of the 37th Allerton Conference on Communication, Control, and Computing, 368-377. Source
Questions we hear
Can anyone reconstruct what I said in my sleep from what Reverie stores?
Is this 'anonymous' audio?
What if an attacker uses far more than 100 hours of training data?
Does the microphone stream audio to your servers while I sleep?
Why keep a 'speech present' flag if you discard speech content?
What happens if the design fails one of the bars?
Can the dream recorder diagnose sleep apnea or other conditions?
How we use this evidence
Mindful Slumber is a commercial meditation and dream-yoga app. We use the studies above to decide what we do not claim, as much as what we do. Guided mindfulness, dream journaling, and lucid-dreaming skills are wellness practices. They are not a substitute for cognitive behavioral therapy for insomnia (CBT-I), imagery rehearsal therapy, or other clinician-directed care.
See our editorial standards for how briefs are selected, graded, and updated.