V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
leeum
V2EX  ›  Apple

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

  •  
  •   leeum · 2020-12-25 14:16:33 +08:00 · 2662 次点击
    这是一个创建于 1434 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    11 条回复    2020-12-26 12:07:05 +08:00
    gps949
        1
    gps949  
       2020-12-25 14:20:14 +08:00
    AirBuddy
    GZK007
        2
    GZK007  
       2020-12-25 14:25:49 +08:00
    蓝牙点一下不是有三个模式吗
    leeum
        3
    leeum  
    OP
       2020-12-25 14:28:58 +08:00
    @GZK007 想设置成快捷键,方便一键切换,鼠标去点击感觉太慢哈。比如有的时候开着降噪听东西,有同事说句话,点击操作就太低效了
    PerFectTime
        4
    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
        5
    PerFectTime  
       2020-12-25 15:01:39 +08:00
    nestim AirPods Pro 换成你的 AirPods 名称
    PerFectTime
        6
    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
        7
    windirt  
       2020-12-25 18:05:26 +08:00 via iPhone
    取下耳机来,又快又有礼貌
    gps949
        8
    gps949  
       2020-12-25 18:11:32 +08:00
    @windirt
    关于戴着耳机(支持通透模式的)是否礼貌这件事,让我想到一个问题,最开始出现眼镜时,是不是也是戴着眼镜跟人说话不礼貌?
    JerryChan31
        9
    JerryChan31  
       2020-12-25 18:37:51 +08:00
    @gps949 我觉得眼镜不能作为恰当的类比,戴着降噪耳机别人没有办法确认你是不是有在听他说话,但戴眼镜不妨碍。
    xinbaqiu
        10
    xinbaqiu  
       2020-12-25 23:20:17 +08:00
    @JerryChan31 这个判断的前提如果是戴着耳机和别人说话然后导致没听清,需要对方重复一次,那可能会有点不礼貌。但是如果能听清楚不妨碍沟通,那么戴与不戴应该也没有差别
    Augoror
        11
    Augoror  
       2020-12-26 12:07:05 +08:00 via iPhone
    @gps949 戴眼镜是提升视力,戴耳机是降低听力。硬要对比的话应该是摘下眼镜看人是不是不礼貌
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3036 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 14:53 · PVG 22:53 · LAX 06:53 · JFK 09:53
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.