/ Code

Discord Jack

A Raspberry Pi that transmits your TV's audio into Discord.

On Github: https://github.com/chandwki/Discord-Jack

I live with five other gamers and computer geeks. We all have our computers set up in a finished basement that we call the "LAN Cave". I mounted a TV on the wall so that we could chromecast movies or shows when we are down in the cave.

The problem was that not everyone always wanted to hear the TV if they were trying to work. If someone was gaming with their noise canceling headphones on the TV would have to be turned up really loud for them to hear it. I solved this problem with a Raspberry Pi, a USB sound card (with stereo audio capture), and a simple discord bot.

The discord bot, Discord-Jack on github, requires Node 8 and uses discord.js and mic. Because this app requires Node 8 a newer ARMv7 or ARMv8 Raspberry Pi is required such as the Pi 2 or 3. I used a "Griffin Technology iMic USB Audio Interface" because it works out of the box with the Raspberry Pi. The iMic also does stereo audio capture which is a feature you don't get with some of the cheaper USB sound cards.

The whole setup works surprisingly well. Each person can control the local volume of the discord bot to their liking or just mute it. My biggest concern going in to this was latency. If you are really paying attention to lips you might notice a slight delay. However, because Discord is meant for near real time communication, the latency really isn't too bad especially for having TV on in the background.

Playing PUBG in the LAN cave. Watching @vivalabad_ on twitch.

A post shared by Chris Handwerker (@chandwki) on