Raspberry Pi audio

1,465 views
Skip to first unread message

Dale

unread,
Sep 3, 2012, 11:14:20 PM9/3/12
to Hackerspace Adelaide
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi All,

I am looking for a USB soundcard that will work with Raspberry Pi for a
project I am working on, wondering if anyone has any experience with
this and what they recommend to get, only need it mainly for mic/line-in

- --
Best Regards
Dale

MB: 0488 932 022
WWW: http://dale.id.au/
Blog: http://blog.dale.id.au/
PGP/GPG Key ID: 0x58BD7FCE
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQEcBAEBAgAGBQJQRXIMAAoJEJXZE11YvX/OpagH/0cRqtf0HgVwxc5Rbtbd8ph6
I0VypIeRvMxAsfMdEqYOV6t4y94JS+pQG3w+Fhkm4jq07zAoGlBxiWNipYRJO/7g
/boV3TUJ8KCzhSr7MQHw43NhDjeq3jJgieQgT/XK+D6QPYiAbiA2GT6RZNDDY0ix
vC/vhAM9dqmiCXCoRRT2gDIyJj8pb2QvhMntqIzdl5PD1OlrgENj5zbaHQj0jD0d
5foKTbtgdgnaWM8uFCzYHofZAbe7XAOQT/CjRMssHrh1hDn3vHs0iQJDN858VIYK
MBZXQ7q7wbCoKbGvAMIOFWIK5qsVXdARywkzqzHmRjnTm08cdshpjolkcteS3MU=
=OuJs
-----END PGP SIGNATURE-----

Tamsyn Michael

unread,
Sep 4, 2012, 12:11:43 AM9/4/12
to hackerspac...@googlegroups.com

How come you're not using the line in?

--
You received this message because you are subscribed to the Google Groups "HackerSpace - Adelaide, South Australia" group.
To post to this group, send email to hackerspac...@googlegroups.com.
To unsubscribe from this group, send email to hackerspace-adel...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/hackerspace-adelaide?hl=en.

Tamsyn Michael

unread,
Sep 4, 2012, 12:12:54 AM9/4/12
to hackerspac...@googlegroups.com

Oops, I meant onboard line in...

Tamsyn Michael

unread,
Sep 4, 2012, 12:19:20 AM9/4/12
to hackerspac...@googlegroups.com

PPS - I'm on my phone, so can't link you, but anything compatible with the latest kernel should work.  They've got compatibility down pretty pat, so a lot will depend on the intended use (ie quality needed).

Kim Hawtin

unread,
Sep 4, 2012, 2:57:05 AM9/4/12
to hackerspac...@googlegroups.com
>>> How come you're not using the line in?

main issue is quality and also having dedicated app tying up the port.
where you also want other app doing general sound output.

cheers,

kim
--
"Art without engineering is dreaming; engineering without art is
calculating." --SKR

Damien P

unread,
Sep 4, 2012, 7:37:34 AM9/4/12
to hackerspac...@googlegroups.com
One of these works fine for me:

http://dx.com/p/22475

I haven't checked it for the sound quality, but the output was fine into some Logitech speakers.

Dale

unread,
Sep 5, 2012, 10:30:08 PM9/5/12
to hackerspac...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 4 Sep 2012 13:42:54 +0930
Tamsyn Michael <tamsyn.j...@gmail.com> wrote:

> Oops, I meant onboard line in...

hi Tamsyn,

