element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Blog The Swear Bear
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
GPIO Pinout
Raspberry Pi Wishlist
Comparison Chart
Quiz
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: 8bitsandabyte
  • Date Created: 16 Nov 2020 9:54 AM Date Created
  • Views 1380 views
  • Likes 7 likes
  • Comments 2 comments
Related
Recommended
  • 8 bits and a byte
  • google aiy
  • swear jar
  • raspberry pi
  • internet of thing
  • google aiy voice kit
  • invention

The Swear Bear

8bitsandabyte
8bitsandabyte
16 Nov 2020

Introduction

How does it work? Well, it listens to your every word and detects profanity (AI). When caught, it instantly tells on you to a very public data stream (IoT), not only revealing the committed crime but also providing timestamped proof.

 

Project Video


Hardware
image
It all starts with a Raspberry Pi, an AIY Voice kit and the LifePO4WERED Pi+. The Raspberry Pi orchestrates the data flow between the different platforms and provides computing power to our dirty language detection.
On top of our Raspberry Pi we add the LifePO4WERED Pi+, this module takes care of our power needs, and adds much appreciated portability. Last but not least, we also add a Google AIY Voice Kit which supplies a microphone for recording and speakers for some interaction. Both components have great support, here's guide on setting up the LifePO4WERED Pi+ and here's one on setting up the AIY Kit.
AI and IoT

 

image

 

With all the hardware set up, we move on to the software.To get the ball rolling, we first follow this guide on how to set up a custom voice interface using the AIY kit.

image

 

Next up, detecting profanity in the recorded text. Fortunately, a fantastic python library exists with, again, great documentation.

With the above all ready, we are now able to convert speech to text, and reliably catch any obscenity. This is a tremendous milestone, the artificial intelligence part is complete!

image

 

But, we also want to save all this data, and that's where ThingsSpeak comes to its own. As an open source Internet of Things platform it contains everything we need. It not only stores our results, but also allows for public sharing. And as luck would have it, they also have a superb tutorial.

Last not but least, just to make life a tad easier, you can find the full Python code in this article.

Bear

image

 

Looks can matter, and our creation should look as cute as it is evil.And what better fit than a teddy bear? As luck would have it, we found a sweet little teddy waiting for us in the thrift store. It's cute as can be and, after removing the heating pad from its insides, it has a just enough space for all the electronics.

image

 

It is quite a fiddly job to get everything to fit, but once done, it does look absolutely adorable!

This step is very much optional, you can put these electronics in any vessel you like.

Result

image

 

To test our great innovation, we activated it during filming, and the results are in!You can browse all the data gathered during this 15 minute session right here.

And now, lets finish this questionable project with a fun fact:

28% of the recorded conversation contained profanity.

Well ****.

  • Sign in to reply

Top Comments

  • dougw
    dougw over 5 years ago +3
    At the school I went to, inventive profanities were an art form - and used a lot more than 28% of the time. It is a struggle to curb the tendency....
  • beacon_dave
    beacon_dave over 5 years ago

    If you want to keep it educational, perhaps test it out on lexicographer/etymologist Susie Dent's history of swear words. image

     

    Susie Dent Swears!! History of Swear Words

    https://www.youtube.com/watch?v=C26xJT4BT0E

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • dougw
    dougw over 5 years ago

    At the school I went to, inventive profanities were an art form - and used a lot more than 28% of the time.

    It is a struggle to curb the tendency....

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube