alexliu
Posts: 2
Joined: Fri Dec 21, 2012 9:20 am

Use Raspberry Pi as audio transport + USB DAC

Fri Dec 21, 2012 9:26 am

Hi all, I want to use Raspberry Pi as my audio server for my wave, flac, and APE file.
Here is the plan for the first step:
1) install an OS on Raspberry Pi
2) install an audio player.
3) try to get audio player to output the audio to USB port
4) connect USB to my USB DAC.
5) Get mobile device iOS/Android able to remove control my Raspberry Pi

Currently, I am still on step 1 and 2. However, I have no idea what is the best combination except for searching online. Can someone give me some recommendations? Thanks in advance.

smuggly
Posts: 112
Joined: Fri Feb 03, 2012 6:09 pm
Contact: Website

Re: Use Raspberry Pi as audio transport + USB DAC

Sun Dec 23, 2012 1:45 pm

I Have not tried it but, Squeeze slave might work for you search the forum

ski522
Posts: 394
Joined: Sun Sep 30, 2012 2:22 pm

Re: Use Raspberry Pi as audio transport + USB DAC

Mon Dec 24, 2012 12:42 am

1) Buy this card http://www.aliexpress.com/store/product ... o_detail_a

2) Install MPD which is avialable in the PI's repositories (http://mpd.wikia.com/wiki/Music_Player_Daemon_Wiki)

3) Install one of the countless clients for Android (mpdroid https://play.google.com/store/apps/deta ... roid&hl=en), IOS, windows, and Linux (prefer GMPC http://gmpc.wikia.com/wiki/Gnome_Music_Player_Client)

Aza-Industries
Posts: 16
Joined: Tue Dec 18, 2012 7:49 am

Re: Use Raspberry Pi as audio transport + USB DAC

Mon Dec 24, 2012 8:54 am

Not too hard getting DAC working, I did it recently and I'm brand spanking new to linux.
Though.... I don't remember what I did.. I'll load up my Pi and come back with info.

I'm using Archlinux and CMUS as the media player, a great command line player, which I've been controlling over SSH using my phone from around the house =P.


I read through this: http://alsa.opensrc.org/.asoundrc#Default_PCM_device

aplay -L gave me a list:

Code: Select all

sysdefault:CARD=ALSA
    bcm2835 ALSA, bcm2835 ALSA
    Default Audio Device
sysdefault:CARD=Audio
    DigiHug USB Audio, USB Audio
    Default Audio Device
front:CARD=Audio,DEV=0
    DigiHug USB Audio, USB Audio
    Front speakers
surround40:CARD=Audio,DEV=0
    DigiHug USB Audio, USB Audio
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Audio,DEV=0
    DigiHug USB Audio, USB Audio
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Audio,DEV=0
    DigiHug USB Audio, USB Audio
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Audio,DEV=0
    DigiHug USB Audio, USB Audio
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Audio,DEV=0
    DigiHug USB Audio, USB Audio
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Audio,DEV=0
    DigiHug USB Audio, USB Audio
    IEC958 (S/PDIF) Digital Audio Output
What I needed was this one:

Code: Select all

front:CARD=Audio,DEV=0
    DigiHug USB Audio, USB Audio
    Front speakers
so I made an asound.conf file and it looks like this:

Code: Select all

pcm.!default front:Audio
Also for testing and setting output volume of the Pi I followed this:
http://www.dreamincode.net/forums/blog/ ... pberry-pi/

In alsamixer you will want to press F6 to get the soundcard selection menu up then select your usb DAC.
Hit enter then up the volume so its DB gain reads 0 up top.
That's so the Pi doesn't compress the signal and just lets your DAC handle the volume.

Image

Aza-Industries
Posts: 16
Joined: Tue Dec 18, 2012 7:49 am

Re: Use Raspberry Pi as audio transport + USB DAC

Mon Dec 24, 2012 9:44 am

I think to support flac all I did was
pacman -S flac

or somthing basic like that.

This is what the controls look like on my old Symbian phone, I'd imagine you could make up a much swankier control scheme with an android. I'm just using a PuTTy client on my phone for controls.
Image

Overall this is a very compact solution.

Only problem I'm having at the moment is figuring out how to change the sample rate and bit depth.
It's at the default values, whatever they are..
24bit audio at 96000Hz would be amazing out of the Pi.

alexliu
Posts: 2
Joined: Fri Dec 21, 2012 9:20 am

Re: Use Raspberry Pi as audio transport + USB DAC

Thu Dec 27, 2012 3:59 am

I really love and enjoy this forum. I will update the progress if I made any. Thanks for all replies and I will take time to try them out. thanks again.

pschlae
Posts: 1
Joined: Fri Jan 04, 2013 4:48 pm

Re: Use Raspberry Pi as audio transport + USB DAC

Fri Jan 04, 2013 4:55 pm

I'm using a PI as audio transport, running MPD on it.
Also prepared a small HOW-TO, so if it helps, you might have a look at it.
The basic setup is, the music is stored on a NAS (Synology) mainly in FLAC format.
On the PI, the music directory is mounted thru NFS.

I'm using a Pro-Ject USB DAC, and controlling MPD with my iPad.

http://puls5.schlaepfer.com/archives/315


Return to “Graphics, sound and multimedia”