Prototype of os6/nospeaker · rebuilt in the browser

Trackpad Voice

A MacBook trackpad has no speaker, only a haptic motor that taps the glass. nospeaker makes it talk by playing a voice's two strongest resonances on that motor, restarted on every pitch beat.

This page runs the same pipeline on your speakers, with a model of the glass taken from the project's own measurements. Pick a line, press Trackpad, then change one knob at a time.

The player needs JavaScript and sound. Every finding is in the note.
Hello. I am your trackpad.
Resonances played
nospeaker ships two.
Motor strength
Shared: strengths sum to the motor's maximum, as nospeaker does. Unlimited: each tone keeps its two-tone strength.
Restart on each pitch beat
Off: smooth tones. They whistle instead of buzzing like a voice.
Through the glass
On: shaped by the trackpad's measured loudness per note.
0 dB is a quiet room, 34 dB under the trackpad's loudest note (the README's figure). Each 6 dB is twice the noise.
How it works

Five stages, one of them is the trick

SpeechmacOS say, 16 kHzFormantsLPC every 10 msTwo tonesF1+F2, sum ≤ 1Motorone call per pitch beatGlass100 Hz–4 kHz, quietthe trick: tones restarted on every pitch beat, so the glass buzzes like a voice

macOS's own voice speaks the line into memory. Every 10 ms, linear prediction finds the formants, the loudness and the pitch. The motor's private API takes a list of sine tones with a frequency and a strength each, and nospeaker plays one such list per pitch period. Restarting the tones on every period is what turns two whistles into one buzzing voice. Toggle the restart above to hear it.

F1F2F3+16+22+28+341002005001k2k4kHz (log)dB

The glass, from the README: loudness over a quiet room for every semitone from 98 Hz to 3,951 Hz, measured with the MacBook's microphone. The bands show where F1, F2 and F3 usually sit for an adult voice.

The claim I tested

“Two resonances beat three”

The README says two tones beat three in a blind test, “because the motor's strength is split fewer ways.” In my test the three rules tie in a quiet room; three tones sharing the motor's strength fall behind only as the room gets louder, and three tones with their own strength never do worse than two. The numbers, the method and what would make this wrong are in the note: Why a talking trackpad plays two notes, not three.

Your turn

Blind test: which is clearer?

Each round plays one line two ways, two tones and three tones, both through the glass with a shared budget and the room noise set above. The order is random. Play both, pick the clearer one. After ten rounds the tally is revealed.

No rounds yet.