Following this page, http://hackaday.com/2015/10/21/teach-an-attiny-85-to-swear/ . I put this together and stuffed it all into a mint tin. I didn’t know how to post pictures into a hackaday.com comment, so I added this page.
I added a push button so it would not swear constantly. I got the speaker from a broken laptop. The three AAA battery holder was from a friend’s ruined LED flashlight.
I had to learn to use an Arduino Uno to program the ATTiny. It was fairly easy.