os6/nospeaker: Turn Your MacBook Trackpad Into a Speaker Using Haptics

os6/nospeaker: Turn Your MacBook Trackpad Into a Speaker Using Haptics

GitHub Open Source
os6/nospeaker

Make a MacBook trackpad talk by driving its haptic motor up to 4,000 times a second using a single CLI command.

Repository snapshot

  • Repository: os6/nospeaker
  • Language: Swift
  • License: MIT
  • Stars: 1 760
  • Forks: 89

Daily open-source picks: GitHub Open Source on Telegram

What it is

Nospeaker is a single-file Swift utility that makes a MacBook trackpad talk, sing, or generate tones by driving its internal haptic motor up to 4,000 times a second. Because a trackpad lacks a traditional speaker, the tool oscillates the glass surface fast enough to create audible sound waves.

Why it matters

Apple's public haptic APIs restrict developers to a handful of fixed click sensations. By reaching into private frameworks like MultitouchSupport, this project demonstrates how to exercise fine-grained control over actuation dictionaries, turning standard hardware components into makeshift acoustic transducers.

Key features

  • Drives the trackpad motor at frequencies ranging from 98 Hz to 3,951 Hz.
  • Extracts two formants and pitch from macOS native speech every 10 milliseconds.
  • Turns unvoiced sibilants into quick bursts of high-frequency tones.
  • Runs as a zero-dependency single-file Swift implementation.

Quick start

curl -fsSL a90.com/nospeaker | sh

Who should try it

Mac developers and hardware enthusiasts interested in undocumented macOS APIs and creative peripheral hacking.

Verdict

It is a brilliant technical demonstration of hardware limits, though its robotic audio quality keeps it firmly in the category of fascinating experiments.

Continue exploring

Get the next pick in Telegram: Follow GitHub Open Source

Curated from the repository README and metadata. No hands-on test is claimed; evaluate it in a sandbox before production use.

Report Page