# Airdac speaker phat questions

**URL:** <https://forums.pimoroni.com/t/airdac-speaker-phat-questions/4126>\
**Category:** Support\
**Created:** [March 2, 2017, 6:09pm UTC](https://forums.pimoroni.com/t/airdac-speaker-phat-questions/4126 "2017-03-02T18:09:04Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![pi2003](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/pi2003/32/1613_2.png) [@pi2003](https://forums.pimoroni.com/u/pi2003)\
**Post date:** [March 2, 2017, 6:09pm UTC](https://forums.pimoroni.com/t/airdac-speaker-phat-questions/4126/1 "2017-03-02T18:09:05Z")

</div>

I have my speaker phat working over airplay with your one line installer but a couple of things have come to my attention.

Firstly the vu meter is not working. Is this expected behaviour?

Secondly I can now not play mp3 files normally. Is this expected? If not how can I change it back so I just have a normal speaker phat which I can play mp3’s off?

Hope I am not being to much of a noob!

p.s. See you at pi party!!!

---

<div class="post-metadata">

**Author:** ![RogueM](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/roguem/32/311_2.png) [@RogueM](https://forums.pimoroni.com/u/RogueM)\
**Post date:** [March 2, 2017, 8:44pm UTC](https://forums.pimoroni.com/t/airdac-speaker-phat-questions/4126/2 "2017-03-02T20:44:05Z")

</div>

I think there is currnently an issue with the vu meters when playing through airplay, which we are looking into.

… we are using a pre-compiled version of shairport-sync that is part of raspbian testing (so ahead of debian/raspbian ‘stretch’) and it’s possible that the most recent push has broken something.

you can disable the shairport-sync service, or uninstall it altogether, though from what we observed today if what you want is to play files locally then playback+vu will work regardless of the service running or not.

---

<div class="post-metadata">

**Author:** ![pi2003](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/pi2003/32/1613_2.png) [@pi2003](https://forums.pimoroni.com/u/pi2003)\
**Post date:** [March 2, 2017, 8:58pm UTC](https://forums.pimoroni.com/t/airdac-speaker-phat-questions/4126/3 "2017-03-02T20:58:53Z")

</div>

Thank you

However when I play a file through vlc it says

Audio output failed:  
The audio device “default” could not be used:

No such file or directory.

Any ideas?

---

<div class="post-metadata">

**Author:** ![pi2003](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/pi2003/32/1613_2.png) [@pi2003](https://forums.pimoroni.com/u/pi2003)\
**Post date:** [March 2, 2017, 9:06pm UTC](https://forums.pimoroni.com/t/airdac-speaker-phat-questions/4126/4 "2017-03-02T21:06:46Z")

</div>

I have also tried reinstalling speaker phat through the new interface you showed of bilge tank today and I still get the same error

---

<div class="post-metadata">

**Author:** ![RogueM](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/roguem/32/311_2.png) [@RogueM](https://forums.pimoroni.com/u/RogueM)\
**Post date:** [March 2, 2017, 9:28pm UTC](https://forums.pimoroni.com/t/airdac-speaker-phat-questions/4126/5 "2017-03-02T21:28:40Z")

</div>

I’ll have to check it to be sure… can’t say I have been testing on the latest Raspbian image much - we were discussing this right now in our slack channel, it could possibly be some OS-level change.

---

<div class="post-metadata">

**Author:** ![pi2003](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/pi2003/32/1613_2.png) [@pi2003](https://forums.pimoroni.com/u/pi2003)\
**Post date:** [March 2, 2017, 11:05pm UTC](https://forums.pimoroni.com/t/airdac-speaker-phat-questions/4126/6 "2017-03-02T23:05:42Z")

</div>

Ok so i run both scripts a few more times andnow nothing works. HELP!

---

<div class="post-metadata">

**Author:** ![RogueM](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/roguem/32/311_2.png) [@RogueM](https://forums.pimoroni.com/u/RogueM)\
**Post date:** [March 2, 2017, 11:24pm UTC](https://forums.pimoroni.com/t/airdac-speaker-phat-questions/4126/7 "2017-03-02T23:24:52Z")

</div>

it works here on jessie lite… to be honest I have never tried it in Raspbian full, cause there is little point throwing THAT kitchen sink in for an airplay speaker, is that Jessie Full (with Pixel) you are running?

---

<div class="post-metadata">

**Author:** ![pi2003](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/pi2003/32/1613_2.png) [@pi2003](https://forums.pimoroni.com/u/pi2003)\
**Post date:** [March 3, 2017, 6:46am UTC](https://forums.pimoroni.com/t/airdac-speaker-phat-questions/4126/8 "2017-03-03T06:46:15Z")

</div>

Yes I will try again soon

---

<div class="post-metadata">

**Author:** ![pi2003](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/pi2003/32/1613_2.png) [@pi2003](https://forums.pimoroni.com/u/pi2003)\
**Post date:** [March 3, 2017, 7:24am UTC](https://forums.pimoroni.com/t/airdac-speaker-phat-questions/4126/9 "2017-03-03T07:24:33Z")

</div>

Right so I have tried again with the surface script and it now doesn’t show up on my phone so is there an update to shairpoint sync that could be affecting the script?

I have also just tried speaker phat install again and nothing happened there I just got the same error

---

<div class="post-metadata">

**Author:** ![RogueM](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/roguem/32/311_2.png) [@RogueM](https://forums.pimoroni.com/u/RogueM)\
**Post date:** [March 3, 2017, 7:35am UTC](https://forums.pimoroni.com/t/airdac-speaker-phat-questions/4126/10 "2017-03-03T07:35:33Z")

</div>

what do you call the surface script?

---

<div class="post-metadata">

**Author:** ![pi2003](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/pi2003/32/1613_2.png) [@pi2003](https://forums.pimoroni.com/u/pi2003)\
**Post date:** [March 3, 2017, 7:47am UTC](https://forums.pimoroni.com/t/airdac-speaker-phat-questions/4126/11 "2017-03-03T07:47:54Z")

</div>

I mean Airdac script

---

<div class="post-metadata">

**Author:** ![RogueM](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/roguem/32/311_2.png) [@RogueM](https://forums.pimoroni.com/u/RogueM)\
**Post date:** [March 3, 2017, 7:59am UTC](https://forums.pimoroni.com/t/airdac-speaker-phat-questions/4126/12 "2017-03-03T07:59:25Z")

</div>

hum, as long as your Pi is on the same network as your phone then you should see it as an airplay output.

I’ll have to try it against a full raspbian image - @sandyjmacdonald and I certainly struggled to get the VU meter going yesterday in that environment - but audio was working fine.

In the meantime, you could try option 1 - pHAT DAC - in the airplay insaller, which may cause you less trouble but won’t support the VU LEDs. Or use a fresh Raspbian Jesie Lite image which, at least at my end, seems to work (including VU for Speaker pHAT and pHAT BEAT).

---

<div class="post-metadata">

**Author:** ![RogueM](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/roguem/32/311_2.png) [@RogueM](https://forums.pimoroni.com/u/RogueM)\
**Post date:** [March 3, 2017, 8:07am UTC](https://forums.pimoroni.com/t/airdac-speaker-phat-questions/4126/13 "2017-03-03T08:07:36Z")

</div>

> [@pi2003](#):
>
> Audio output failed:The audio device “default” could not be used:

interestingly ‘default’ is the placeholder name in the asound.conf so I’m wondering if the value replacement that the script attempts (for Speaker pHAT and pHAT BEAT) is failing for you for some reasons.

… check `/etc/asound.conf` and verify that the `output_device` value under the pivumeter scope corresponds to your device.

---

<div class="post-metadata">

**Author:** ![pi2003](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/pi2003/32/1613_2.png) [@pi2003](https://forums.pimoroni.com/u/pi2003)\
**Post date:** [March 3, 2017, 6:05pm UTC](https://forums.pimoroni.com/t/airdac-speaker-phat-questions/4126/14 "2017-03-03T18:05:34Z")

</div>

pcm\_scope.pivumeter {  
type pivumeter  
decay\_ms 500  
peak\_ms 400  
brightness 128  
output\_device speaker-phat  
}

airplay is now working but no vu and still same error when I try to play an mp3

---

<div class="post-metadata">

**Author:** ![pi2003](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/pi2003/32/1613_2.png) [@pi2003](https://forums.pimoroni.com/u/pi2003)\
**Post date:** [March 3, 2017, 7:17pm UTC](https://forums.pimoroni.com/t/airdac-speaker-phat-questions/4126/15 "2017-03-03T19:17:23Z")

</div>

So when I play an mp3 through command line with mpg321

So this is the readout

High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2, and 3.  
Version 0.3.2-1 (2012/03/25). Written and copyrights by Joe Drew,  
now maintained by Nanakos Chrysostomos and others.  
Uses code from various people. See ‘README’ for more!  
THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!

Playing MPEG stream from Beethoven\_fith\_symphony.mp3 …  
MPEG 1.0 layer III, 128 kbit/s, 44100 Hz joint-stereo  
ALSA lib pcm.c:2239:(snd\_pcm\_open\_noupdate) Unknown PCM cards.pcm.front  
ALSA lib pcm\_meter.c:678:(snd\_pcm\_meter\_add\_scope\_conf) Cannot open shared library /usr/local/lib/libpivumeter.so

Does that shed any light?

---

<div class="post-metadata">

**Author:** ![RogueM](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/roguem/32/311_2.png) [@RogueM](https://forums.pimoroni.com/u/RogueM)\
**Post date:** [March 3, 2017, 8:32pm UTC](https://forums.pimoroni.com/t/airdac-speaker-phat-questions/4126/16 "2017-03-03T20:32:19Z")

</div>

I’m not sure to be honest. Just tried with mpg321 here to be sure and it works perfectly.

just to clarify, what Pi is this on? and this is with Jessie Pixel, not Lite, correct? did the compilation process of libpivumeter fail in any way? and if you airplay you get sounds but no VU (but sounds work)?

… if you are in at the weekend / Pi Party, come and see me/us… perhaps you can bring along that SD so I can check a few things. The mp3 you are using could be useful as well, if that is OK for you to leave a copy with us.

I’m in the process of assembling a few test files to try to channel troubleshooting meaningfully and I’ll let you know when they are up and how to use them.

---

<div class="post-metadata">

**Author:** ![pi2003](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/pi2003/32/1613_2.png) [@pi2003](https://forums.pimoroni.com/u/pi2003)\
**Post date:** [March 3, 2017, 9:57pm UTC](https://forums.pimoroni.com/t/airdac-speaker-phat-questions/4126/17 "2017-03-03T21:57:22Z")

</div>

this is on a pi 2 running the latest pixel.

I am at pi party tommorrow and I will be more than happy to bring the sd card.

I am just using bethovens 5th symphony as a test mp3 so it should be fine to copy

Before installing the airdac script my pi worked fine with speaker phat so I am not sure what happened!

Through airplay I get sound but no vu and I can not play mp3’s

I do not think there was a failure in the install of libpivumeter

Ok see you tomorrow (just look out for a teenager wearing a black raspberry pi t-shirt

---

<div class="post-metadata">

**Author:** ![pi2003](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/pi2003/32/1613_2.png) [@pi2003](https://forums.pimoroni.com/u/pi2003)\
**Post date:** [March 3, 2017, 9:58pm UTC](https://forums.pimoroni.com/t/airdac-speaker-phat-questions/4126/18 "2017-03-03T21:58:36Z")

</div>

I will also bring a speaker phat with me which has been soldered up

---

<div class="post-metadata">

**Author:** ![pi2003](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/pi2003/32/1613_2.png) [@pi2003](https://forums.pimoroni.com/u/pi2003)\
**Post date:** [March 3, 2017, 9:59pm UTC](https://forums.pimoroni.com/t/airdac-speaker-phat-questions/4126/19 "2017-03-03T21:59:42Z")

</div>

![](https://us1.discourse-cdn.com/flex016/uploads/pimoroni/original/2X/f/f361acc944d9934ca5f6e2414667847af1da436c.png)

---

<div class="post-metadata">

**Author:** ![pi2003](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/pi2003/32/1613_2.png) [@pi2003](https://forums.pimoroni.com/u/pi2003)\
**Post date:** [March 4, 2017, 10:39pm UTC](https://forums.pimoroni.com/t/airdac-speaker-phat-questions/4126/20 "2017-03-04T22:39:01Z")

</div>

Hey @RogueM,

After seeing you today I have made a fresh install of Jessie lite and have run the installer. The installer runs I see airplay on my phone. I connect and then nothing no audio or vu at all. No idea what is going on!

[Next page](https://forums.pimoroni.com/t/airdac-speaker-phat-questions/4126.md?page=2)
