Deprecation warning: This post is deprecated. Please find our new documentation at: https://dietpi.com/docs/software/media/#shairport-sync
Shairport Sync
Shairport Sync is an AirPlay audio player which plays audio streamed from iTunes, iOS devices and third-party AirPlay sources such as ForkedDaapd and Airfoil.
Audio played by a Shairport Sync-powered device stays synchronised with the source and hence with similar devices playing the same source. This allows for synchronised multi-room audio on multiple devices.
AirPlay device name:
When searching for an Airplay device, select
Shairport-Sync on DietPi
Stream from Android:
https://play.google.com/store/apps/deta ... streambels
Stream from iPad/iPhone
https://support.apple.com/en-gb/HT204289
Stream from a Windows/Mac PC:
Airfoil is an application that will let you stream audio playback directly to any Shairport Sync device. Press play on your favourite music player (eg: winamp/spotify) and click the speaker next to the
DietPi device.
Audiophiles - Master music in realtime
By using a PC +
Airfoil, you can master the music in realtime using the PC's CPU. This will allow all your shairport sync devices to sound even better without any performance hit on the device.
Multiple Shairport devices / Change Shairport-sync Name:
If you are planning to use multiple Shairport devices on the same network, please make sure the hostname of each device is unique. The hostname will also effect the shairport-sync name.
This can be completed in
dietpi-config > Security Options > Change Hostname.
Soxr interpolation:
Soxr interpolation will improve the output audio quality on Shairport. However, it is extremely CPU intensive.
Enable Soxr:
Code: Select all
sed -i '/interpolation = /c\interpolation = "soxr";' /usr/local/etc/shairport-sync.conf
systemctl restart shairport-sync
Disable Soxr:
Code: Select all
sed -i '/interpolation = /c\\/\/interpolation = "soxr";' /usr/local/etc/shairport-sync.conf
systemctl restart shairport-sync
If you have choppy playback using Soxr:
Increasing the shairplay-sync process priority (nice) may resolve the issue.
- Run
dietpi-services from the terminal
- Select
shairport-sync via up/down buttons then press enter
- Select
CPU Nice via up/down buttons then press enter
- Select
-20 : (Highest priority)' via up button, then press enter
DietPi will then automatically apply and set the nice level.
If the choppy playback continues, the CPU most likely is insufficient for the processing required for soxr, and, soxr should be disabled.
>>
Return to DietPi-Software List