hn.today

Nospeaker ─ Make your MacBook's trackpad talk using its haptic motor

github.com312 points174 comments
Screenshot of Nospeaker ─ Make your MacBook's trackpad talk using its haptic motor

Nospeaker is a macOS program that makes a MacBook’s Force Touch trackpad produce audible speech, music, and tones without using speakers. It repurposes the trackpad’s haptic motor, which normally taps the glass to simulate clicks, by driving it at frequencies high enough to make the glass vibrate audibly. The project argues that the motor can cover much of the voice range: measurements using a MacBook microphone found audible output from roughly 100 Hz to 4 kHz, with the clearest, loudest notes near 1 kHz. Results vary by frequency and trackpad, and some notes sound more like a buzz than a clean tone.

For speech, macOS first generates spoken audio; Nospeaker analyzes it in 10-millisecond segments, identifies two prominent vocal resonances, pitch, and loudness, then reproduces those resonances through the motor. Short bursts represent hiss sounds such as “s” and “f.” The output is robotic and easier to understand when read along with the program’s displayed text. Users can run a one-line installer, download a notarized release, or build the single-file Swift program; options include speaking custom text, choosing a macOS voice, and playing a frequency sweep. It requires a Force Touch trackpad and supported macOS versions, and its use of an undocumented private Apple framework could break after system updates. The motor stays within its normal maximum strength, but sound levels differ across devices.

Read on github.com174 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Hardware

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.