Audio Guestbook (Patreon)
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!