# How to get music playing with Phat Dac board

**URL:** <https://forums.pimoroni.com/t/how-to-get-music-playing-with-phat-dac-board/6154>\
**Category:** Support\
**Created:** [October 17, 2017, 4:10pm UTC](https://forums.pimoroni.com/t/how-to-get-music-playing-with-phat-dac-board/6154 "2017-10-17T16:10:26Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Avvy60](https://avatars.discourse-cdn.com/v4/letter/a/ecb155/32.png) [@Avvy60](https://forums.pimoroni.com/u/Avvy60)\
**Post date:** [October 17, 2017, 4:10pm UTC](https://forums.pimoroni.com/t/how-to-get-music-playing-with-phat-dac-board/6154/1 "2017-10-17T16:10:26Z")

</div>

I have got the raspberry pi zero W and bought the Phat Dac board from here. I used the setup instruction from the list of projects and for whatever reason I can’t get any audio output at all. Do I need to install some audio player.

Edit: I have installed pulseaudio which I saw on another thread, and also Audacious. Now music is playing but only for a few seconds for each track on a cd.

I get an error for every track it plays, saying Error playing file //path to /Music/CD/ music track.mp3

---

<div class="post-metadata">

**Author:** ![Avvy60](https://avatars.discourse-cdn.com/v4/letter/a/ecb155/32.png) [@Avvy60](https://forums.pimoroni.com/u/Avvy60)\
**Post date:** [October 18, 2017, 8:55am UTC](https://forums.pimoroni.com/t/how-to-get-music-playing-with-phat-dac-board/6154/2 "2017-10-18T08:55:05Z")

</div>

I have a raspberry pi zero w and have bought the Phat Dac from here.  
I was hoping that I could use it to play music from my NAS server.

Edit:  
Since yesterday I have reinstalled the raspian os for the pi zero w, and then audacious thinking that would play music, but it wouldn’t play 1 track of music I copied to the music folder from my NAS media box. It did however play another or 2nd track to my speaker connected to the PhatDac phono socket.  
The other thing I have done is to install the airplay software from the tutorial on another webpage

I’ve also installed both Audacious and pulseaudio to get this far.

---

<div class="post-metadata">

**Author:** ![gadgetoid](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/gadgetoid/32/13_2.png) [@gadgetoid](https://forums.pimoroni.com/u/gadgetoid)\
**Post date:** [October 19, 2017, 11:34am UTC](https://forums.pimoroni.com/t/how-to-get-music-playing-with-phat-dac-board/6154/3 "2017-10-19T11:34:36Z")

</div>

> [@Avvy60](#):
>
> I get an error for every track it plays, saying Error playing file //path to /Music/CD/ music track.mp3

This sounds like an issue with whatever you’re trying to play, rather than pHAT DAC. I typically use mplayer or vlc to play audio and haven’t used Audacious (at least not on the Pi).

Have you tried running a basic speaker test, like: `speaker-test -c2 -t wav`

---

<div class="post-metadata">

**Author:** ![Avvy60](https://avatars.discourse-cdn.com/v4/letter/a/ecb155/32.png) [@Avvy60](https://forums.pimoroni.com/u/Avvy60)\
**Post date:** [October 19, 2017, 12:02pm UTC](https://forums.pimoroni.com/t/how-to-get-music-playing-with-phat-dac-board/6154/4 "2017-10-19T12:02:04Z")

</div>

Actually late yesterday, I installed Airplay using the guide on here, and when it finished it did a speaker test and sound was coming out of it.

Regarding the error when trying to play a CD track, this may have been the actual track that was at fault, and when played a different mp3 file it plays fine in Audacious.  
Running the speaker-test worked fine as well.

Now music is playing, but it is only playing music which is on or in the Music folder on the pi zero. I was under the wrong impression that it would stream music from my NAS box, or at least that was what I thought it would do. And that was the reason I bought the pHAT DAC.

Thanks

---

<div class="post-metadata">

**Author:** ![Avvy60](https://avatars.discourse-cdn.com/v4/letter/a/ecb155/32.png) [@Avvy60](https://forums.pimoroni.com/u/Avvy60)\
**Post date:** [October 20, 2017, 4:52pm UTC](https://forums.pimoroni.com/t/how-to-get-music-playing-with-phat-dac-board/6154/5 "2017-10-20T16:52:47Z")

</div>

Can the pHAT DAC stream music or does have to be on the pi zero itself, in the music folder

---

<div class="post-metadata">

**Author:** ![gadgetoid](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/gadgetoid/32/13_2.png) [@gadgetoid](https://forums.pimoroni.com/u/gadgetoid)\
**Post date:** [October 20, 2017, 8:04pm UTC](https://forums.pimoroni.com/t/how-to-get-music-playing-with-phat-dac-board/6154/6 "2017-10-20T20:04:29Z")

</div>

The pHAT DAC has no bearing on music streaming, it’s just an output device. There should be no reason why your Pi Zero couldn’t stream music from a network share- although sensible limits on bitrate would apply. It handles streaming from Spotify and other internet sources with no problems.

I’ve never set up network share streaming, though, since I don’t have any music stored locally to stream (Spotify is just too easy), so I can’t really help with that. There must be guides out there, though.

---

<div class="post-metadata">

**Author:** ![Avvy60](https://avatars.discourse-cdn.com/v4/letter/a/ecb155/32.png) [@Avvy60](https://forums.pimoroni.com/u/Avvy60)\
**Post date:** [October 23, 2017, 10:22am UTC](https://forums.pimoroni.com/t/how-to-get-music-playing-with-phat-dac-board/6154/7 "2017-10-23T10:22:04Z")

</div>

Ok thanks , it looks like I’ll have to find how to stream music through the pHAT DAC, and I’ll look into Spotify.

---

<div class="post-metadata">

**Author:** ![gadgetoid](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/gadgetoid/32/13_2.png) [@gadgetoid](https://forums.pimoroni.com/u/gadgetoid)\
**Post date:** [October 23, 2017, 11:02am UTC](https://forums.pimoroni.com/t/how-to-get-music-playing-with-phat-dac-board/6154/8 "2017-10-23T11:02:34Z")

</div>

You might want to try:[http://www.pimusicbox.com/](http://www.pimusicbox.com/)

---

<div class="post-metadata">

**Author:** ![Avvy60](https://avatars.discourse-cdn.com/v4/letter/a/ecb155/32.png) [@Avvy60](https://forums.pimoroni.com/u/Avvy60)\
**Post date:** [October 23, 2017, 2:50pm UTC](https://forums.pimoroni.com/t/how-to-get-music-playing-with-phat-dac-board/6154/9 "2017-10-23T14:50:20Z")

</div>

Thanks,  
but as Musicbox is an img and needs to be on an micro sd card, when it boots up the wlan0 link is not ready, and says Error: Timeout, check your network settings and is unreachable.

On the sd card which has raspian, there is a wireless lan.

Edit: sorted that now.
