Разработчик Коди Коллиер создал программу NO SPEAKER, которая воспроизводит речь с помощью вибраций трекпада Force Touch. В демонстрации на MacBook он приглушил динамики, чтобы показать, что звук исходит от трекпада, сообщает Tom’s Hardware.[1][2]
«Я заставил трекпад моего MacBook говорить, используя только вибрации его тактильного мотора», — написал Коллиер. По данным MacRumors, в демонстрации звучат речь, мелодия, ритм и короткий рэп.[2][3]
Как пишет MacRumors, программа берёт запись, созданную встроенной функцией macOS для преобразования текста в речь, и разбивает её на короткие фрагменты. Затем она выделяет основные частоты, по которым можно распознать слова, и воспроизводит упрощённую версию звуков через мотор трекпада.[4]
Для управления скоростью и силой вибрации NO SPEAKER использует фреймворк MultitouchSupport, недоступный сторонним разработчикам, сообщает MacRumors. В обычном режиме мотор создаёт ощущение щелчка при нажатии на трекпад.[1][5]
По словам Коллиера, речь легче разобрать, если одновременно читать текст. Чтобы лучше слышать звук, разработчик рекомендует поставить MacBook на стол.[6]
The open-source project is called "NO SPEAKER," and comes from developer Cody Collier, who recently shared shared a demonstration on X. The tool uses the small haptic motor that normally makes a Force Touch trackpad feel as though it clicks.
i made my macbook trackpad talk using only the vibrations from its haptic motor my speakers are muted, every sound you hear is coming from the trackpad itself
To generate speech, the software starts with a voice created by macOS's built-in text-to-speech feature. It breaks the recording into tiny sections and picks out the main sound frequencies that make the words recognizable. The motor then reproduces a simplified version of those sounds through the trackpad.
The tool uses parts of macOS that Apple does not make available for third-party developers to use, namely the "MultitouchSupport" framework. These let it control how fast and strongly the trackpad vibrates, rather than simply trigger a preset click.
Collier says the words are easier to follow when reading the text displayed alongside them, and recommends placing the MacBook on a table to make the sound easier to hear.