网淘吧来吧,欢迎您!

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扬声器。连接扬声器、调节音量、查看状态——全程无需触碰鼠标。功能:

Airfoil

📡

  • 列出——显示所有可用扬声器🔗
  • 连接——连接到扬声器🔌
  • 断开连接——与扬声器断开连接🔊
  • 音量——控制音量(0-100%)📊
  • 状态——显示已连接扬声器及其音量级别— Show connected speakers with volume levels

⚙️ 要求

是什么详情
操作系统macOS (使用 AppleScript)
应用Airfoil由 Rogue Amoeba 开发
价格35美元 (提供免费试用)

安装

  1. 安装 Airfoil:

    # Via Homebrew
    brew install --cask airfoil
    
    # Or download from rogueamoeba.com/airfoil/mac/
    
  2. 启动 Airfoil并授予辅助功能权限 (系统设置 → 隐私与安全性 → 辅助功能)

  3. 技能准备就绪!🚀


🛠️ 命令

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 遇到错误:无法获取扬声器...

解决方案:

  1. 检查确切拼写:./airfoil.sh list
  2. 扬声器名称是区分大小写的("sonos move" ≠ "Sonos Move")
  3. 扬声器必须在同一网络
  4. 扬声器必须已开机并可连接

❌ "Airfoil无法启动/无权限"

问题:AppleScript无法控制Airfoil

解决方案:

  1. 系统设置 → 隐私与安全性 → 辅助功能
  2. 添加终端(或iTerm)
  3. 添加Airfoil
  4. 重启macOS(有时是必要的 🙄)

❌ "音量调节无效"

问题:音量命令不起作用

解决方案:

  1. 扬声器必须已连接才能设置音量
  2. 首先连接,然后调节音量
  3. 部分扬声器存在硬件端限制

❌ "未安装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 MacbookMac在网络上时
Sonos MoveSonos蓝牙或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.02025-01-25初始版本发布
1.1.02025-06-10文档优化 🐸
1.2.02025-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>

免责申明
部分文章来自各大搜索引擎,如有侵权,请与我联系删除。
打赏

文章底部电脑广告
手机广告位-内容正文底部

相关文章

您是本站第393670名访客 今日有1篇新文章/评论