Ambient Audio
by @leyao1017
Play scientifically-proven ambient sounds for focus, relaxation, meditation, and sleep. Perfect for programmers, office workers, students, and anyone needing...
clawhub install ambient-audioπ About This Skill
name: ambient-audio description: | Play scientifically-proven ambient sounds for focus, relaxation, meditation, and sleep. Perfect for programmers, office workers, students, and anyone needing concentration or rest. Use when user wants: white noise, pink noise, brown noise, rain sounds, singing bowl, binaural beats, brain wave tones (alpha/beta/gamma/theta). No copyright issues - all audio is algorithmically generated using ffmpeg.
Ambient Audio - Ambient Sound Player
Play white noise, pink noise, brown noise, brain wave tones, and more for deep focus, relaxation, or sleep. Runs on Linux servers with audio output.
> All audio files are pre-generated (10-second loops) for instant playback. No copyright concerns - sounds are algorithmically generated.
Quick Start
# Play white noise (default, 10 seconds)
bash scripts/play.sh whitePlay specific type
bash scripts/play.sh pink
bash scripts/play.sh brown
bash scripts/play.sh thetaWith duration
bash scripts/play.sh white -d 30 # 30 seconds
bash scripts/play.sh pink -d 60 # 1 minuteWith volume control (0.1 - 2.0)
bash scripts/play.sh white -v 0.5 # 50% volumeStop playing
bash scripts/play.sh stopList all available modes
bash scripts/play.sh --list
Available Audio Types
π― Focus (Concentration)
| Mode | Best For | Description | |------|----------|-------------| |white | Deep work, coding | Classic white noise - eliminates ambient distractions |
| alpha | Light focus | Alpha waves (8-14Hz) - relaxed alertness |
| beta | Active thinking | Beta waves (14-30Hz) - mental clarity |
| gamma | Peak focus | Gamma waves (30Hz+) - cognitive enhancement |π Relax (Stress Relief)
| Mode | Best For | Description | |------|----------|-------------| |pink | Gentle background | Softer than white, easier on ears |
| rain | Reading, working | Simulated rain ambience |
| nature | Breaks | Filtered natural-style ambience |π΄ Sleep (Rest)
| Mode | Best For | Description | |------|----------|-------------| |brown | Deep sleep | Deep, rumbling noise - best for sleeping |
| delta | Sleep onset | Delta waves (0.5-4Hz) - helps fall asleep |π§ Meditation
| Mode | Best For | Description | |------|----------|-------------| |theta | Meditation | Theta waves (4-8Hz) - deep relaxation |
| binaural | Focus/relax | 10Hz binaural beats - brain wave entrainment |
| bowl | Calming | Singing bowl - instant calm |Usage Examples
Voice Commands (via AI Assistant)
Custom Duration
# 5 minutes (300 seconds)
bash scripts/play.sh white -d 3001 hour
bash scripts/play.sh brown -d 3600
Volume Control
# Half volume
bash scripts/play.sh white -v 0.5Quiet (25%)
bash scripts/play.sh pink -v 0.25Louder
bash scripts/play.sh brown -v 1.5
How It Works
1. Pre-generated Audio: All sounds are 10-second loops stored in samples/ directory
2. Instant Playback: ffplay loops the file seamlessly
3. Duration Control: Calculates loop count: duration / 10
4. Volume Control: Uses ffplay's -af volume= filter
File Structure
focus-audio/
βββ SKILL.md # This file
βββ scripts/
β βββ play.sh # Main player script
βββ samples/ # Pre-generated audio files (10s loops)
βββ white_10s.mp3 # White noise - focus/work
βββ pink_10s.mp3 # Pink noise - relaxed focus
βββ brown_10s.mp3 # Brown noise - deep sleep
βββ theta_10s.mp3 # Theta waves - meditation
βββ rain_10s.mp3 # Rain sound - relaxation
βββ alpha_10s.mp3 # Alpha waves - light focus
βββ beta_10s.mp3 # Beta waves - active thinking
βββ gamma_10s.mp3 # Gamma waves - peak focus
βββ bowl_10s.mp3 # Singing bowl - calming/meditation
βββ binaural_10s.mp3 # Binaural beats - brain wave entrainment
Requirements
sudo apt-get install ffmpeg
Troubleshooting
No sound plays
aplay -lwhich ffplayls samples/Audio too loud/quiet
bash scripts/play.sh white -v 0.3Want to add more sounds
ffmpeg -y -f lavfi -i "anoisesrc=d=10:c=pink:a=0.35" -c:a libmp3lame -b:a 64k -t 10 newname_10s.mp3
samples/ directoryTechnical Notes
Security
*Focus Audio - Improve concentration, reduce stress, sleep better.*
π‘ Examples
# Play white noise (default, 10 seconds)
bash scripts/play.sh whitePlay specific type
bash scripts/play.sh pink
bash scripts/play.sh brown
bash scripts/play.sh thetaWith duration
bash scripts/play.sh white -d 30 # 30 seconds
bash scripts/play.sh pink -d 60 # 1 minuteWith volume control (0.1 - 2.0)
bash scripts/play.sh white -v 0.5 # 50% volumeStop playing
bash scripts/play.sh stopList all available modes
bash scripts/play.sh --list
π Tips & Best Practices
No sound plays
aplay -lwhich ffplayls samples/Audio too loud/quiet
bash scripts/play.sh white -v 0.3Want to add more sounds
ffmpeg -y -f lavfi -i "anoisesrc=d=10:c=pink:a=0.35" -c:a libmp3lame -b:a 64k -t 10 newname_10s.mp3
samples/ directory