Nospeaker: Make your MacBook's trackpad talk using its haptic motor github.com ·...

@best

Nospeaker: Make your MacBook's trackpad talk using its haptic motor github.com · 6 points · 0 comments · HN thread

TL;DR Nospeaker is an open-source macOS command-line tool that drives the haptic motor in a Force Touch trackpad to produce audible speech, singing and tones, so a muted MacBook's trackpad can talk. It uses the private MultitouchSupport framework to send custom vibration waveforms, and the author reports measuring the trackpad's sound output with the laptop's own microphone. The HN thread has no comments yet, so no community reaction is available.

  • The trackpad has no speaker; a haptic motor is driven up to about 4,000 times a second, which makes audible sound.
  • Speech is produced by macOS's own voice, analyzed every 10 ms with linear prediction, and the two strongest formants are played as tones.
  • Uses MTActuationCreateFromDictionary and MTActuationActuate from the private MultitouchSupport framework; Apple's public haptics API only offers three fixed taps.
  • Measured loudness from about 100 Hz to 4 kHz on a MacBook Pro M5 Max, with the strongest, cleanest notes near 1 kHz.
  • Requires a Force Touch trackpad (MacBooks from 2015 on, or Magic Trackpad 2 or newer) and macOS 12+ on Apple Silicon or 13+ on Intel.
  • Installable via a curl one-liner, a signed and notarized zip, or built from source with a single Swift file and no dependencies; MIT licensed.

Discussion No comments have been posted yet, so there is no discussion to summarize.

#macOS #haptics #trackpad #speechSynthesis #openSource #swift