How can you really know when your smart speaker is listening and sending data to the cloud? There have been documented cases in which up to a minute of speech has been transferred to the cloud without a wake-word having been spoken.
Speaker Snitch can give an absolute answer to this question by sniffing local network traffic and flashing a light sitting next to the speaker any time there is traffic between the speaker and the vendor's cloud service.
Things used in this project
How It Works
A Raspberry Pi computer promiscuously sniffs packets on the local network. A Python script parses these packets, looking for any communication between the smart speaker and the vendor's cloud service. When detected, an API endpoint on an Arduino Nano 33 IoT microcontroller development board is accessed. This causes an LED attached to the Arduino to flash, thus alerting you to a speaker sending data to the vendor.
A single Raspberry Pi can trigger alerts on a number of Speaker Snitch devices all throughout your home.
Packet parsing and control of the Speaker Snitch devices is handled by a simple Python script. From the Raspberry Pi, the script is launched with:
sudo tcpdump -U -i wlan0 host [SPEAKER IP ADDRESS] | stdbuf -o0 python3 -u snitch.py
sudo tcpdump -U -i wlan0 host 192.168.1.196 | stdbuf -o0 python3 -u snitch.py
The Arduino devices are controlled by this sketch.
Speaker Snitch, top:
Speaker Snitch, angle:
Raspberry Pi 3 B+:
Bill of Materials
- 1 x Raspberry Pi 3 B+ (or similar)
- 1 x Arduino Nano 33 IoT
- 1 x NeoPixel RGB LED
- 1 x Battery pack (for Arduino)
- Miscellaneous wires
About the Author
R&D, creativity, and building the next big thing you never knew you wanted are my specialties.
This content is provided by our content partner Hackster.io, an Avnet developer community for learning, programming, and building hardware. Visit them online for more great content like this.