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: 26 Jan 2021 12:45 PM Date Created
  • Views 4636 views
  • Likes 9 likes
  • Comments 23 comments
Related
Recommended
  • 8 bits and a byte
  • swear jar
  • raspberry pi
  • ai
  • invention

The Swear Bear

8bitsandabyte
8bitsandabyte
26 Jan 2021

Do you also swear too much?

Don't worry, this artificial intelligence powered, internet of things enabled swear jar is here to help!

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.

 

Supplies

  • Raspberry Pi

  • LifePO4WERED Pi+

  • Google AIY Kit

  • Speakers (optional)

  • Teddy Bear

  • Google Cloud Platform

  • ThingSpeak

  • Wires

 

Project Video

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

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 & IoT

 

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.

 

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!

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.

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

  • DAB
    DAB over 5 years ago +3
    My father was a sailor and truck driver. It would take more than a swear bear to clean up my adjectives. DAB
  • DAB
    DAB over 5 years ago in reply to 8bitsandabyte +3
    He did, I relate some of them in my dedication to him in my next book. DAB
  • phoenixcomm
    phoenixcomm over 5 years ago in reply to 8bitsandabyte +3
    8bitsandabyte have you ever read Samuel Langhorne Clemens ie Mark Twain" said: Under certain circumstances, profanity provides a relief denied even to prayer." Can we get an Amen now? ie people are too…
  • phoenixcomm
    phoenixcomm over 5 years ago in reply to 8bitsandabyte

    8bitsandabyte  have you ever read  Samuel Langhorne Clemens ie Mark Twain" said: Under certain circumstances, profanity provides a relief denied even to prayer." 

    Can we get an Amen now? ie people are too judgemental.

    Cris

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 5 years ago in reply to 8bitsandabyte

    He did, I relate some of them in my dedication to him in my next book.

     

    DAB

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • 8bitsandabyte
    8bitsandabyte over 5 years ago in reply to kmikemoo

    Spot on, they are fantastic. You can always use them, no matter what.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • 8bitsandabyte
    8bitsandabyte over 5 years ago in reply to DAB

    That sounds like someone who had a million cool stories to tell.

     

    Right, good call, keeping the community friendly is more important than boasting about creative swears.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • kmikemoo
    kmikemoo over 5 years ago

    Some of my favorite swears are the substitutes - "Shut the front door!"  It's hard to maintain a straight face when one of these jumps out. imageimage

    • Cancel
    • Vote Up +1 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