跳到正文
TakoAPI
返回技能列表

play-music

由 awspace 提供

Media & Streaming
808下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

**Controlled music player with pause/resume/stop support**.

描述

该技能的功能

A command-line music player that runs a background server for full playback control. Uses pygame for audio and exposes play, pause, resume, and stop commands through a single entry point script. Works with local audio files stored in a configurable directory.

Unlike launching a new audio process per command, the background server architecture enables true pause and resume without restarting playback from the beginning.

何时使用

  • Playing background music during a terminal work session
  • Pausing music when taking a call without losing your place
  • Resuming playback after a break without restarting the track
  • Listing available songs in the local music folder
  • Stopping music when switching tasks

示例工作流

输入

User asks: play some music, then pause it

智能体
  1. 1

    Run ./play-music play to auto-start the server and begin playback

  2. 2

    Confirm playback is active with ./play-music status

  3. 3

    Run ./play-music pause when the user wants to pause

  4. 4

    Confirm paused state with ./play-music status

输出

Music plays from the default song file, then pauses on command while the server stays running

前置要求

  • pygame Python library — install with pip install pygame
  • Local audio files placed in a music/ directory or at the path set by MUSIC_DIR

安装

clawhub install awspace/play-music

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接