Lullaby Randomizer is a comprehensive iOS sleep and relaxation app designed to help users of all ages achieve better sleep through personalized lullaby experiences. The app combines traditional lullabies with modern technology, featuring AI-powered recommendations, sleep tracking, beautiful visualizations, and smart audio management.
Built with SwiftUI and leveraging Apple's AVFoundation framework, the app provides a seamless experience across all iOS devices with support for background audio playback, remote controls, and advanced audio features like fade effects and adaptive volume.
Summary
Core Features:
Advanced Audio Management
Sophisticated audio player with fade in/out effects
Sleep timer with automatic fade-out
Background audio playback support
Remote control integration (lock screen, control center)
Adaptive volume based on ambient noise
Sleep & Wellness
Sleep tracking with detailed analytics
Bedtime reminders and scheduling
Sleep quality insights and progress tracking
Sleep goals and consistency monitoring
Wake-up sounds for natural awakening
Smart Personalization
AI-powered song recommendations
Weather-based and time-based playlist generation
Mood detection and adaptive selection
Personalized preferences for genres, moods, and age groups
Learning from listening patterns
Immersive Experience
Multiple visualization types (waves, particles, spectrum, mandala, stars, breathing)
Customizable color schemes
Haptic feedback integration
Smooth animations and transitions
Smart Playlists
AI-curated playlists based on various criteria
Custom playlist creation
Recently played and favorites management
Browse by genre, mood, and age group
Advanced Settings
Comprehensive audio controls (volume, fade durations)
Equalizer with frequency adjustments
Sleep timer presets (15min, 30min, 1hr, 2hr)
Personalization settings
Premium features unlock
Technical Architecture:
Platform: iOS 15.0+ with fallback support for older versions
Framework: SwiftUI with UIKit integration where needed
Audio: AVFoundation with AVAudioSession configuration
Notifications: UserNotifications for bedtime reminders
Media Controls: MediaPlayer framework for remote controls
Health Integration: HealthKit for sleep tracking (placeholder)
Location: CoreLocation for weather-based features
Haptics: CoreHaptics for tactile feedback
Target Audience:
Parents seeking lullabies for children
Adults looking for relaxation and sleep aid
Individuals with sleep difficulties
Anyone interested in meditation and calming sounds
The app represents a complete sleep solution that combines the timeless comfort of lullabies with modern smart technology to create personalized, effective sleep experiences for users of all ages.
Features
- **Random Lullaby Selection**: Press the shuffle button to enable random mode
- **Classic Lullaby Collection**: Includes traditional favorites like Brahms' Lullaby, Twinkle Twinkle Little Star, and more
- **Full Audio Controls**: Play, pause, previous, next, volume control, and seek functionality
- **Beautiful Nighttime Theme**: Calming dark blue gradient with twinkling stars
- **Responsive Design**: Works on desktop, tablet, and mobile devices
- **Keyboard Shortcuts**:
- Spacebar: Play/Pause
- Left Arrow: Previous song
- Right Arrow: Next song
- R key: Toggle random mode
How to Use
1. Click the play button to start playing a lullaby
2. Use the shuffle button to enable random mode for automatic randomization
3. Click on any song in the playlist to play it directly
4. Adjust volume using the slider
5. Use the progress bar to seek to different parts of the song