首页 时政热点 科技头条 智能AI 安全攻防 数码硬件 开发者生态 归档 标签 关于

Nospeaker ─ 使用触觉电机让 MacBook 的触控板说话

摘要

──────────────────────── a90.com presents ───────────────────────── _ __ ____ _____ ____ ______ ___ __ __ ______ ____ / | / // __ \ / ___/ / __ \ / ____// | / //_/ / ____// __ \ / |/ // / / / \__ \ / ...

nospeaker ____ the and ___ com voice trackpad your you
2026-11-23 1 阅读 约10分钟阅读 yakkomajuri
分享:
字号:
────────────────────── a90.com 呈现 ────────────────────── _ __ ____ _____ ____ __ ___ __ __ __ ____ / | / // __ \ / ___/ / __ \ / ____// | / //_/ / ____// __ \ / |/ // / / / \__ \ / /_/ // __/ / /| | / ,< / __/ / /_/ / / /| // /_/ / ___/ // ____// /___ / ___ | / /| | / /___ / _, _/ /_/ |_/ \____/ /____//_/ /_____//_/ |_|/_/ |_|/_____//_/ |_| ─ haptic voice synthesis ───────────────────────────── trackpad ─ Mute your Mac.您的触控板仍然会说话。 MacBook 触控板上没有扬声器,只有一个小型触觉电机,可以敲击玻璃,让您感觉到咔哒声。 NO SPEAKER 驱动该电机每秒高达 4,000 次,速度快到足以发出您可以听到的声音,并将其转化为声音。它会说话、唱歌、说唱,成为你手指下的乐器。一声令下。大约一分半钟。没有使用扬声器。 [ mute your mac ] it still talks; that's the point [ put it on a table ] on your lap it's much quieter [ hands off the glass ] until it asks you to touch it Space skips a part. q 或 Ctrl-C 转到末尾。 [ one line ] curl -fsSL a90.com/nospeaker | sh Downloads the latest release to ~/.local/bin/nospeaker and starts the show. a90.com/nospeaker points to play.sh in this repo, so you can read what it runs first. [ download ] Grab nospeaker.zip from the latest release , unzip it and run ./nospeaker in Terminal.使用开发者 ID 签名并经过 Apple 公证。 [ from source ] Needs Xcode or the Command Line Tools ( xcode-select --install ).为 Apple Silicon 和 Intel Mac 构建一个程序。 git clone https://github.com/os6/nospeaker cd nospeaker ./build.sh ./nospeaker ./nospeaker “你好”说点什么 ./nospeaker --voice Daniel “你好”用另一个 macOS 声音 ./nospeaker --扫描上升音,100 Hz 到 4 kHz --黑底白字 --plain 无视觉效果,纯文本 Force Touch 触控板(内置于 MacBooks from 2015 on, or a Magic Trackpad 2 or newer), and macOS 12 or later on Apple Silicon, or macOS 13 or later on Intel.如果没有 Force Touch 触控板,它会这样说并退出。 tested on MacBook Pro (Mac17,10) M5 Max macOS 27.2.1 everything works Not tested yet: Intel Macs, a Magic Trackpad, and older versions of macOS.多点触控支持是私有的,因此较旧的系统可能缺乏其使用的功能,并且触控板之间的响度有所不同。如果您在另一台 Mac 上尝试,请针对您的型号、macOS 版本以及声音提出问题。 say ──▶ formants ──▶ two tones ──▶ motor ──▶ glass per 10 ms F1 + F2 haptics sound Why you can hear it.触控板没有扬声器,但电机可以移动玻璃。每秒来回数百或数千次,玻璃的振动速度足以发出您可以听到的声音。 It's quiet because the motor is built for short taps, not for sound.电机。 MultitouchSupport is the private framework macOS uses for the trackpad.其函数 MTActuationCreateFromDictionary 接受振动的描述、包含频率、强度和长度的正弦音列表,然后 MTActuationActuate 在电机上播放它。 Apple 的公共触觉 API 仅提供三个固定点击。范围。使用 MacBook 自带的麦克风测量从 98 Hz 到 3,951 Hz 的每个半音:在安静的房间里有多大声响,以及音符本身占声音的多少。 │ ### │ #+# +++##### # │ +#+#+ .+++##### .# │ . ++++#+#+ .+++##### # #.# # │ ++ +. 。 #..+++++#+#++++.+++#####+ #####.### .# │ +++#. +...+#..++++++#+#++++.+++#####+ #####.####+ .# │ ++++#... +...+#..+++++#+#++++.+++######+.#####.####+ .# │ .++++#...++++...+#..+++++#+#++++.+++######+.######.####+ +# .# │..++++#...++++...+#..+++++#+#++++.+++#####+.#####.####+#.+# .#.# │..++++#...++++...+#..+++++#+#++++.+++#####+.#####.####+#.+#+..#.# └──────────────────────────────────────────────── 131 262 523 1047 2093 3951 公共音符停止于 600 Hz ─┘ across:每个半音,以 Hz 为单位 · up:响度,+16 至 +34 dB # 干净的音符 + fair 。 mostly buzz It's loud from about 100 Hz to 4 kHz, with a few dead spots where the glass
这篇文章对您有帮助吗?

订阅66必读

每日精选科技资讯,直达你的邮箱