Airfoil技能使用说明
2026-04-01
新闻来源:网淘吧
围观:9
电脑广告
手机广告
🔊 翼型技能
╔═══════════════════════════════════════════════════════════╗
║ ║
║ 🎵 A I R F O I L S P E A K E R C O N T R O L 🎵 ║
║ ║
║ Stream audio to any AirPlay speaker ║
║ from your Mac via CLI ║
║ ║
╚═══════════════════════════════════════════════════════════╝
"何必跳到你的Mac前,直接对它呱呱叫不就行了?"🐸
📖 此技能有何作用?
翼型技能让你直接从终端——或通过Clawd!——完全控制你的AirPlay扬声器。连接扬声器、调节音量、查看状态——全程无需触碰鼠标。功能:

📡
- 列出——显示所有可用扬声器🔗
- 连接——连接到扬声器🔌
- 断开连接——与扬声器断开连接🔊
- 音量——控制音量(0-100%)📊
- 状态——显示已连接扬声器及其音量级别— Show connected speakers with volume levels
⚙️ 要求
| 是什么 | 详情 |
|---|---|
| 操作系统 | macOS (使用 AppleScript) |
| 应用 | Airfoil由 Rogue Amoeba 开发 |
| 价格 | 35美元 (提供免费试用) |
安装
-
安装 Airfoil:
# Via Homebrew brew install --cask airfoil # Or download from rogueamoeba.com/airfoil/mac/ -
启动 Airfoil并授予辅助功能权限 (系统设置 → 隐私与安全性 → 辅助功能)
-
技能准备就绪!🚀
🛠️ 命令
list— 显示所有扬声器
./airfoil.sh list
输出:
Computer, Andy's M5 Macbook, Sonos Move, Living Room TV
connect <speaker>— 连接到扬声器
./airfoil.sh connect "Sonos Move"
输出:
Connected: Sonos Move
💡 扬声器名称必须完全匹配 (区分大小写!)
disconnect <speaker>— 断开扬声器连接
./airfoil.sh disconnect "Sonos Move"
输出:
Disconnected: Sonos Move
volume <扬声器> <0-100>— 设置音量
# Set to 40%
./airfoil.sh volume "Sonos Move" 40
# Set to maximum
./airfoil.sh volume "Living Room TV" 100
# Quiet mode for night time
./airfoil.sh volume "Sonos Move" 15
输出:
Volume Sonos Move: 40%
status— 显示已连接的扬声器
./airfoil.sh status
输出:
Sonos Move: 40%
Living Room TV: 65%
或者如果未连接任何设备:
No speakers connected
🎯 示例工作流程
🏠 "客厅音乐"
./airfoil.sh connect "Sonos Move"
./airfoil.sh volume "Sonos Move" 50
# → Now fire up Spotify/Apple Music and enjoy!
🎬 "电影之夜设置"
./airfoil.sh connect "Living Room TV"
./airfoil.sh volume "Living Room TV" 70
./airfoil.sh disconnect "Sonos Move" # If still connected
🌙 "全部关闭"
for speaker in "Sonos Move" "Living Room TV"; do
./airfoil.sh disconnect "$speaker" 2>/dev/null
done
echo "All speakers disconnected 🌙"
🔧 故障排除
❌ "未找到扬声器"
问题: 执行错误:Airfoil 遇到错误:无法获取扬声器...
解决方案:
- 检查确切拼写:
./airfoil.sh list - 扬声器名称是区分大小写的("sonos move" ≠ "Sonos Move")
- 扬声器必须在同一网络
- 扬声器必须已开机并可连接
❌ "Airfoil无法启动/无权限"
问题:AppleScript无法控制Airfoil
解决方案:
- 系统设置 → 隐私与安全性 → 辅助功能
- 添加终端(或iTerm)
- 添加Airfoil
- 重启macOS(有时是必要的 🙄)
❌ "音量调节无效"
问题:音量命令不起作用
解决方案:
- 扬声器必须已连接才能设置音量
- 首先
连接,然后调节音量 - 部分扬声器存在硬件端限制
❌ "未安装Airfoil"
问题: 执行错误:应用程序未运行
解决方案:
# Start Airfoil
open -a Airfoil
# Or install it
brew install --cask airfoil
❌ "bc: command not found"
问题:音量计算失败
解决方案:
# Install bc (should be standard on macOS)
brew install bc
📋 已知扬声器
这些扬声器已经过测试:
| 扬声器 | 类型 | 备注 |
|---|---|---|
计算机 | 本地 | 始终可用 |
Andy的M5 Macbook | Mac | 在网络上时 |
Sonos Move | Sonos | 蓝牙或WiFi |
客厅电视 | Apple TV | 通过AirPlay |
💡 使用
./airfoil.sh list来发现你自己的扬声器!
🔗 与 Clawd 集成
此技能与 Clawd 完美配合!示例:
"Hey Clawd, connect the Sonos Move"
→ ./airfoil.sh connect "Sonos Move"
"Turn the music down"
→ ./airfoil.sh volume "Sonos Move" 30
"Which speakers are on?"
→ ./airfoil.sh status
📜 更新日志
| 版本 | 日期 | 变更内容 |
|---|---|---|
| 1.0.0 | 2025-01-25 | 初始版本发布 |
| 1.1.0 | 2025-06-10 | 文档优化 🐸 |
| 1.2.0 | 2025-06-26 | 已翻译为英文,适配 ClawdHub! |
🐸 鸣谢
@..@
(----)
( >__< ) "This skill was crafted with love
^^ ^^ by a frog and his human!"
作者:Andy Steinberger(在其 Clawdbot 助手青蛙 Owen 🐸 的帮助下)
技术支持: Airfoil由 Rogue Amoeba 提供
所属系列: Clawdbot技能集
<div align="center">
为Clawdbot社区倾心打造 💚
呱!🐸
</div>文章底部电脑广告
手机广告位-内容正文底部


微信扫一扫,打赏作者吧~