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
Raspberry: Sound to Light with Line In?
- 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.
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.
- 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)
It worked out of the box (RPi 2)
- 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.
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.
-
- 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
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
- 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
- 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
- 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
I've got also an old microphone bundled with an old Creative SoundBlaster NX.
They both work without any special adjustment
- 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
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
-
- 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
- mcallegari
- Posts: 4807
- Joined: Sun Apr 12, 2015 9:09 am
- Location: Italy
- Real Name: Massimo Callegari
- Contact:
Ah OK ! That explains everything then.chka wrote:it works!!!!!!!!
But i have to start the audiotriger on the gui, over the webpanal it will not start
You might have found some issue with the web interface. I'll check it as soon as I can