5 ms·
This guy must have been doing this at exactly the same time as me. I used shairport-sync and whilst I eventually got it working last week it wasn't plain sailin
by tonylemesmer 8y ago
This guy must have been doing this at exactly the same time as me. I used shairport-sync and whilst I eventually got it working last week it wasn't plain sailing. Getting the service setup to start upon powerup was a real pain in the ass. I've also had to move it onto a separate wifi network as an RPi camera was hogging the bandwidth which caused audio dropouts on the shairplay-sync server.
Also as many of you will probably comment, the Rpi audio out stage is awful. I'm waiting for my Dad to return my USB soundcard so I can use that instead of the headphone socket on the Pi.
- 3chelon 8y agoAbsolutely. I'm the article author and yes, adding a DAC is definitely recommended because the output from the audio jack is terrible. I'm intending to do a follow-up article on this, but so far I've tried IQAudIO Pi-DAC+ with an RPi 3A+ and HifiBerry DAC+ Zero on a Zero W. I was extremely surprised by the good quality of the HifiBerry.
- hedora 8y agoI noticed the writeup has your output set at +4db. That implies it’s substantially overdriving the output, which will cause obvious distortion. I have a rpi plugged into my high-end-ish stereo for other reasons, and find the output to be more than good enough. If you’re complaining about audiophile nuances like warmth and presence, and also using 24-bit, high sample rate audio files, then fine, but if you’re encountering obvious distortion or buzzing then something’s wrong with your setup. (Thanks for writing this up, by the way; it didn’t occur to me that I could set up an AirPlay server with stuff I have laying around.) [edit: I forgot that I’m using hdmi audio. Still, the +4db thing is a red flag]
- 3chelon 8y ago4dB is the default setting for the built in audio set to 100%. And yes it sounds quite horrible, but the internal audio does in general. When you add a DAC that is fixed and it changes to the correct setting of 0dB.
- laumars 8y agoHDMI audio from the Pi is fine. It’s analogue audio from the 3.5mm TRRS connector where the sound quality is poor, quiet and hissy. I first discovered how bad it was building a bespoke car stereo out of a Raspberry Pi 1 - and ended up buying a USB DAC because of it. But it seems to still be an issue even in the later boards because emulation forums are often talking about using HDMI or an addon board for RGB+Stereo if your display doesn’t support HDMI.
- tonylemesmer 8y agoGreat! I'm hoping that my Behringer UCA202 will do the trick.
- askvictor 8y agoDoesn't the (analogue) audio have better isolation on more recent pi models?
- rezeroed 8y agoHow has it managed to escape me, immersed in tech every day for many years, that there is such a thing as a USB soundcard? Crazy how things can slip through the cracks, be so close yet missed.
- opencl 8y agoThey're the same thing as the headphone dongles that most new phones these days need to output audio.
- spookthesunset 8y agoThere are tons of them too with all kinds of different attributes (multi channel, spdif, etc)
- tracker1 8y agoThey're definitely useful. Also, even at the low end, often better than onboard simply because they get so much less interference. There are also some really nice higher end options if you ever want to do multi-channel mixing/capture. Aside: for anyone considering a hackintosh, USB audio is about your best bet in this space.
- ghostly_s 8y agoNote these are often called by other names ('soundcard' is not very descriptive to me because they look nothing like the PCI cards you're imagining installing in your desktop PC). A 'USB audio adapter' or 'USB DAC' are the same thing.
- 0-_-0 8y agoThey usually work with your phone as well
- z2 8y agoI made a Shairport server for 6 audio zones years ago on an ancient desktop computer and multiple PCI sound cards. After it died, it was hard to migrate to a single Raspberry Pi due to the USB audio cards devices scrambling on each boot (so the kitchen may become the living room, etc.).
- edejong 8y agoThis can be solved in a udev rule [1]. For example, this is a rule I use to always bind my P1 (smart energy meter) at the same port: KERNEL=="ttyUSB[0-9]*", ATTRS{interface}=="P1 Converter Cable", NAME="%k", SYMLINK="USBP1Cable", GROUP="tty", MODE="0660" [1] /etc/udev/rules.d/50-ttypermissions.rules
- z2 8y agoThank you! I'm going to take another look and try to get this set up. Looks like udev and device paths will do it: https://stackoverflow.com/questions/43361613/how-can-i-identify-multiple-usb-sound-cards https://stackoverflow.com/questions/43361613/how-can-i-ident...
- akeck 8y agoThere's a new RPi audio driver. https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=195178 https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=1951...
- kingosticks 8y agoI mean, you say "new" but it's been around for over a year. And it's a huge improvement. Are all the people here complaining about audio quality, complaining about this improved driver or the original poor driver? My ears are not great but I find the new one very usable with an amp; it's not great with headphones but that's hardly surprising.
- akeck 8y agoThat's strange to me as well. The new driver continues to sound awesome for me, so hmmm...
- rubatuga 8y agoShairport-sync also has small audio glitches, and I ended buying an airport express. Certainly cheaper than buying a raspberry pi and good DAC. The airport express DAC is very good.
- bigiain 8y agoAnd a recent-ish firmware update for them enabled AirPlay2, so I can now stream to all three of my Airport Expresses in sync from my phone or iPad. I was quite pleasantly surprised by Apple still providing useful software updates to hardware they no longer sell (I'm guessing the probably won't push an AirPlay2 update =for my original AppleTV though, since they'd prefer I upgrade it to a newer one which they're still selling...)