Mac 下 AirPods Pro 切换降噪操作如何设置快捷键?

2020-12-25 14:16:33 +08:00
 leeum

没有菜单栏,导致没法通过 App 快捷键设置

2681 次点击
所在节点    Apple
11 条回复
gps949
2020-12-25 14:20:14 +08:00
AirBuddy
GZK007
2020-12-25 14:25:49 +08:00
蓝牙点一下不是有三个模式吗
leeum
2020-12-25 14:28:58 +08:00
@GZK007 想设置成快捷键,方便一键切换,鼠标去点击感觉太慢哈。比如有的时候开着降噪听东西,有同事说句话,点击操作就太低效了
PerFectTime
2020-12-25 15:00:17 +08:00
试一下这个代码

Apple Script

tell application "System Events"
tell process "SystemUIServer"
click (menu bar item 1 of menu bar 1 whose description contains "volume")
try
click menu item "nestim AirPods Pro" of menu 1 of result
if value of attribute "AXMenuItemMarkChar" of menu item "Transparency" of menu 1 of result is "✓" then
click menu item "Noise Cancellation" of menu 1 of result
return "Noise Cancellation active"
else
click menu item "Transparency" of menu 1 of result
return "Transparency mode active"
end if
on error
tell application "System Events"
key code 53
end tell
end try
end tell
end tell

来源:
https://www.reddit.com/r/AirpodsPro/comments/e6y2av/applescript_to_switch_between_noise_cancellation/
PerFectTime
2020-12-25 15:01:39 +08:00
nestim AirPods Pro 换成你的 AirPods 名称
PerFectTime
2020-12-25 15:31:48 +08:00
试了一下,下面这个验证是可用的

set AIRPODS_PRO_NAME to "你的 AirPods Pro"
set ANC to "降噪"
set TRANSPARENCY to "通透模式"

tell application "System Events"
tell process "SystemUIServer"
tell (menu bar item 1 of menu bar 1 whose description begins with "volume") -- find volume menu bar item
click
delay 0.1
tell (menu item 1 of menu 1 whose name contains AIRPODS_PRO_NAME) -- find airpods menu item
click
tell menu 1 -- open airpods menu
if value of attribute "AXMenuItemMarkChar" of menu item ANC is missing value then
click menu item ANC -- switch to ANC
else
click menu item TRANSPARENCY -- switch to Transparency
end if
end tell
end tell
end tell
end tell
end tell

来源 https://www.reddit.com/r/applescript/comments/hk2hh1/script_to_switch_airpods_pro_mode/
windirt
2020-12-25 18:05:26 +08:00
取下耳机来,又快又有礼貌
gps949
2020-12-25 18:11:32 +08:00
@windirt
关于戴着耳机(支持通透模式的)是否礼貌这件事,让我想到一个问题,最开始出现眼镜时,是不是也是戴着眼镜跟人说话不礼貌?
JerryChan31
2020-12-25 18:37:51 +08:00
@gps949 我觉得眼镜不能作为恰当的类比,戴着降噪耳机别人没有办法确认你是不是有在听他说话,但戴眼镜不妨碍。
xinbaqiu
2020-12-25 23:20:17 +08:00
@JerryChan31 这个判断的前提如果是戴着耳机和别人说话然后导致没听清,需要对方重复一次,那可能会有点不礼貌。但是如果能听清楚不妨碍沟通,那么戴与不戴应该也没有差别
Augoror
2020-12-26 12:07:05 +08:00
@gps949 戴眼镜是提升视力,戴耳机是降低听力。硬要对比的话应该是摘下眼镜看人是不是不礼貌

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/738890

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX