Nospeaker makes a MacBook trackpad talk using its haptic motor

Nospeaker is a free, MIT-licensed macOS command-line tool by Cody Collier that turns a MacBook trackpad into a speaker. The README's pitch: "Mute your Mac. Your trackpad will still talk." A MacBook trackpad has no speaker, only a small haptic motor that taps the glass so you feel a click. Nospeaker drives that motor up to 4,000 times a second, fast enough to make audible sound, and shapes it into a voice. According to the README it talks, sings, raps and becomes an instrument under your finger.
Running it starts a demo show of about a minute and a half. The README suggests three things: mute the Mac (it still talks, which is the point), put the laptop on a table (on a lap it is much quieter), and keep your hands off the glass until the show asks you to touch it. Space skips a part; q or Ctrl-C jumps to the end. You can also run it with your own text (./nospeaker "hello there"), pick another macOS voice (--voice Daniel), play a rising sweep tone from 100 Hz to 4 kHz (--sweep), and use --dark, --plain or --external, which plays through an external Magic Trackpad.
How the voice is made: macOS's own voice speaks the line into memory. Every 10 ms, linear prediction finds the voice's two strongest resonances (formants), its loudness and its pitch. The motor plays those two resonances as tones, restarted on every beat of the pitch so they buzz like a voice instead of whistling. Hiss sounds such as s, f and t become quick bursts of high tones. The author reports that two resonances beat three in a blind test: they were clearer and louder, because the motor's strength is split fewer ways. The result sounds robotic and is much easier to follow when you can read along, which is why the show types each line as it speaks.
How the motor is reached: Apple's public haptics API offers only three fixed taps. Nospeaker instead uses MultitouchSupport, the private framework macOS uses for the trackpad. Its function MTActuationCreateFromDictionary takes a description of a vibration, a list of sine tones each with a frequency, a strength and a length, and MTActuationActuate plays it on the motor. The function names were learned from the open-source Tactile project; everything else was measured on a MacBook.
The README also charts the range, measured with the MacBook's own microphone at every semitone from 98 Hz to 3,951 Hz. Loudness runs from +16 to +34 dB over a quiet room. The sound is loud from about 100 Hz to 4 kHz, with a few dead spots where the glass resonates, and the loudest, cleanest notes sit around 1 kHz, which covers the most important part of a voice. The chart marks that public notes stop at 600 Hz. The sound is quiet overall because the motor is built for short taps, not for sound.
Requirements: a Force Touch trackpad (built into MacBooks from 2015 on, or a Magic Trackpad 2 or newer) and macOS 12 or later. Without a Force Touch trackpad the tool says so and exits. Tested so far: a MacBook Pro (Mac17,10) with an M5 Max on macOS 27.2.1, where everything works, and an Intel MacBook Pro (MacBookPro15,1) on macOS 15.7.4, which works when built from source. Not tested yet: a Magic Trackpad and macOS versions older than 15. Loudness differs between trackpads, and the author asks anyone who tries another Mac to open an issue with the model, macOS version and how it sounded.
Install is a one-liner, curl -fsSL a90.com/nospeaker | sh, which downloads the latest release to ~/.local/bin/nospeaker and starts the show; a90.com/nospeaker points to play.sh in the repo so you can read it first. Alternatively, download nospeaker.zip from the latest release (signed with a Developer ID and notarized by Apple), or build from source with Xcode or the Command Line Tools via ./build.sh. Built with only the Command Line Tools, the Intel part needs macOS 13 or later. The code is one Swift file, nospeaker.swift, with no dependencies.
Key facts
- Nospeaker is an MIT-licensed macOS command-line tool by Cody Collier that drives a MacBook trackpad's haptic motor up to 4,000 times a second to produce audible speech, singing and tones.
- It has the macOS voice speak a line, finds the two strongest formants every 10 ms with linear prediction, and plays them as tones on the motor via the private MultitouchSupport framework.
- The measured range runs from 98 Hz to 3,951 Hz; it is loud from about 100 Hz to 4 kHz, with the cleanest notes around 1 kHz, and much quieter on a lap than on a table.
- It needs a Force Touch trackpad and macOS 12 or later; tested on an M5 Max MacBook Pro (macOS 27.2.1) and an Intel MacBook Pro (macOS 15.7.4), not yet on a Magic Trackpad or macOS older than 15.
- The author warns that MultitouchSupport is private and undocumented, so a macOS update could break the tool.
Why it matters
This is a working, playable demonstration that a part built only to give a click can produce recognisable speech when driven at audio rates. Apple's public haptics API offers only three fixed taps; the project gets past that by describing vibrations as sine tones through a private framework, then builds a small formant-based voice synthesiser on top of it. It is a hobbyist-scale curiosity rather than a product, but it is fully documented in the README, down to the signal path from macOS speech to formants to two tones to the motor.
Who it affects
Mac users with a Force Touch trackpad, meaning MacBooks from 2015 on, or a Magic Trackpad 2 or newer, who want to try the demo. Developers interested in haptics, audio synthesis or the private MultitouchSupport functions can read the single Swift file, which has no dependencies. Anyone using older macOS or a Magic Trackpad is in untested territory.
How to use it
The quickest route is the one-liner: curl -fsSL a90.com/nospeaker | sh, which downloads the latest release to ~/.local/bin/nospeaker and starts the demo of about a minute and a half. You can read play.sh in the repo first. You can also unzip nospeaker.zip from the latest release and run ./nospeaker, or clone github.com/os6/nospeaker and run ./build.sh. Useful options: ./nospeaker "hello there" to say your own text, --voice Daniel for another macOS voice, --sweep for a 100 Hz to 4 kHz rising tone, --dark, --plain, and --external for an external Magic Trackpad. Put the laptop on a table; on a lap it is much quieter. The code is MIT licensed.
How solid is it
The claims come from the author's own README, and the project is presented with a working demo. The README says everything other than the function names was measured on a MacBook, using the machine's own microphone, and lists two tested machines: an M5 Max MacBook Pro on macOS 27.2.1 where everything works, and an Intel MacBook Pro on macOS 15.7.4 where it works when built from source. The blind test that favoured two formants over three is reported by the author without further detail. The release is signed with a Developer ID and notarized by Apple.
Risks and caveats
MultitouchSupport is private and undocumented, so, in the author's words, a macOS update could break the tool. Older systems may lack the functions it uses, and loudness differs between trackpads; a Magic Trackpad and macOS older than 15 have not been tested. The sound is quiet, robotic and best followed with the on-screen text. On the safety question the README says the tool never drives the motor past its normal maximum strength, because going past it is louder but the driver starts to stall; this is the author's own statement. The suggested install pipes a downloaded script into the shell, which is why the README points to play.sh so you can read it first.
“There's no speaker in a MacBook trackpad, just a small haptic motor that taps the glass so you feel a click.”
— Nospeaker README, Cody Collier