

This bit of space-saving means we could install the full assembly inside the 3D-printed case along with the printer. A Pico HAT Hacker allowed the connection of both the printer and Speaker pHAT, as they don’t share GPIO pins. The easiest solution is to use USB for all three.Īfter prototyping using Raspberry Pi 4 and various USB devices, we settled on Raspberry Pi Zero W with a small USB mic and Pimoroni Speaker pHAT to save space. Your Raspberry Pi needs a method for listening, speaking, and printing. We built a full ‘boxed’ project, but you can keep it simple if you wish. Not only can it replicate detecting banned words, but it also doubles as a handy voice-to-paper stenographer (if you want a more serious use).

This tutorial shows you how to build your own version using Raspberry Pi, the Google Voice API, and a thermal printer.

In the future of Demolition Man, an always-listening government machine detects every banned word and issues a fine in the form of a receipt from a wall-mounted printer. In a memorable scene, he is repeatedly punished by a ticketing machine for using bad language (a violation of the verbal morality statute). Technology plays a central role in the film, often bemusing the lead character. In the 1993 action movie Demolition Man, Sylvester Stallone stars as a 1990s cop transported to the near-future.
