← 返回
未分类 中文

Ambient Audio

Play scientifically-proven ambient sounds for focus, relaxation, meditation, and sleep. Perfect for programmers, office workers, students, and anyone needing...
播放经过科学验证的环境音,帮助集中注意力、放松、冥想和睡眠。适合程序员、办公室职员、学生及所有需要专注的人。
leyao1017 leyao1017 来源
未分类 clawhub v1.0.0 1 版本 99705.9 Key: 无需
★ 0
Stars
📥 339
下载
💾 0
安装
1
版本
#latest

概述

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 white

# Play specific type
bash scripts/play.sh pink
bash scripts/play.sh brown
bash scripts/play.sh theta

# With duration
bash scripts/play.sh white -d 30     # 30 seconds
bash scripts/play.sh pink -d 60       # 1 minute

# With volume control (0.1 - 2.0)
bash scripts/play.sh white -v 0.5     # 50% volume

# Stop playing
bash scripts/play.sh stop

# List all available modes
bash scripts/play.sh --list

Available Audio Types

🎯 Focus (Concentration)

ModeBest ForDescription
-----------------------------
whiteDeep work, codingClassic white noise - eliminates ambient distractions
alphaLight focusAlpha waves (8-14Hz) - relaxed alertness
betaActive thinkingBeta waves (14-30Hz) - mental clarity
gammaPeak focusGamma waves (30Hz+) - cognitive enhancement

😌 Relax (Stress Relief)

ModeBest ForDescription
-----------------------------
pinkGentle backgroundSofter than white, easier on ears
rainReading, workingSimulated rain ambience
natureBreaksFiltered natural-style ambience

😴 Sleep (Rest)

ModeBest ForDescription
-----------------------------
brownDeep sleepDeep, rumbling noise - best for sleeping
deltaSleep onsetDelta waves (0.5-4Hz) - helps fall asleep

🧘 Meditation

ModeBest ForDescription
-----------------------------
thetaMeditationTheta waves (4-8Hz) - deep relaxation
binauralFocus/relax10Hz binaural beats - brain wave entrainment
bowlCalmingSinging bowl - instant calm

Usage Examples

Voice Commands (via AI Assistant)

  • "Play white noise" → Starts white noise
  • "I need to focus for coding" → Plays white/alpha
  • "Can't sleep, play something" → Plays brown noise
  • "Let me meditate" → Plays theta waves
  • "Stop" → Stops playback

Custom Duration

# 5 minutes (300 seconds)
bash scripts/play.sh white -d 300

# 1 hour
bash scripts/play.sh brown -d 3600

Volume Control

# Half volume
bash scripts/play.sh white -v 0.5

# Quiet (25%)
bash scripts/play.sh pink -v 0.25

# Louder
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

  • ffmpeg: For audio playback

```bash

sudo apt-get install ffmpeg

```

  • Audio output: Speakers or headphones connected to the server

Troubleshooting

No sound plays

  • Check if audio device is connected: aplay -l
  • Check if ffplay is installed: which ffplay
  • Verify audio file exists: ls samples/

Audio too loud/quiet

  • Adjust volume: bash scripts/play.sh white -v 0.3

Want to add more sounds

  • Generate new 10-second loop:

```bash

ffmpeg -y -f lavfi -i "anoisesrc=d=10:c=pink:a=0.35" -c:a libmp3lame -b:a 64k -t 10 newname_10s.mp3

```

  • Place in samples/ directory

Technical Notes

  • Audio Format: MP3, 48kHz, mono, 64kbps
  • Loop Duration: 10 seconds (seamless loop)
  • Volume Range: 0.1 - 2.0 (default 1.0)
  • Max Duration: No hard limit (limited by system resources)

Security

  • Input validation on volume and duration parameters
  • File paths are hardcoded (no user input for paths)
  • No external network calls
  • No sensitive data access

Focus Audio - Improve concentration, reduce stress, sleep better.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 10:40 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,383 📥 320,794
ai-agent

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,229 📥 268,108
ai-agent

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,084 📥 813,114