返回顶部
m

macos-audiomacOS音频

>

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
288
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

macos-audio

macos-audio

通过 macos-audio 命令行工具控制 macOS 上的蓝牙设备、音频输出路由和音量。

安装

Brew 依赖

bash
brew install switchaudio-osx # 输出切换所需
brew install blueutil # 蓝牙控制所需

安装 CLI

bash
brew install vossenwout/tap/macos-audio-cli

命令

扫描与连接

bash
macos-audio scan # 清理分区:蓝牙、本地、AirPlay
macos-audio connect bt <名称|MAC地址>
macos-audio connect airplay
macos-audio connect local <名称>
macos-audio disconnect <目标> # 断开蓝牙并切换到本地输出

音量

bash
macos-audio volume set <0-100> # 设置系统输出音量
macos-audio volume get # 打印输出音量、输入音量、静音状态

播放

bash
macos-audio play <文件> # 播放本地音频文件
macos-audio play <文件> --background # 开始播放并立即返回

状态

bash
macos-audio status # 显示输出、音量、静音状态
macos-audio status --json # 同上,但输出机器可读的 JSON 格式
macos-audio status --device <名称|MAC地址> # 包含指定设备的蓝牙状态

退出码

退出码含义
0成功
1
运行时错误 | | 2 | 参数错误 | | 3 | 目标解析错误 | | 4 | 缺少工具依赖(未安装 blueutil 或 SwitchAudioSource) |

工作流程指导

  • - 在进行更改前,始终先运行 macos-audio status 了解当前状态。
  • 如果命令以退出码 4 结束,说明缺少所需的 brew 依赖——请安装后重试。
  • connect airplay 使用通用的 AirPlay 路由;扫描中的房间名称仅供参考。
  • 蓝牙设备只有在 macOS 中手动配对后才会出现在扫描结果中。

限制

  • - 不支持通过 ssh 使用
  • connect airplay 已知存在缺陷,AirPlay 功能仍处于实验阶段

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 macos-audio-1776115803 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 macos-audio-1776115803 技能

通过命令行安装

skillhub install macos-audio-1776115803

下载

⬇ 下载 macos-audio v1.0.0(免费)

文件大小: 1.58 KB | 发布时间: 2026-4-15 13:19

v1.0.0 最新 2026-4-15 13:19
- Initial release of the macos-audio skill.
- Provides CLI management for macOS audio output and Bluetooth devices.
- Supports scanning devices, connecting/disconnecting Bluetooth and AirPlay, switching audio outputs, adjusting volume, and playing audio files.
- Includes commands for status checks (including JSON output) and precise exit codes for troubleshooting.
- Requires installation of brew dependencies: switchaudio-osx and blueutil.
- Documents known limitations, such as lack of SSH support and experimental AirPlay features.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部