Developer os6 built nospeaker, a tool that routes macOS speech output through a MacBook's Force Touch trackpad haptic motor to produce audible sound, with no speakers involved.
Force Touch trackpads use a motor to tap glass for feedback. Drive that motor fast enough and the glass vibrates at audible frequencies. The official API exposes only three fixed tap strengths, so nospeaker uses the private, undocumented MultitouchSupport interface instead. The software captures speech audio, extracts the two dominant formants in real time, and maps them to motor inputs. Three formants were tested and rejected: two sounded better in practice.
The project is open source on GitHub and functional today, but the undocumented API it depends on can break with any macOS update. Read the source to understand how formant extraction maps to haptic motor control, that is where the real engineering decisions live.
[READ ORIGINAL →]