Apple's MacBook Trackpad Can Double as a Speaker: Open-Source Tool nospeaker Uses Haptic Motor to Produce Sound
IT之家 November 23 news: The reason a MacBook's trackpad gives users the sensation of a click is that a haptic motor beneath the glass panel vibrates, simulating the feel of a finger press. A new open-source tool called nospeaker has actually put this motor to use, making the MacBook trackpad produce sound directly.

According to IT之家, this curious little utility was developed by Cody Collier, and the project is open-sourced on GitHub under the developer account os6. The tool runs from the command line and can use the trackpad to play macOS system speech, converting text into voice output, and it also supports playing a gradually rising tone. It cannot, however, play music, YouTube videos, or other audio files.
The key to this tool lies in the vibration speed of the haptic motor. According to the project description, nospeaker can drive the motor at frequencies of up to 4000 times per second, causing the glass panel to vibrate rapidly and thereby producing sound audible to the human ear.
Specifically, the tool first calls the built-in macOS speech function to generate speech, then analyzes the audio every 10 milliseconds, extracting information such as two formants, loudness, and pitch, and then converts this information into two tones played through the motor. Sounds with hissing, meanwhile, are converted into short, high-frequency tones.
The resulting sound, though clearly robotic in tone, is surprisingly loud. Collier's measurements found that the setup can produce fairly strong sound across a frequency range of roughly 100 Hz to 4 kHz, though there are noticeable output blind spots in some bands, with the clearest sound quality around 1 kHz.
A simple test on a MacBook also showed that the sound from the trackpad is enough to serve as a makeshift speaker. The developer also suggests users mute the Mac and place the computer on a desk to reduce extra noise.
However, this tool does not use Apple's publicly available haptic feedback API. Apple's public API offers only three fixed haptic feedback effects, so nospeaker instead uses the private MultitouchSupport framework. That also means future macOS system updates could cause the tool to stop working properly.
Collier says the tool will not drive the haptic motor beyond its maximum strength during normal operation.
On the hardware side, any Mac equipped with a Force Touch trackpad should be able to run this tool, including MacBooks released in 2015 and later, as well as Magic Trackpad 2 and newer models. System requirements: Apple silicon Macs need to run macOS 12 or later, while Intel Macs need macOS 13 or later.
Currently, Collier has only completed testing on a MacBook Pro with an M5 Max chip. The project uses the MIT open-source license and is free for users.
Related Articles
- 2017/2018 MacBook Pro and 2018 MacBook Air officially added to Apple's vintage list
- Apple's future Mac product roadmap revealed: OLED MacBook Pro, new iMac and more on the way
- Restocked in most regions: M5 MacBook Air 16+512G from 6119 yuan on JD.com after national subsidy
- Sigmaintell forecast: Apple expected to become the world's third-largest notebook manufacturer this year
- Finding the MacBook's bezel uncomfortable, user files down the chassis corners
- M5 MacBook Air 16+512G from 6544 yuan on JD.com, national subsidy with 12-month interest-free installments