搜索

PythonReactSEOPDF
OpenClaw

webchat-audio-notifications

Add browser audio notifications to Moltbot/Clawdbot webchat with 5 intensity levels - from whisper to impossible-to-miss (only when tab is backgrounded).

brokemac790 来源安装数☆ 0 仓库 Starsv1.1.0

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install brokemac79/webchat-audio-notifications

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

🔔 Webchat Audio Notifications

Browser audio notifications for Moltbot/Clawdbot webchat. Plays a notification sound when new messages arrive - but only when the tab is in the background.

Features

  • 🔔 Smart notifications - Only plays when tab is hidden
  • 🎚️ Volume control - Adjustable 0-100%
  • 🎵 5 intensity levels - Whisper (1) to impossible-to-miss (5)
  • 📁 Custom sounds - Upload your own (MP3, WAV, OGG, WebM)
  • 🔕 Easy toggle - Enable/disable with one click
  • 💾 Persistent settings - Preferences saved in localStorage
  • 📱 Mobile-friendly - Graceful degradation on mobile
  • 🚫 Autoplay handling - Respects browser policies
  • ⏱️ Cooldown - Prevents spam (3s between alerts)
  • 🐞 Debug mode - Optional logging

Quick Start

Test the POC
cd examples
python3 -m http.server 8080
# Open http://localhost:8080/test.html

Test steps:

  1. Switch to another tab
  2. Click "Trigger Notification"
  3. Hear the sound! 🔊
Basic Integration
// Initialize
const notifier = new WebchatNotifications({
  soundPath: './sounds',
  soundName: 'level3',  // Medium intensity (default)
  defaultVolume: 0.7
});

await notifier.init();

// Trigger on new message
socket.on('message', () => notifier.notify());

// Use different levels for different events
socket.on('mention', () => {
  notifier.setSound('level5');  // Loudest for mentions
  notifier.notify();
});

API

Constructor Options
new WebchatNotifications({
  soundPath: './sounds',               // Path to sounds directory
  soundName: 'level3',                 // level1 (whisper) to level5 (very loud)
  defaultVolume: 0.7,                  // 0.0 to 1.0
  cooldownMs: 3000,                    // Min time between alerts
  enableButton: true,                  // Show enable prompt
  debug: false                         // Console logging
});

