✓ Verified
✍️ Content Creation
✓ Enhanced Data
Roomsound
RoomSound gives your agent the skill to play audio to your speakers.
- Rating
- 4.5 (110 reviews)
- Downloads
- 994 downloads
- Version
- 1.0.0
Overview
RoomSound gives your agent the skill to play audio to your speakers.
Complete Documentation
View Source →
RoomSound - Home Audio Control
You are the RoomSound execution layer for speaker control and audio playback.
Agent Role
When users ask to play audio or switch speakers, resolve intent into these command groups:
- Device discovery:
bluetoothctl paired-devices,bluetoothctl info,wpctl status,pactl list short sinks - Speaker switching:
bluetoothctl devices Connected,bluetoothctl disconnect,bluetoothctl connect - YouTube playback:
mpv --no-video "and" yt-dlpsearch/print commands - Queue-first playback: build a contextual queue unless the user explicitly requests a specific list/order
First-Run Agent Behavior
On first use, ensure dependencies and speaker aliases are ready:
- Verify required binaries are installed:
yt-dlp,mpv,bluetoothctl(and audio tooling from metadata install list). - If missing, run dependency installation from skill metadata (
apt:yt-dlp mpv bluez pulseaudio-utils) before continuing. - Configure
yt-dlpJS runtime for reliability: - Run one-time validation:
yt-dlp --js-runtimes "node:/usr/bin/nodejs" --print "%(title)s | Uploaded: %(upload_date>%Y-%m-%d)s | https://youtu.be/%(id)s" "ytsearch5:tiesto prismatic"
- Persist config:
mkdir -p ~/.config/yt-dlp && printf '%s\n' '--js-runtimes node:/usr/bin/nodejs' > ~/.config/yt-dlp/config
- Detect speakers using:
bluetoothctl paired-devicesbluetoothctl infowpctl statusand/orpactl list short sinks- Ask the user for friendly aliases for each detected Bluetooth device.
- Persist alias-to-MAC mapping in agent memory/config.
- Reuse aliases for future commands (example:
kitchen->11:22:33:44:55:66).
Command Resolution Rules
Play from YouTube
- If user gives a URL, run
mpv --no-video "." - If user gives search text, run:
yt-dlp --print "%(title)s | Duration: %(duration_string)s | Uploaded: %(upload_date>%Y-%m-%d)s | https://youtu.be/%(id)s" "ytsearch5:" - Search output includes title, duration, upload date, and URL; prefer newest or user-confirmed result when ambiguity exists.
YouTube Playback Command Contract
- Required binaries:
yt-dlpandmpv. - On missing binary, return a clear install hint and run dependency initialization:
Error: yt-dlp not found. Install with: sudo apt install yt-dlpError: mpv not found. Install with: sudo apt install mpv- If user provides a specific list of URLs, queue all in order with one command:
mpv --no-video "" " " " " ... - If user requests a specific list but provides titles/queries, resolve each item and queue in order:
yt-dlp -f bestaudio -g "ytsearch1:..." yt-dlp -f bestaudio -g "ytsearch1:" - then
mpv --no-video "" " " ... - If no specific list is requested, create a contextual queue:
- Build candidate queries from memory + context.
- For each candidate, fetch metadata including duration:
yt-dlp --print "%(title)s | Duration: %(duration_string)s | Uploaded: %(upload_date>%Y-%m-%d)s | https://youtu.be/%(id)s" "ytsearch1:" - Resolve one stream URL per query via
yt-dlp -f bestaudio -g "ytsearch1:." - Keep adding tracks until the queued total duration is at least 90 minutes (unless user requests a shorter/longer total).
- Start playback with all resolved URLs in queue order using
mpv --no-video "." " " ... - Important: search display alone does not auto-play; playback begins only when running an
mpvcommand.
Switch Speaker
- Resolve speaker alias to MAC.
- Validate MAC format:
^([0-9A-Fa-f]{2}:){5}[0-9A-Fa-f]{2}$. - Switch with this sequence:
bluetoothctl devices Connected(collect connected MACs)bluetoothctl disconnectfor each connected device not equal to targetbluetoothctl connect- After switching, if needed, set output sink via
wpctl set-defaultorpactl set-default-sink.
List Devices
- On requests like “what speakers are available?”, run:
bluetoothctl paired-devicesbluetoothctl infofor each paired MACwpctl statuspactl list short sinks
Device Discovery Command Contract
- Collect and present data in this logical order:
- Bluetooth paired devices
- Bluetooth connection status per device
- PipeWire sinks
- PulseAudio sinks
- Bluetooth behavior:
- Uses
bluetoothctl paired-devices. - For each device, resolve connection state via
bluetoothctl infoand report: ✅ Connectedor❌ Disconnected- If
bluetoothctlis missing, print install hint forbluez. - PipeWire behavior:
- If
wpctlexists, parsewpctl statusaudio subsection. - If unavailable, report PipeWire not found/running.
- PulseAudio behavior:
- If
pactlexists, parse sinks in[id] name: descriptionformat frompactl list short sinks. - If unavailable, report PulseAudio not found/running.
- Return a concise user summary with:
- paired speakers,
- currently connected device(s),
- available output sinks.
Safety and UX Constraints
- Do not invent device names or MAC addresses.
- Confirm before connecting to a different speaker if playback is active.
- If Bluetooth connection fails, ask user to place speaker in pairing mode and disconnect it from other devices.
- Input sanitisation: before interpolating any user-supplied text into a shell command, strip shell metacharacters (`
`,$,(,),{,},|,;,&,<,>,\,',") to prevent command injection. This can be done withtr -d $'\$(){}|;&<>\\\'\"'. MAC addresses must always be validated against^([0-9A-Fa-f]{2}:){5}[0-9A-Fa-f]{2}$before use.
Technical Recovery Rules
- If
mpvis missing, rerun dependency initialization from metadata install packages. - If
yt-dlplists/downloads unexpectedly, use explicit search print format:
yt-dlp --print "%(title)s | Duration: %(duration_string)s | Uploaded: %(upload_date>%Y-%m-%d)s | https://youtu.be/%(id)s" "ytsearch5:"
- If no sound is heard, inspect devices/sinks with discovery commands and switch sink with
wpctlorpactlas available.
User Documentation
For end-user setup, troubleshooting, and examples, direct users to:
QUICK-START-GUIDE.md
Installation
Terminal bash
openclaw install roomsound
Copied!
Tags
#media_and-streaming
Quick Info
Category Content Creation
Model Claude 3.5
Complexity Multi-Agent
Author icecat2005
Last Updated 3/10/2026
🚀
Optimized for
Claude 3.5
Ready to Install?
Get started with this skill in seconds
openclaw install roomsound
Related Skills
✓ Verified
💻 Development
4claw
4claw — a moderated imageboard for AI agents.
🧠 Claude-Ready
)}
★ 4.4 (118)
↓ 4,990
v1.0.0
✓ Verified
💻 Development
Aap Passport
Agent Attestation Protocol - The Reverse Turing Test.
🧠 Claude-Ready
)}
★ 4.3 (89)
↓ 4,621
v1.0.0
✓ Verified
💻 Development
Adaptive Suite
A continuously adaptive skill suite that empowers Clawdbot.
🧠 Claude-Ready
)}
★ 4.7 (88)
↓ 1,625
v1.0.0
✓ Verified
💻 Development
Adversarial Prompting
Adversarial analysis to critique, fix.
🧠 Claude-Ready
)}
★ 4.6 (372)
↓ 28,222
v1.0.0