the Raspberry Pi does not have audio in :-(
- --
Best Regards
Dale

MB: 0488 932 022
WWW: http://dale.id.au/
Blog: http://blog.dale.id.au/
PGP/GPG Key ID: 0x58BD7FCE
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQEcBAEBAgAGBQJQSAqwAAoJEJXZE11YvX/Od/IH/i2+4o29iVm/jc6O0+YYDvBr
2FguMlmuT6u6Mpyj/p1dShm4qSNXwi84KkT2vhCn8jdLAsoL9MwquemqLq2sMG3K
7l86gRToWGPfsUGaPf6EPJIWh4ncAftDB7asTsA1BssI6fd5Wv3wiwAKllTmoHxB
RZEkgeIdHPBp1QidfHOgSqe7qHt2NM64KoEkopBY6AAH+HIgH0tHxk03WSw/VUAZ
VV5zsLiVjTY9yp6wuLwAt6sHUPqpJE9kdsr/sUnDET9I/T1rtBbRZH/mzZTBzcsl
4bBsuAmfj6S0wX0OcbLzsrNy1P0rcxSQdkQAYXq5mTewMbiejk4QFrP20HTSdv8=
=kGW4
-----END PGP SIGNATURE-----

Tamsyn Michael

unread,
Sep 5, 2012, 10:33:12 PM9/5/12
to hackerspac...@googlegroups.com

Yeah - looked at mine last night.  Pretty sure the audio port works as in and out, though I haven't tried it yet.  (Some) USB mics work with the RPi, but I'm thinking it'd probably be cheaper to go with the option linked by Damien.

Ken

unread,
Sep 5, 2012, 10:35:21 PM9/5/12
to hackerspac...@googlegroups.com
I wonder if a USB webcam would give you audio in?
As cheap as $7 from Woolworths!


On 6 September 2012 12:03, Tamsyn Michael <tamsyn.j...@gmail.com> wrote:

Yeah - looked at mine last night.  Pretty sure the audio port works as in and out, though I haven't tried it yet.  (Some) USB mics work with the RPi, but I'm thinking it'd probably be cheaper to go with the option linked by Damien.

--

Steven Pickles

unread,
Sep 5, 2012, 10:39:58 PM9/5/12
to hackerspac...@googlegroups.com
some do and they appear as a standard usb audio device. i have a $5 dx camera that i've just lent to tamsyn for her voice activated shenanigans.

pix

Tamsyn Michael

unread,
Sep 5, 2012, 11:21:24 PM9/5/12
to hackerspac...@googlegroups.com
Where did you get it Steven?  It looks pretty cool (I'd love to add something similar to a robot).

Steven Pickles

unread,
Sep 5, 2012, 11:42:02 PM9/5/12
to hackerspac...@googlegroups.com
found it: http://www.dealextreme.com/p/stylish-1-3-mega-pixel-pc-usb-webcam-with-microphone-driver-free-33087

pix

On 6 September 2012 12:51, Tamsyn Michael <tamsyn.j...@gmail.com> wrote:
Where did you get it Steven?  It looks pretty cool (I'd love to add something similar to a robot).

Dale

unread,
Sep 5, 2012, 11:54:29 PM9/5/12
to hackerspac...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 6 Sep 2012 12:05:21 +0930
Ken <k...@waggies.net> wrote:

> I wonder if a USB webcam would give you audio in?
> As cheap as $7 from Woolworths!
>

that be nice, but I need to run it as cable line-in etc, as be
receiving data from off of the radio that will be decoded via the
RPi ;-)

I have a bought a cheapy off of ebay that looks similar to what Damien
linked to earlier.

- --
Best Regards
Dale

MB: 0488 932 022
WWW: http://dale.id.au/
Blog: http://blog.dale.id.au/
PGP/GPG Key ID: 0x58BD7FCE
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQEcBAEBAgAGBQJQSB51AAoJEJXZE11YvX/OzzcH/ioHkzzhmkGW29Er6O6vyGtb
7i4wCACPEEDkuyF+MNQ3YE1VM+1H7aLtVr4eBQrQ7cNDzJKYstMdT9YgMigrPQnz
8zhMHQ53eVdt7D65LOpjo1tnDKcwPaXlcNFUD03jUt0X7mBJoaJQ112UyJRzWdiR
d7rThZd+SXT/40CPxPcPaoh6GieAwHsXaSAmU4H61wYk/AQ4AAYlQ2RmsIVrBVv0
tQgeGs76ueoRexWcIVdyeLKGgla4YUpQ5JVOjE6bpeXQmVFJS/5lT2dLGQtOmNex
Ip3qw+EAKESkKAFsAsu1SyeErqf2D14JOuF3SSa780xtjXLW+5za+I3ereqxqzQ=
=VFde
-----END PGP SIGNATURE-----

Sam Hodge at GMail

unread,
Sep 8, 2012, 8:35:16 PM9/8/12
to hackerspac...@googlegroups.com
Years ago I bought a USB sound card that I was going to add to an
Opensource router and make an mp3 jukebox, but I ended up getting an
AppleTV which served the same purpose.

Neverthe less I still have the USB soundcard.

Which was bought from a chinese vendor on ebay for less than $AU10.

The card says "Model HY554, USB 3D Sound, PnP"

So this morning I plugged it into my Rasberry Pi, running the kernel
that came with the default distro

>uname -a
Linux raspberrypi 3.1.9+ #272 PREEMPT Tue Aug 7 22:51:44 BST 2012
armv6l GNU/Linux

this is what dmesg told me when I plugged it in

[ 254.921267] usb 1-1.2: new full speed USB device number 6 using dwc_otg
[ 255.022766] usb 1-1.2: New USB device found, idVendor=0c76, idProduct=1605
[ 255.022810] usb 1-1.2: New USB device strings: Mfr=0, Product=1,
SerialNumber=0
[ 255.022832] usb 1-1.2: Product: SSS USB Headphone Set
[ 255.039572] input: SSS USB Headphone Set as
/devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2:1.3/input/input3
[ 255.040191] generic-usb 0003:0C76:1605.0004: input: USB HID v1.00
Device [SSS USB Headphone Set] on usb-bcm2708_usb-1.2/input3
[ 255.381456] usbcore: registered new interface driver snd-usb-audio


When I looked in alsamixer it appeared in the list and seemed to be ready to go.

But I didnt test to see if I could record.

Isnt it great when something "Just works"

Maybe if you found one of these dongles on ebay it might solve your problem

it has two audio jack ports, one for headphone and one for microphone

given that it is 3d it must have some sort of 5.1 encoding also.

I am also planning on experimenting with this on my mk802 under android.

But I dont have a USB hub at the moment.

If you are really keen I can let you borrow it for a looksee, but I
want to keep it.

Sam

Sam Hodge at GMail

unread,
Sep 8, 2012, 8:40:51 PM9/8/12
to hackerspac...@googlegroups.com
Sorry, but this looks identical to the card I have

http://www.ebay.com/itm/Nw-Blue-External-USB-2-0-to-3D-Virtual-Audio-Sound-Card-Adapter-Converter-7-1-CH-/300715727779?pt=US_Sound_Card_External&hash=item46040ddba3

Except mine has a grey trasperant case not a blue transperant case, If
you are curious I can take out a camera phone and send an image of
what it looks like.

sam

Damien P

unread,
Sep 8, 2012, 10:01:11 PM9/8/12
to hackerspac...@googlegroups.com
On Sunday, September 9, 2012 10:05:17 AM UTC+9:30, Sam Hodge wrote:
Isnt it great when something "Just works"

Audio is one of the standard USB classes specified in the standard.  Assuming the device doesn't try to do something fancy or stupid, it will use the documented protocol and should work.
 
it has two audio jack ports, one for headphone and one for microphone

Someone was looking for an input... I think mine is only a mono input.  The only time I used the input was when I tried to use it as an oscilloscope.  Maybe you could use the USB device as an output and use the built-in jack as an input (assuming it supports that).

given that it is 3d it must have some sort of 5.1 encoding also.

I doubt it... it's probably marketing crap!
 
If you are really keen I can let you borrow it for a looksee, but I
want to keep it.

Someone can borrow mine too if they want.

Sam Hodge at GMail

unread,
Sep 9, 2012, 2:39:11 AM9/9/12
to hackerspac...@googlegroups.com
Just tested with Audacity under raspbian and I was able to record
(mono) audio from my two dollar shop microphone and play back the
sound both via the USB headphone dongle, was a little muddly because I
had to choose two of the keyboard mouse and sound card, but not all
three at once, cant wait for the powered usb hub to arrive from China.

I think it might be limited to mono audio and it seemed to take a fair
bit of CPU to record in Audacity, but I couldnt remember any command
line audio software, so all the CPU was probably taken up with the
meters and waveforms.

Good little hack while making cheese on a Sunday afternoon.

sam
> --
> You received this message because you are subscribed to the Google Groups
> "HackerSpace - Adelaide, South Australia" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/hackerspace-adelaide/-/kWixqbCBFfYJ.

Tamsyn Michael

unread,
Sep 9, 2012, 2:43:30 AM9/9/12
to hackerspac...@googlegroups.com
Oooh - a cheese maker?  What kind of cheese?

Steven Pickles

unread,
Sep 9, 2012, 3:16:13 AM9/9/12
to hackerspac...@googlegroups.com
Does your Pi distro have "arecord"?

"aplay" and "arecord" are commandline tools to record and play when using ALSA (which is likely).

pix

Sam Hodge at GMail

unread,
Sep 9, 2012, 3:37:35 AM9/9/12
to hackerspac...@googlegroups.com
I am making feta, and yes raspbian has arecord and aplay, but mine
also now has audacity :D

sam

PS. I am glad I started with Audacity, arecord is being annoying


pi@raspberrypi ~ $ arecord -d 10 -t wav -c 1 out.wav
arecord: main:682: audio open error: No such file or directory
pi@raspberrypi ~ $ arecord -v
arecord: main:682: audio open error: No such file or directory
pi@raspberrypi ~ $ arecord --version
arecord: version 1.0.25 by Jaroslav Kysela <pe...@perex.cz>
pi@raspberrypi ~ $ arecord -L
null
Discard all samples (playback) or generate zero samples (capture)
sysdefault:CARD=Set
SSS USB Headphone Set, USB Audio
Default Audio Device
front:CARD=Set,DEV=0
SSS USB Headphone Set, USB Audio
Front speakers
surround40:CARD=Set,DEV=0
SSS USB Headphone Set, USB Audio
4.0 Surround output to Front and Rear speakers
surround41:CARD=Set,DEV=0
SSS USB Headphone Set, USB Audio
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Set,DEV=0
SSS USB Headphone Set, USB Audio
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Set,DEV=0
SSS USB Headphone Set, USB Audio
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Set,DEV=0
SSS USB Headphone Set, USB Audio
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Set,DEV=0
SSS USB Headphone Set, USB Audio
IEC958 (S/PDIF) Digital Audio Output
pi@raspberrypi ~ $ arecord -l
**** List of CAPTURE Hardware Devices ****
card 1: Set [SSS USB Headphone Set], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
pi@raspberrypi ~ $

Sam Hodge at GMail

unread,
Sep 9, 2012, 4:09:48 AM9/9/12
to hackerspac...@googlegroups.com
In case anybody is interested I found out that this USB device didnt
work as a microphone for Skype for mk802 with the default Android
4.0.3 that came with the device

I will flash it when I can bring myself to putting windows on a box,
seems that the only option to flash the card easily is under windows.

Having the mk802 work as a turn key device for Skype is of interest to
me to put older relatives overseas without computer smarts in contact
with each other via video chat its probably flawed without a computer
network in the house but a 3g hotspot could be sourced.

sam
Reply all
Reply to author
Forward
0 new messages