让触控板唱得更动听 一场声音实验Making the Trackpad Sing: A Sound Experiment


AI free token/AI免费积分

让触控板唱得更动听 一场声音实验

塞缪尔·约翰逊曾说过一句关于狗用后腿走路的话:不在于它走得好不好,而在于它居然做到了。我们觉得 [os6] 的 nospeaker 项目大致就是这种感觉。它利用 MacBook 触控板里的触觉扬声器来发声,你可以在下面嵌入的 X 帖子中听到效果。

要实现这个技巧,你需要一块 Force Touch 触控板。这类触控板内部有一个电机,会敲击玻璃面板给你触觉反馈。但如果驱动电机的速度足够快,玻璃的振动就会发出音调。当然,官方 API 只提供三种固定的敲击方式,此外还有一个私有的、未公开的 MultitouchSupport 接口。

为了让它工作,系统会捕获 macOS 的语音输出,然后找出其中最强的两个共振峰,把它们送给电机。理论上可以使用三个共振,但实际听起来不如用两个效果好。

自然而然地,由于这个 API 并未公开,它随时可能失效。当然,你也可以用硬盘之类的东西来制作音乐。

本文来源:https://hackaday.com/2026/11/23/it-isnt-that-the-trackpad-sings-well/
若有版权问题,请来信告知:13951431913#139.com 或在右方提交评论。

Making the Trackpad Sing: A Sound Experiment

[Samuel Johnson] once remarked something about when a dog walks on its hind legs, it isn’t that it is done well, it is that it’s done at all. We imagine that’s what [os6]’s nospeaker project is like. It uses the haptic speaker in a MacBook trackpad to generate sound. You can hear it in the X post , embedded below.

To make the trick work, you need a Force Touch trackpad. These trackpads have a motor that taps glass to give you feedback. But if you drive the motors fast, the glass vibrating will make tones. Of course, the official API only offers three fixed taps. Then there is the private and undocumented MultitouchSupport interface.

To make it work, the system captures speech output from macOS and then finds the two strongest formants and feeds them to the motors. In theory, it is possible to use three resonances, but in practice that didn’t sound as good as using two.

Naturally, since the API is undocumented, it could quit working at any time. Of course, you can make music from things like hard drives , too.

本文来源:https://hackaday.com/2026/11/23/it-isnt-that-the-trackpad-sings-well/
若有版权问题,请来信告知:13951431913#139.com 或在右方提交评论。

暂无评论,快来发表第一条评论吧!No comments yet. Be the first!

📮 需求咨询📮 Inquiry