A MacBook trackpad with no speaker can still talk using its haptic motor
Nospeaker ─ Make your MacBook's trackpad talk using its haptic motor
NoSpeaker drives the Force Touch trackpad's haptic motor up to 4,000 times a second, fast enough to turn the glass into a speaker. It reads a line through macOS's own voice, extracts the two strongest formants every 10 ms, and plays them as tones, so the trackpad talks, sings, and raps. One Swift file, no dependencies, about a minute and a half to run.
Mute your Mac. Your trackpad will still talk.
- soci
100+ messages already but seems nobody here has tried it yet. Well, I just did.
Absolutely impressive how loud it sounds. This must be ruining my trackpad haptic motor for sure.
Also, although it may not be an intended feature, I find it awesome that it "speaks" in the language set in your Mac. I have my Mac in Catalan, so spoken English sentences are difficult to comprehend, but Catalan ones sound quite "nice" as it let's you type whatever you want to hear.
- sirwhinesalot
As impressive as this is, the fact that clicking that unmoving slab feels like pressing a button is far more impressive.
- emptybits
For those “into” this sort of thing, and of a certain vintage, you’ll know about using the motor in the Commodore 1541 floppy drive to similar effect.
But I only just discovered this ... generating video and audio from just the floppy drive, no computer, since the drive has its own 6502-ish CPU.
https://youtu.be/zprSxCMlECA?si=a8D39bAiKajNZ1Nb
Matthias Kramm is a god-level hacker.
- arlattimore
The author has an example on his X profile:
- bze12
This is sweet! I’ve always thought haptics were such an underused medium
I’m working on a project in the same spirit — it’s a haptic-synced music player (for iPhone)
https://boombap.biz/clips/55359af6-4a03-4498-b410-453338003f...
The idea is for artists to share haptic teaser clips of their music
- postalcoder
This reminds me of the good ol days when computers had a tiny piezoelectric speaker to play rudimentary beeps. I remember keeling over laughing when a friend showed me you could actually play music through it (terribly). It was so absurd.
- jader201
Reminds me of the floppy disk setup making full-on music.
FF7 boss theme:
https://www.youtube.com/watch?v=RLXQpJgZklk&t=24s
(Actual theme for comparison: https://www.youtube.com/watch?v=z_GUWdkJQgw)
- mandeepj
> NO SPEAKER drives that motor up to 4,000 times a second
How long before that motors dies due to that imposed and newly formed wear and tear? Will Apple care honor a replacement? I don’t think so, given how picky they are.