TL;DR: This tool bypasses standard public haptic limitations by tapping into private macOS frameworks like MultitouchSupport. It takes generated speech, breaks it down into formants every 10 milliseconds, and translates those frequencies into precise sine tones played directly on the trackpad glass.
Best for: Mac developers and tinkerers curious about macOS hardware internals and private APIs.
Repository snapshot: ⭐ 1 760 stars · 🍴 89 forks · Swift · MIT
Daily picks: Follow GitHub Open Source on Telegram
What it is
nospeaker is a single-file Swift command-line utility that bypasses standard public haptic limitations on macOS. It taps into private frameworks like MultitouchSupport to drive a MacBook or external Magic Trackpad haptic motor at frequencies ranging from 98 Hz to 3,951 Hz, effectively turning the trackpad glass into a miniature speaker.
How it works
The tool takes generated speech, breaks it down into formants and pitch every 10 milliseconds, and translates those frequencies into precise sine tones. Unvoiced sounds such as s, f, and t are converted into high-tone bursts, which are then played directly on the trackpad glass via rapid motor vibrations.
Key features
- Drives the trackpad motor up to 4,000 times a second
- Extracts the two strongest formants and pitch from macOS native speech every 10 ms
- Translates unvoiced sounds into high-tone bursts
- Supports both built-in MacBook trackpads and external Magic Trackpads
- Single-file Swift implementation with zero external dependencies
Getting started
Clone the repository and run the Swift file directly from your terminal using the provided command structure. Ensure you are running on compatible Apple Silicon hardware where private haptic frameworks can be tested.
When not to use it
This is strictly a hardware hack and a novelty for daily use. Do not rely on it for primary audio output or accessibility text-to-speech needs.
Discuss
Would you rather listen to synthesized voice output through your trackpad or your keyboard switches?
Curated from the repository README and metadata. No hands-on test is claimed; evaluate it in a sandbox before production use.
Top comments (0)