Raspberry: Sound to Light with Line In?

All the topics related to QLC+ on the Raspberry Pi
chka
Posts: 21
Joined: Sat Apr 25, 2015 8:51 am
Real Name: Chris

Hello thanks for this great project for the pi, one question;

I would like use the sound to light option on the pi, unter mac os the project works with the normal line in.

But at the pi it will not work, what can i do?

Thanks at first
User avatar
mcallegari
Posts: 4807
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

Hi, which version of the Pi do you have ? 1 or 2 ?

The RPi doesn't have an audio input line by default, so you need an extra audio card to have one.
I've done some experiments with a very cheap (and crappy) USB soundcard. Something like this:
http://www.amazon.co.uk/Dynamode-USB-So ... +soundcard

To be honest though, I've never tested audio input on the RPi, since the developments started on version 1, where I strongly do no recommend to do audio input. The CPU is not enough for it.

I'm gonna test it on the RPi 2 as soon as I can.
chka
Posts: 21
Joined: Sat Apr 25, 2015 8:51 am
Real Name: Chris

at the moment i have the first pi,
the 2 version of the pi is ordert today.

it will be great if you can test this, sound to light is important vor me
User avatar
mcallegari
Posts: 4807
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

Just tested.
It worked out of the box (RPi 2)
chka
Posts: 21
Joined: Sat Apr 25, 2015 8:51 am
Real Name: Chris

great news, thanks for testing, so i will order the usb sound card :)
chka
Posts: 21
Joined: Sat Apr 25, 2015 8:51 am
Real Name: Chris

what for a device is the line in?
Sorrowed is audio out but what is in?

I have testet all of them but it will not work
Bildschirmfoto 2015-04-29 um 21.50.49.png
Bildschirmfoto 2015-04-29 um 21.50.49.png (32.99 KiB) Viewed 5855 times
User avatar
mcallegari
Posts: 4807
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

Leave default device.
As I said, the Pi doesn't have an audio in by default, so the device you see is actually the sound card (which is ?) lines.
chka
Posts: 21
Joined: Sat Apr 25, 2015 8:51 am
Real Name: Chris

It is this one; http://www.amazon.de/gp/product/B00JKYZ ... ge_o00_s00


dmesg | grep usb show this;

usb 1-1.4: Product: C-Media USB Headphone Set
[ 3.628873] input: C-Media USB Headphone Set as /devices/platform/bcm2708_usb/usb1/1-1/1-1.4/1-1.4:1.3/0003:0D8C:000C.0001/input/input0
[ 3.645655] hid-generic 0003:0D8C:000C.0001: input,hidraw0: USB HID v1.00 Device [C-Media USB Headphone Set ] on usb-bcm2708_usb-1.4/input3
User avatar
mcallegari
Posts: 4807
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

same chipset that I have, so it has to work
chka
Posts: 21
Joined: Sat Apr 25, 2015 8:51 am
Real Name: Chris

ok maybe the problem is i use the Apple EarPods as a mic, and no original microphone
chka
Posts: 21
Joined: Sat Apr 25, 2015 8:51 am
Real Name: Chris

it will not work, have you install or configurate anything on the pi
User avatar
mcallegari
Posts: 4807
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

Nope. As I said, it worked out of the box, with no additional configurations
chka
Posts: 21
Joined: Sat Apr 25, 2015 8:51 am
Real Name: Chris

what is the type of the microphone, maybe this is the problem
User avatar
mcallegari
Posts: 4807
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

I used some crappy old headphones with integrated microphone.
I've got also an old microphone bundled with an old Creative SoundBlaster NX.
They both work without any special adjustment
chka
Posts: 21
Joined: Sat Apr 25, 2015 8:51 am
Real Name: Chris

mhh....
is it possible so see the line in volume anywhere as a audio diagram?

maybe the sound card will noch work
User avatar
mcallegari
Posts: 4807
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

You can try like this:
http://linuxconfig.org/how-to-test-micr ... cture-alsa

I don't remember if arecord is in the image though. In case, just install it
chka
Posts: 21
Joined: Sat Apr 25, 2015 8:51 am
Real Name: Chris

it will not work:

Code: Select all

root@raspberry-pi:~# cat /proc/asound/cards
 0 [ALSA           ]: bcm2835 - bcm2835 ALSA
                      bcm2835 ALSA
 1 [Set            ]: USB-Audio - C-Media USB Headphone Set
                      C-Media USB Headphone Set at usb-bcm2708_usb-1.4, full speed
root@raspberry-pi:~# arecord -l
**** List of CAPTURE Hardware Devices ****
card 1: Set [C-Media USB Headphone Set], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
root@raspberry-pi:~# arecord -d 10 /tmp/test-mic.wav
arecord: main:682: audio open error: No such file or directory
chka
Posts: 21
Joined: Sat Apr 25, 2015 8:51 am
Real Name: Chris

it works!!!!!!!!


But i have to start the audiotriger on the gui, over the webpanal it will not start
User avatar
mcallegari
Posts: 4807
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

chka wrote:it works!!!!!!!!
But i have to start the audiotriger on the gui, over the webpanal it will not start
Ah OK ! That explains everything then.
You might have found some issue with the web interface. I'll check it as soon as I can
chka
Posts: 21
Joined: Sat Apr 25, 2015 8:51 am
Real Name: Chris

i have add my project so you can see it.

when one of my trigger work, the other one will be enable over the web interface and work also
Attachments
1.qxw
(135.77 KiB) Downloaded 341 times
Post Reply