If old stereo systems are to be connected to the network, there are various options. So you can just a small Airplay dongle Buy one that will surely serve the purpose. However, Bluetooth isn't always the best solution - and Apple's Airport Express AirPlay receiver is no longer manufactured and doesn't support DLNA either. If you want to have everything in one device, it makes sense to simply make your own AirPlay, DLNA and Bluetooth receiver. With the Raspberry Pi this is no problem.
Multi-Music-Receiver: What you need
The construction of a multi-music receiver with DLNA, AirPlay, Spotify and Bluetooth is made possible with the help of the Free Tools Rpi Audio Receiver. You don't need much to make a device like this:
- A Raspberry Pi with WiFi and Bluetooth (Raspberry Pi 3 and higher)
- An Micro SD memory card with at least 8, better 16 gigabyte capacity
- Possibly a housing for the Pi.
- A micro USB power adapter, that ensures the necessary performance.
- An audio jack cable
Build Raspberry Pi audio receivers for AirPlay, Bluetooth, DLNA and Spotify
Once you have all the pieces together, the rest is easy Raspberry Pi tinkering with no overly complex setup steps. Accordingly, you can start now: First install the Raspberry Pi, activate SSH and integrate it into the WLAN. We have here instructions on how to do the basic setup in just a few simple steps. Then you can start:
- Insert the configured memory card into the Raspberry Pi and connect it so that it starts. After the basic setup, it will automatically connect to your WLAN.
- Opens a Terminal window (Mac/Linux/Windows 10) or PuTTy (older versions of Windows) and give here
ssh pi@raspberryto connect via SSH.
- Enter "raspberry" as the password. You are then connected via SSH and can control the Pi.
- After that you have to
sudo apt-get updateto update the package lists.
- After the process you bring the system with you
sudo apt-get upgrade -yup to date.
- Now you can start the actual installation of the multi-audio receiver. Give for it first
sudo apt install -y --no-install-recommends gitto install Git.
- Then give
git clone https://github.com/nicokaiser/rpi-audio-receiver.git, which copies the multi-receiver tool from Github to the Pi.
- Switch now
cd rpi-audio-receiverinto the directory of the currently loaded software...
- ...and calls along
./install.shthe installer of the multi-audio tool.
- The installer will first ask you for the hostname that you want to set. It is currently "raspberrypi", you can either keep it with the enter key or set a new hostname, such as "musicpi". It is important that you remember the new name.
- Now the installer asks you for a "Pretty hostname", this is what is displayed as an AirPlay receiver, for example. Keep "Raspberry Pi" with Enter or set a new "pretty" name like "MusicPi".
- The installer will now work for a while and post-install software. Then he asks with "Do you want to install Bluetooth Audio (BlueALSA)?". [y/N]” if you want to install the Bluetooth audio module. Confirm with "y" for "Yes".
- Next, the installer will ask you if you want to install AirPlay: "Do you want to install Shairport Sync AirPlay Audio Receiver (shairport-sync v3.3.5)?" [y/N]”. Confirm here with "y".
- After a little installation work, the next question follows: Do you want to install the Spotify Connect service? "Do you want to install Spotify Connect (spotified v0.2.5)? [y/N]" - can't hurt, enter "y" to confirm the installation.
- And one more question: “Do you want to install UPnP renderer (gmrender-resurrect)? [y/N]” installs UPnP service as DLNA support. Confirm here with "y".
- "Do you want to install Snapcast client (snapclient})? [y/N]" still installs the SnapCast service. It is about for an open source version of AirPlay and Co., which of course can't hurt either. So press "y" and enter and in with it!
- "Do you want to install Startup sound? [y/N]” installs a startup sound. It may or may not make sense, but we would definitely take it with us and disable it later if necessary. So press "y" and enter.
- "Do you want to install ALSA VU meter plugin (pivumeter) [y/N]" uses additional audio functions. A “y” followed by the Enter key is also appropriate here.
- Now the Pi is ready. With
sudo rebootyou restart it to activate the settings and services. Attention: It is now no longer accessible via SSH under "pi@raspberrypi", but under "pi@(your-hostname-from-step-10)".
Use multi-music receiver
That's it: You can now use the Raspberry Pi as a multi-music receiver. It will show up as a Bluetooth audio device and as an AirPlay and DLNA receiver on appropriate devices. You can now play your music on your stereo system via the Pi without any major fuss – with whatever standard you prefer.
With us, the Pi appeared on the Mac, as well as on Windows and iOS as an AirPlay receiver and as a Bluetooth device, and the connection was established with a flick of the wrist. However, the volume was very low. To change that, we logged into the Pi with SSH and
alsamixer started. The output volume can then be adjusted here.
Better audio quality with Raspberry Pi DAC
Of course, the Pi does not deliver the best sound quality with the built-in jack. If you want more, for example because the Music Pi is supposed to play a high-quality system, you should go to one additional DAC for the Raspberry Pi to grab. These are plug-in boards with which you can significantly increase the sound quality.
The multi-music receiver supports corresponding boards, but the HifiBerry as the most supported audio adapter for the Pi. He can for small money can be purchased from Amazon. We haven't gone through the setup with the HifiBerry: additional setup steps may be necessary. What is practical, however, is that the multi-audio receiver then dutifully does its job.