Nospeaker ─ Make your MacBook's trackpad talk using its haptic motor github.com ...
HN Best 200 @best
Nospeaker ─ Make your MacBook's trackpad talk using its haptic motor github.com · 24 points · 4 comments · HN thread
TL;DR Nospeaker is a macOS command-line program by Cody Collier that drives the haptic motor under a MacBook's Force Touch trackpad with sine tones so it produces audible speech, singing and simple music. It uses the private MultitouchSupport framework and macOS's built-in voices, and the project is MIT licensed. The thread is short, with four comments that mostly praise the idea and ask for a demo video.
- The trackpad has no speaker; a haptic motor that taps the glass is driven up to about 4,000 times a second to produce audible sound.
- Setup is one curl command or a release zip; the program speaks a line of text using macOS voices, with options for other voices and a frequency sweep.
- The motor's audible range is roughly 100 Hz to 4 kHz, with the loudest clean notes near 1 kHz, measured with the MacBook's own microphone.
- Speech is made by taking two formants, loudness and pitch from macOS's speech output every 10 ms and playing them as tones, which the author says was clearer than using three.
- It stays within the motor's normal maximum strength, and the author notes that driving it harder is louder but stalls the driver.
- Tested only on an M5 Max MacBook Pro running macOS 27.2.1; Intel Macs, Magic Trackpads and older macOS versions are untested. MultitouchSupport is private, so a macOS update could break it.
Discussion The thread is brief and mostly enthusiastic. One commenter calls it the best hacker content they have seen in a while, and another asks for a demo video because the project's description is hard to picture without hearing it. A reply links a short video posted on a social media mirror, and the last commenter notes that it would make good pranks. Nobody in the thread discusses the technical details, the private API, or safety.
- Impressive hack, worth celebrating (most): Commenters praise the project as a clever and unusual use of hardware. One calls it the best hacker content seen in a while.
- Wants a demo to judge it (some): One commenter asks for a demo video, since the sound is hard to imagine from the write-up alone. Another comment links a clip that appears to serve that purpose.
- Useful for pranks (a few): One commenter says the ability to make a silent laptop talk would allow for practical jokes.
Links from the comments