GitHub Open Source
1.98K subscribers
3.13K photos
3.38K links
๐ŸŒŸ GitHub Open Source ๐ŸŒŸ

Discover fascinating projects from GitHub! We curate the best repositories, highlight innovative ideas, and share tips for developers. Join us to explore hidden gems and fuel your tech passion! ๐Ÿš€
Download Telegram
๐Ÿš€ nospeaker ยท ๐Ÿ“ฆ os6/nospeaker
Make a MacBook trackpad talk by driving its haptic motor up to 4,000 times a second using a single CLI command.
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
โญ 1 760 stars ยท ๐Ÿด 89 forks
๐Ÿ•Š๏ธ Swift ยท ๐Ÿ“œ MIT ยท ๐ŸŸข commit today
๐Ÿ‘ฅ 3 contributors

You type a phrase into your terminal, mute your laptop speakers, and wait for sound to emerge.

MacBook trackpads contain no physical speakers, limiting feedback to standard tactile clicks.

Nospeaker bypasses the public three-tap haptic API to oscillate the glass into audible speech, though it still sounds heavily robotic.

๐Ÿงญ How it works
This tool bypasses standard public haptic limitations by tapping into private macOS frameworks like MultitouchSupport. It takes generated speech, breaks it down into formants every 10 milliseconds, and translates those frequencies into precise sine tones played directly on the trackpad glass.

Because the motor vibrates fast enough to generate audible sound, the glass itself functions as a miniature speaker.

โœจ Key features
โ–ธ Drives the trackpad motor at frequencies ranging from 98 Hz to 3,951 Hz
โ–ธ Extracts two strongest formants and pitch from macOS native speech every 10 ms
โ–ธ Translates unvoiced sounds like s, f, and t into high-tone bursts
โ–ธ Supports external Magic Trackpads alongside built-in MacBook trackpads
โ–ธ Single-file Swift implementation with zero external dependencies

๐ŸŽฏ Who should try it
Mac developers and tinkerers curious about macOS hardware internals and private APIs.

๐Ÿ“Œ Why it matters now
It demonstrates a clever misuse of private haptic frameworks that became newly testable on modern Apple Silicon hardware.

โœ… Verdict
An impressive hardware hack for an afternoon, but strictly a novelty for daily use.

๐Ÿš€ Quick start
curl -fsSL a90.com/nospeaker | sh

โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
๐Ÿ’ฌ Your take?
Would you rather listen to synthesized voice output through your trackpad or your keyboard switches?
๐Ÿ”– Save it for later โ€” and drop your use case in the comments.

๐Ÿ”— GitHub repository
๐Ÿ“– Full breakdown
๐ŸŒ Project homepage

๐Ÿ“ฃ @GitHub_Open_Source โ€” daily open-source picks

========================================
#opensource #swift #cli #haptics