GithubHelp home page GithubHelp logo

jermainlaforce / speaker_snitch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nickbild/speaker_snitch

0.0 0.0 0.0 50.93 MB

Speaker Snitch flashes a light when your smart speaker is sending data to the cloud.

Python 13.06% C++ 86.94%

speaker_snitch's Introduction

Speaker Snitch

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.

Snitch

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.

Use

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

For example:

sudo tcpdump -U -i wlan0 host 192.168.1.196 | stdbuf -o0 python3 -u snitch.py

The Arduino devices are controlled by this sketch.

Media

YouTube: https://www.youtube.com/watch?v=8SCS7iIHqxg

Speaker Snitch, top: Snitch

Speaker Snitch, angle: Snitch Angle

Raspberry Pi 3 B+: Pi

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

Nick A. Bild, MS

speaker_snitch's People

Contributors

nickbild avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.