How to build a toy chatterbox

We’ve created a tutorial to walk you through building a toy chatterbox — a neat example of what Raspberry Pi Audio Boards can do. We have four different audio boards, but the Raspberry Pi Codec Zero‘s on-board microphone, programmable button, and speaker driver make our smallest one the ideal choice for this application.

Press Play to hear some SFW swear words

What does the chatterbox do?

A random pre-recorded five-second audio clip plays when you press the button. Obviously we chose to record juvenile Beano-grade swear words, such as “nincompoop” and “numpty”, which can then be played as colleagues and esteemed visitors to Pi Towers walk past the desk that’s home to our chatterbox.

audio board codec chatter box
Would look GREAT stuffed with fairy lights

Depending on how liberal your workplace is, you could record an NSFW version. Or a much more pleasant one that shouts “treat!” or “walkies!” to wind up your dog. We named this build a chatterbox instead of a swear box so you don’t feel pressured to follow us down a dark path.

How does it work?

To record a sound clip, hold the button down for ten seconds and wait for a burp sound. When you hear it, say what you want to record out loud, then release the button. Holding the button down for more than 20 seconds will play a second burp sound, and then erase all your previous recordings.

audio board codec chatter box internals
Satisfyingly tidy wiring

Codec Zero plays the recorded audio via a small speaker. We used this 3″ one, which costs just £3 from Pimoroni. All of the hardware lives in a transparent laser-cut box so you can see what’s going on inside. A quick press on a push button makes the audio clips play. We chose a fancy illuminated one but you can decide what kind of buttons and boxes fit your aesthetic needs. I wanted to stuff the perspex box full of flashing battery-powered fairy lights, but it is displayed in a communal area so I had to “compromise” and “dial it down a bit” and “not choose anything too annoying”.

To learn how to assemble and code your chatterbox, jump to this point in our audio board documentation for a full tutorial.

Meet our other audio boards

While we have favoured Codec Zero for this particular project, that doesn’t mean we don’t love all of our audio boards equally. There are three others available and we’d like you to meet them:

  • Raspberry Pi DAC+
    A high-performance audio HAT that delivers full high definition stereo analogue audio
  • Raspberry Pi DAC Pro
    Our highest-fidelity audio HAT, providing an outstanding signal-to-noise ratio
  • Raspberry Pi DigiAMP+
    An audio output HAT with integrated stereo amplifier, ideal for Raspberry Pi hi-fi systems
Print Friendly, PDF & Email

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Server Status

Aradippou Chat 1 Chat 2 Larnaca Limassol Nicosia

Chat Links

Official Links.

1. Chat 1.
2. Chat 2.

Alternative Mirror Links.

1. KiwiIRC 1.
2. KiwiIRC 2.

Other Web Clients.

1. IrcCloud.

Recent Posts

Related Posts:

Advertisement

Archives

Super Club Radio

Mighty Deals

CyIRC

CyIRC Tweets

Scroll Up
Fatal error: Uncaught WMAC\JSMin_UnterminatedStringException: WMAC\JSMin: Unterminated String at byte 1181: "+o.accessToken}}).then(e=>{if(!e.ok)throw e;return e});return a.catch(e=>{console.error(`Failed to logout chatrix session. deviceId: ${o.deviceId}`)}),a}})(); in /home/bszucbfe/public_html/wp-content/plugins/clearfy/components/minify-and-combine/includes/classes/ext/php/jsmin.php:215 Stack trace: #0 /home/bszucbfe/public_html/wp-content/plugins/clearfy/components/minify-and-combine/includes/classes/ext/php/jsmin.php(157): WMAC\JSMin->action(2) #1 /home/bszucbfe/public_html/wp-content/plugins/clearfy/components/minify-and-combine/includes/classes/ext/php/jsmin.php(96): WMAC\JSMin->min() #2 /home/bszucbfe/public_html/wp-content/plugins/clearfy/components/minify-and-combine/includes/classes/class-main.php(375): WMAC\JSMin::minify('(function(){"us...') #3 /home/bszucbfe/public_html/wp-includes/class-wp-hook.php(324): WMAC_PluginMain->jsSnippetcacher('(function(){"us...', '/home/bszucbfe/...') #4 /home/bszucbfe/public_h in /home/bszucbfe/public_html/wp-content/plugins/clearfy/components/minify-and-combine/includes/classes/ext/php/jsmin.php on line 215