Home Creators Posts Import Register Favorites Logout

Content

Hi folks - this tutorial is a little bit different from normal, but it was a project that was specifically requested (and this is your reminder that I'm always happy to receive suggestions from any Patreons for specific project ideas you might want me to build in the future!). Also, while I've done several previous projects involving telephones, I've never done one involving recording from the microphone until now, so it was fun to try!

So, this is an "audio guestbook": I'll confess I'd not heard of them before, but apparently there's a few companies that offer them for weddings and other events. Users pick up the handset, hear a pre-recorded greeting, and then it starts recording any audio spoken into the microphone onto an SD card. Every time the handset is lifted a new, sequentially-numbered recording is made, saved in 16-bit 44.1kHz audio (CD) quality. These recordings can then be copied onto your PC, converted to MP3 etc.

This is also the first project I've done using a "Teensy" board, rather than an Arduino/ESP. I'm using the TeensyDuino software, which means you can write code using the familiar Arduino IDE, but the Teensy boards are fast, powerful, and have got some really great audio features. They've even got a nice GUI audio system design tool (based on Node-RED!) that lets you define a virtual audio rack - wiring together multiple inputs, outputs, and effects - just like in a recording studio, and then export the setup code that you can paste into the Arduino IDE.

In this project, I'll demonstrate sending pre-recorded audio (both RAW and  WAV) to a mixer, alongside dynamically synthesised effects, and outputting these to a speaker. Meanwhile, I'll also be sending microphone input to a recording queue, and then streaming that to an SD card.  

I've put all the code available to download over on my GitHub repository: https://github.com/playfultechnology/audio-guestbook

If you'd like to see other audio projects, please let me know (e.g. a voice-changer? Guitar effects pedal? Multiple channel crossfade, or directing audio to different outputs?). Otherwise, I hope that this project will give a useful introduction to the Teensy, to dealing with audio, and perhaps give you an idea of an interesting item you could leave in your lobby for guests to interact with!

Files

Make your own wedding audio guestbook - a step-by-step guide!

In this tutorial, I'll explain how you can convert any telephone handset into an "Audio Guestbook" - a fun way for guests to leave recorded messages for you, and perfect for wedding receptions, events, or parties. I'm aware of a couple of companies that offer these kind of products - "After the Tone", "FêteFone", "Life on Record", "At the Beep", and others - but they typically cost ~$400 to hire the equipment, and then additional charges to obtain copies of the audio files afterwards! The guestbook I've built cost about £30 to make. It uses a Teensy microcontroller to save individual 16bit, 44.1kHz, CD-quality recordings to an SD card. Every time the handset is lifted, a new, numbered file is saved, which you can then load on your PC, and convert to MP3, save or share with your friends etc. You'll need to have a little knowledge of electronics and coding, but I'll describe the entire process step-by-step. If you have any comments or questions, please leave them below and I'll do my best to answer! Hardware used: - A telephone! You can pick one up second hand for ~£10. Doesn't need to be fully-working, just so long as the microphone and speaker work! e.g. https://www.ebay.co.uk/itm/194940719631 - Teensy 4.0, ~£18. I bought mine from https://coolcomponents.co.uk/collections/teensy/products/teensy-4-0-usb-development-board, but they're available from many suppliers, including Amazon. - Teensy Audio Shield, ~£14 https://coolcomponents.co.uk/collections/teensy/products/teensy-audio-board-for-teensy-4-0 - Screw terminal strips (A.K.A. Choc Block connectors), https://www.screwfix.com/p/3a-12-terminal-terminal-strips-10-pack/25545 - 3.5mm jack breakout board, https://thepihut.com/products/sparkfun-trrs-3-5mm-jack-breakout Software used (all free, open-source): - Audacity (https://www.audacityteam.org/) - for recording your greeting message and loading raw audio recordings from the SD card. - Arduino IDE (https://www.audacityteam.org/) - for creating the code. - TeensyDuino (https://www.pjrc.com/teensy/td_download.html) - an extension to the Arduino IDE that allows you to target the Teensy hardware. - SOX (https://sourceforge.net/projects/sox/) - for batch conversion of all raw audio recordings on the SD card into WAV or MP3 format. Timings: 00:00:00 - 00:01:47 Introduction 00:01:48 - 00:08:12 Identifying Telephone Components 00:08:13 - 00:10:46 Teensy Controller 00:10:47 - 00:11:26 Fritzing Wiring Diagram 00:11:27 - 00:15:06 Wiring the Telephone 00:15:07 - 00:18:00 Installing TeensyDuino Software 00:18:01 - 01:00:07 Programming the Teensy using the Arduino IDE 01:00:08 - 01:02:13 Loading Recorded Messages using Audacity 01:02:14 - 01:04:02 Batch conversion of Raw Audio Recordings using SOX 01:04:03 - 01:05:17 Wrapup You can find the code on my GitHub account: https://github.com/playfultechnology/audio-guestbook A HUGE thankyou to my Patreon supporters who support me to create these video tutorials. If you're interested in finding out more, please do check out https://www.patreon.com/playfultech , and don't forget to like and subscribe to this channel for more playful project ideas :)

Comments

Kate Trigg

Hi there - is there a diagram of the wiring on the Teensy board which can be followed please?

Teflon

Hello I'm having issues with the Audio Guestbook not writing to the SDCard. After leaving a message on the phone, the file is written to the SDCard but there is no sound. Used several different microphones, still no sound. Can you assist.

Wash Esler

Hi Alastair, I was working on this project when I run into this error: 'class MTP_class' has no member named 'storage'; did you mean 'MTPStorage MTP_class::storage_'? (not accessible from this context). i changed it to storage_ and then i got "MTPStorage MTP_class::storage_' is private within this context" Any ideas? I did set the USB to Serial+MTP Disk

Fogjack

Dear Alistair, Just a message this way because I don't know how else I can reach you? I've been a fan of yours for a long time. I really appreciate the projects. I have been looking for a project with a 6 digit 7 segment countdown timer with hours, minutes and seconds and large diplays for a long time. I found something in the form of a stopwatch. https://www.youtube.com/watch?v=mayd9rEmKbU Unfortunately, the hardware is unknown. Is there something you may know or is it an idea for a project? Thank you very much and best regards. Jack

Toni-Ann Taylor

Hi Alistair, I'm working on this project and very new to Arduino and Teensy. I am getting an error when verifying the code. I haven't plugged in the teensy yet. I get "Error compiling for board Teensy 4.0". I do have the verbose output checked. Where can I show you the full error?

Adam Ellis

HI Alastair, Love your videos you've shown so many different types of sensors and devices it's been great to tinker with them. I'm having a hard time with this project, the teensy appears to be working by watching the serial monitor however I just can't get it to play the greeting audio or record, again it appears to be happening according to the serial monitor (although the greeting has the 1 sec delay then jumps right to recording it never displays the "PLaying..." text) the record file number is incresing im at like 33 but when I plug in the SD to my computer the only file on there is the greeting. Any idea what I'm doing wrong?

Anthony

Hey Alastair, I have an older phone that has a different cable setup. Can you help me figure out what parts I need for it?

Ree Shaw

Hey Alastair, Hope you are well? Forgive me if this is wildly inappropriate but would you consider being commissioned to make one for me? I have no idea where to start even after following your awesome tutorial and I thought it maybe worth asking as I have searched high and low to find a repurposed one and I just can't find one. Many Thanks Ree x

Marcelo Gama

Hello Alastair, I'm having difficulties executing the audio guest book phone project, would you have more information about the card connections?