← 返回
未分类 Key 中文

Sonos Music Search

Search for music via Brave Search and play it on Sonos speakers. Supports play, current track, and speaker discovery.
通过 Brave Search 搜索音乐并在 Sonos 音箱上播放,支持播放、当前曲目查询以及音箱发现。
terrycarter1985 terrycarter1985 来源
未分类 clawhub v1.1.1 2 版本 100000 Key: 需要
★ 0
Stars
📥 413
下载
💾 0
安装
2
版本
#latest

概述

Sonos Music Search Skill

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

Features

  • Search for Spotify tracks using Brave Search
  • Play found tracks on a specified Sonos speaker
  • View the currently playing track
  • List available Sonos speakers on the network
  • Safe search enabled by default (opt into unrestricted with --unsafe)

Prerequisites

  • Node.js >= 18
  • A Brave Search API key (get one here)
  • At least one Sonos speaker on the same network

Installation

npm install

Configuration

Set your Brave Search API key as an environment variable:

export BRAVE_API_KEY=your-api-key

Usage

Play a track

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

Add --unsafe to disable safe search:

node src/index.js play "Living Room" "explicit track name" --unsafe

View currently playing track

node src/index.js current "Living Room"

List available speakers

node src/index.js list

Programmatic API

const { searchAndPlay, getCurrentTrack, listSpeakers } = require('sonos-music-search-skill');

// Play a track
const result = await searchAndPlay('Living Room', 'pink floyd comfortably numb');
// { success: true, track: '...', speaker: 'Living Room', uri: 'spotify:track:...' }

// Get current track
const track = await getCurrentTrack('Living Room');
// { title: '...', artist: '...', ... }

// List speakers
const speakers = await listSpeakers();
// [{ name: 'Living Room', host: '192.168.1.50' }, ...]

Scripts

CommandDescription
------------------------------------------------------
npm startRun the CLI
npm run auditRun the skill audit
npm run formatFormat JS and Markdown files
npm run format:checkCheck formatting without writing

License

MIT

版本历史

共 2 个版本

  • v1.1.1 当前
    2026-05-21 13:25 安全 安全
  • v1.0.0
    2026-05-07 19:35 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

design-media

Openai Whisper

steipete
使用 Whisper CLI 进行本地语音转文字(无需 API 密钥)
★ 333 📥 94,425
design-media

Nano Banana Pro

steipete
使用 Nano Banana Pro (Gemini 3 Pro Image) 生成或编辑图像。支持文生图、图生图及 1K/2K/4K 分辨率,适用于图像创建、修改及编辑请求,使用 --input-image 指定输入图像。
★ 431 📥 117,599
dev-programming

Code Formatter

terrycarter1985
代码格式化最佳实践及常用语言(Python、JavaScript、JSON、Markdown 等)的快速参考,使用 Prettier、Black、ESLint 等工具。
★ 0 📥 818