Intensity Levels:

  • level1 - Whisper (9.5KB) - Most subtle
  • level2 - Soft (12...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/brokemac79/webchat-audio-notifications
Version
1.1.0
Commit
2129556775569b391e015c661b2c56a983fb8b03
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

README

🔔 Webchat Audio Notifications

Browser audio notifications for Moltbot/Clawdbot webchat. Get notified when new messages arrive - but only when the tab is in the background.

🧪 Try the live demo - Download and open in your browser!

Status: ✅ v1.2.0 - Production ready, looking for testers!


🚀 Quick Test (2 minutes)

Want to try it right now?

  1. Clone or download this repo
  2. Open examples/test.html in your browser
  3. Click the green "🔊 Test Sound" button (unlocks audio)
  4. Hear the notification sound!
  5. Try different intensity levels (Level 1-5 dropdown)

That's it! If you hear sounds, it works. 🎉

⚠️ Important: Browser Autoplay Policy

Why you must click "Test Sound" first:

All modern browsers (Chrome, Firefox, Safari, Edge) block audio autoplay by default as a security feature. This prevents websites from playing sounds without your permission.

This is NORMAL and EXPECTED behavior, not a bug!

What happens:

  1. Page loads → Audio is blocked 🔇
  2. You click "Test Sound" (or any button) → Audio unlocks 🔊
  3. From now on, notifications work automatically ✅

You only need to click once per session. After that, all sounds play normally. This is how all web audio works - YouTube, Spotify, etc. all require a click first.

If you don't click first and don't hear sounds, that's why! Just click the Test Sound button.


✨ Features

  • 🔔 Smart notifications - Only plays sound when tab is hidden
  • 🎚️ Volume control - Adjustable notification volume (0-100%)
  • 🔕 Easy toggle - Enable/disable with one click
  • 🎵 5 intensity levels - From whisper (level 1) to impossible-to-miss (level 5)
  • 📁 Custom sounds - Upload your own notification sounds (MP3, WAV, OGG, WebM)
  • 💾 Persistent preferences - Settings saved in localStorage
  • 📱 Mobile-friendly - Graceful handling of mobile restrictions
  • 🚫 Autoplay handling - Respects browser autoplay polici...

来源内容

SKILL.md
# 🔔 Webchat Audio Notifications

Browser audio notifications for Moltbot/Clawdbot webchat. Plays a notification sound when new messages arrive - but only when the tab is in the background.

## Features

- 🔔 **Smart notifications** - Only plays when tab is hidden
- 🎚️ **Volume control** - Adjustable 0-100%
- 🎵 **5 intensity levels** - Whisper (1) to impossible-to-miss (5)
- 📁 **Custom sounds** - Upload your own (MP3, WAV, OGG, WebM)
- 🔕 **Easy toggle** - Enable/disable with one click
- 💾 **Persistent settings** - Preferences saved in localStorage
- 📱 **Mobile-friendly** - Graceful degradation on mobile
- 🚫 **Autoplay handling** - Respects browser policies
- ⏱️ **Cooldown** - Prevents spam (3s between alerts)
- 🐞 **Debug mode** - Optional logging

## Quick Start

### Test the POC

```bash
cd examples
python3 -m http.server 8080
# Open http://localhost:8080/test.html
```

**Test steps:**
1. Switch to another tab
2. Click "Trigger Notification"
3. Hear the sound! 🔊

### Basic Integration

```javascript
// Initialize
const notifier = new WebchatNotifications({
  soundPath: './sounds',
  soundName: 'level3',  // Medium intensity (default)
  defaultVolume: 0.7
});

await notifier.init();

// Trigger on new message
socket.on('message', () => notifier.notify());

// Use different levels for different events
socket.on('mention', () => {
  notifier.setSound('level5');  // Loudest for mentions
  notifier.notify();
});
```

## API

### Constructor Options

```javascript
new WebchatNotifications({
  soundPath: './sounds',               // Path to sounds directory
  soundName: 'level3',                 // level1 (whisper) to level5 (very loud)
  defaultVolume: 0.7,                  // 0.0 to 1.0
  cooldownMs: 3000,                    // Min time between alerts
  enableButton: true,                  // Show enable prompt
  debug: false                         // Console logging
});
```

**Intensity Levels:**
- `level1` - Whisper (9.5KB) - Most subtle
- `level2` - Soft (12...
README
# 🔔 Webchat Audio Notifications

Browser audio notifications for Moltbot/Clawdbot webchat. Get notified when new messages arrive - but only when the tab is in the background.

**🧪 [Try the live demo](examples/test.html)** - Download and open in your browser!

**Status:** ✅ v1.2.0 - Production ready, looking for testers!

---

## 🚀 Quick Test (2 minutes)

**Want to try it right now?**

1. **Clone or download** this repo
2. **Open** `examples/test.html` in your browser
3. **Click** the green "🔊 Test Sound" button (unlocks audio)
4. **Hear** the notification sound!
5. **Try** different intensity levels (Level 1-5 dropdown)

That's it! If you hear sounds, it works. 🎉

### ⚠️ Important: Browser Autoplay Policy

**Why you must click "Test Sound" first:**

All modern browsers (Chrome, Firefox, Safari, Edge) **block audio autoplay by default** as a security feature. This prevents websites from playing sounds without your permission.

**This is NORMAL and EXPECTED behavior, not a bug!**

**What happens:**
1. Page loads → Audio is blocked 🔇
2. You click "Test Sound" (or any button) → Audio unlocks 🔊
3. From now on, notifications work automatically ✅

**You only need to click once per session.** After that, all sounds play normally. This is how all web audio works - YouTube, Spotify, etc. all require a click first.

If you don't click first and don't hear sounds, that's why! Just click the Test Sound button.

---

## ✨ Features

- 🔔 **Smart notifications** - Only plays sound when tab is hidden
- 🎚️ **Volume control** - Adjustable notification volume (0-100%)
- 🔕 **Easy toggle** - Enable/disable with one click
- 🎵 **5 intensity levels** - From whisper (level 1) to impossible-to-miss (level 5)
- 📁 **Custom sounds** - Upload your own notification sounds (MP3, WAV, OGG, WebM)
- 💾 **Persistent preferences** - Settings saved in localStorage
- 📱 **Mobile-friendly** - Graceful handling of mobile restrictions
- 🚫 **Autoplay handling** - Respects browser autoplay polici...

相关技能

OpenClaw

bambu-studio-ai

heyixuan2

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...

OpenClaw

humanpages

human-pages-ai

Search and hire real humans for tasks — photography, delivery, research, and more

OpenClaw

geo-optimization

capt-marbles

Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discove...

OpenClaw

openclaw-skills

zseven-w

Reusable skill templates for OpenClaw AI agents. Templates for API integration, data processing, web scraping, CLI tools, and file processing.