Developer Cody Collier’s open-source nospeaker uses a MacBook’s haptic motor to produce speech and rising tones, though it cannot play music or other audio files.
Last updated
Developer Cody Collier, using the GitHub account os6, created nospeaker, a command-line open-source tool that uses the haptic motor beneath a MacBook trackpad to produce audible sound. It can invoke macOS text-to-speech and play rising tones.
The tool analyzes generated audio every 10 milliseconds, extracting information such as two formants, loudness and pitch, then converts it into two tones driven through the motor. Sibilant sounds are represented as short, high-frequency tones.
Collier measured strong output from about 100 Hz to 4 kHz, with clearer sound around 1 kHz and blind spots in some frequency ranges. The resulting audio has a distinctly robotic character, but testing showed it can serve as a temporary speaker; placing the Mac on a desk and muting it can reduce extra noise.
nospeaker does not use Apple’s public haptic-feedback API. Instead, it relies on the private MultitouchSupport framework, so future macOS updates could break compatibility. Macs with Force Touch trackpads should support it, including MacBook models from 2015 onward and Magic Trackpad 2 or newer; Apple silicon Macs require macOS 12 or later, while Intel Macs require macOS 13 or later. Collier has tested it only on an M5 Max MacBook Pro, and the project is available free under the MIT license.
The stated testing record for nospeaker is more specific than the existing copy: Cody Collier tested it on a MacBook Pro identified as Mac17,10, with an M5 Max chip and macOS 27.2.1. The existing claim that testing was performed on an M5 Max MacBook Pro remains accurate, but this adds the model identifier and operating-system version.