360 Secure SkillHub
360 安全技能中心

Sonos Music Search

该 Skill 提供 Node.js 命令行工具,通过 Brave 搜索 API 查找曲目,并在指定 Sonos 音箱上播放,也可查询当前播放内容。使用前需配置 BRAVE_API_KEY,并具备 Node.js 18+、同一局域网内的 Sonos 音箱及已关联的 Spotify 账号。

terrycarter1985
terrycarter1985
热度 31.52
最近更新 2026-05-11 17:47:44
分类:自动化依赖:代码执行 / 第三方 API应用场景:自动化脚本 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add sonos-music-search
Metadata
name
sonos-music-search-skill
description
Search for music via Brave Search and play it on your Sonos speakers.
homepage
https://clawhub.com/skills/sonos-music-search
metadata
{"aren":{"emoji":"🎵","requires":{"env":["BRAVE_API_KEY"],"bins":["node"],"network":true}}}

Sonos Music Search Skill

Search for music on Spotify via Brave Search and play it on your Sonos speakers — right from the command line.

Features

  • 🔍 Uses Brave Search API to find Spotify tracks
  • 🔊 Plays found tracks on your specified Sonos speaker
  • 🎶 View currently playing track
  • ⏱️ Discovery timeout protection (won't hang on missing speakers)
  • 🛡️ Safe search defaults to moderate

Prerequisites

  • Node.js >= 18
  • Brave Search API key — Get one here
  • Sonos speaker on the same local network
  • Spotify account linked to your Sonos system

Installation

npm install

Configuration

Set your Brave Search API key:

export BRAVE_API_KEY=your-api-key

Usage

Play a track

node src/index.js play "Living Room" "pink floyd comfortably numb"

View currently playing track

node src/index.js current "Living Room"

Scripts

Command Description
npm start Run the CLI
npm run format Format JS and Markdown files
npm run format:check Check formatting without writing

License

MIT