Safe listening for kids. Peace of mind for parents.
Built at HoyaHacks 2026
Children are increasingly exposed to unsafe sound levels through headphones, leading to irreversible hearing damage. The WHO estimates that over 1 billion young people are at risk of hearing loss due to unsafe listening practices. Parents have no easy way to monitor and protect their children's hearing health.
bloop is a privacy-first iOS app that tracks headphone sound exposure using Apple HealthKit data and provides intelligent, personalized recommendations to help families maintain safe listening habits.
- Real-time Sound Dose Tracking - Visual ring shows daily exposure as a percentage of safe limits
- AI-Powered Recommendations - Gemini-powered agentic AI analyzes listening patterns and provides personalized suggestions
- Smart Notifications - Proactive alerts at 50%, 80%, and 100% thresholds before damage occurs
- Home Screen Widgets - Glanceable dose status without opening the app
- Live Activities & Dynamic Island - Real-time exposure during active listening sessions
- 7-day & 30-day Trends - Track patterns and progress over time
We believe protecting hearing shouldn't mean sacrificing privacy:
- No microphone access - We never listen to audio content
- No content analysis - We don't know what you're listening to
- 100% on-device - All data stays on your phone
- No analytics or tracking - Your data is yours alone
- HealthKit Integration - Reads headphone audio exposure data (dBASPL levels) from Apple Health
- WHO/NIOSH Calculations - Uses scientifically-backed formulas to calculate safe exposure limits
- AI Analysis - Gemini analyzes patterns to provide actionable, kid-friendly recommendations
- Proactive Alerts - Notifies before reaching unsafe levels, not after
Based on NIOSH/WHO guidelines:
- 85 dB = 8 hours safe exposure
- 88 dB = 4 hours (every +3 dB halves safe time)
- 91 dB = 2 hours
- 94 dB = 1 hour
| Component | Technology |
|---|---|
| Platform | iOS 17+ / SwiftUI |
| Data | SwiftData + HealthKit |
| AI | Google Gemini API |
| Widgets | WidgetKit |
| Live Activity | ActivityKit |
| Architecture | MVVM |
bloop uses Google's Gemini API for intelligent, context-aware recommendations. The agentic AI system:
- Monitors listening patterns in real-time via HealthKit samples
- Evaluates risk factors (dose %, burn rate, session duration, volume levels)
- Decides when to intervene with smart cooldowns to avoid notification fatigue
- Generates personalized insights using Gemini 2.0 Flash
-
Get a free API key from Google AI Studio
-
Create
HearingApp/Services/AI/Secrets.swift:import Foundation enum Secrets { static let geminiAPIKey = "YOUR_API_KEY_HERE" }
-
Update
APIConfig.swiftto use your key:static let geminiAPIKey = Secrets.geminiAPIKey
┌─────────────────┐ ┌──────────────────┐ ┌─────────────────┐
│ HealthKit │────▶│ Agentic Loop │────▶│ Gemini API │
│ Samples │ │ (evaluation) │ │ (insights) │
└─────────────────┘ └──────────────────┘ └─────────────────┘
│
▼
┌──────────────────┐
│ Smart Notification │
│ or Live Activity │
└──────────────────┘
The agent evaluates every 60 seconds during active listening, with a 10-minute cooldown between interventions to respect user attention.
Built with care by:
- Kaien Hung
- David Xie
- Yiran Hu
| Dashboard | Trends | Widget | Notification |
|---|---|---|---|
| Real-time dose tracking with exposure zones | 7-day history with insights | Home screen widget | Smart alerts |
# Clone the repo
git clone https://github.com/YiranHu361/bloop.git
# Open in Xcode
open bloop.xcodeproj
# Build and run on device (HealthKit requires physical device)Requirements:
- iOS 17.0+
- Xcode 15.0+
- Physical iOS device (HealthKit not available in Simulator)
- Apple Developer account (for HealthKit entitlements)
bloop/
├── HearingApp/
│ ├── App/ # App entry & state management
│ ├── Features/
│ │ ├── Today/ # Main dashboard with dose ring
│ │ ├── Trends/ # Weekly/monthly analytics
│ │ ├── Settings/ # Preferences & AI settings
│ │ └── Onboarding/ # Privacy-first onboarding flow
│ ├── Services/
│ │ ├── HealthKit/ # HealthKit sync service
│ │ ├── AI/ # Gemini agentic recommendations
│ │ ├── Dose/ # Sound dose calculations
│ │ └── Notifications/ # Smart alerts & Live Activity
│ ├── Storage/ # SwiftData models
│ └── DesignSystem/ # Glassmorphism UI components
├── HearingWidget/ # Home & Lock Screen widgets
└── project.yml # Xcodegen configuration
Protecting the next generation's hearing, one bloop at a time.