USB Audio-In Support

You can configure LightShow Pi to use the input from a USB audio dongle as the audio your lights respond to (i.e. instead of playing local audio files). There are many applications that this can be used for, one of which is for adding a light show to an existing karaoke setup:

USB Audio Input Setup

First, you’ll need a USB audio sound card in hand. You can find lists of compatible devices here. One USB audio card that is known to work just fine is the Sabrent AU-MMSA.

Next, you’ll want set your USB audio sound card as the default soundcard following the instructions here.

LightShow Pi configuration

To enable audio-in mode, set the lightshow mode to audio-in in your configuration override file (e.g. ~/.lights.cfg):

[lightshow]

mode = audio-in

There are other advanced options related to audio-in mode, take a look at the default configuration file for more details (search for “audio-in”).

Running in Audio-In mode

Once you’ve enabled audio-in mode, you can run the synchronized lights script to start things up:

sudo py/synchronized_lights.py

3 Comments

  1. Hi Ken I am working on audio-in feature (its damn cool )
    I am facing a problem.
    My mic capture works perfectly with command
    ————-
    arecord –device=hw:1,0 –format S16_LE -vv –rate 44100 -c1 test.wav
    aplay –device=plughw:1,0 test.wav
    ————

    but when I start lightshow with audio in mode the speaker noise get cracked and it hears like audio is fast forwarded.

    I guess there’s problems when lightshow program reads data from mic.

Leave a Reply

Your email address will not be published. Required fields are marked *