Raspberry 4B 2G Shairport-sync Airplay

Raspberry 4B+miniHDMI to HDMI

https://www.raspberrypi.org/products/

下载树莓派操作系统映像

https://github.com/raspberrypi/documentation/blob/master/installation/noobs.md
https://www.raspberrypi.org/software/operating-systems/

制作 U 盘

https://www.raspberrypi.org/software/
参见
Install Raspberry Pi OS using Raspberry Pi Imager

升级树莓派的 Firmware

为了使用网络引导或者USB 移动硬盘引导,需要升级树莓派的 Firmware
下载文件
https://github.com/raspberrypi/rpi-eeprom
解压到 Micro SD 卡的根目录,由于没有 Micro SD 卡的读卡器,使用电信的机顶盒,开启 adb,电脑上远程 adb push 文件到 /sdcard 目录中。
Raspberry 上电,绿灯闪,屏幕输出为绿色

启动

重新加电启动

配置远程访问

https://www.raspberrypi.org/documentation/remote-access/
https://github.com/raspberrypi/documentation/blob/master/remote-access/README.md

配置软件源

https://developer.aliyun.com/mirror/raspbian?spm=a2c6h.13651102.0.0.3e221b11S1dtFI

安装 shairport-sync

https://github.com/mikebrady/shairport-sync
编辑配置文件,我使用的 DAC 是 Amanero OEM Combo384 Module + ES9038 Q2M DAC DSD 解码板,output_device 使用 aplay -L 来查看。
sudo vim /etc/shairport-sync.conf

general =
{
        volume_control_profile = "standard" ; // use this advanced setting to specify how the airplay volume is transferred to the mixer volume.
        playback_mode = "stereo"; // This can be "stereo", "mono", "reverse stereo", "both left" or "both right". Default is "stereo".
        alac_decoder = "apple"; // This can be "hammerton" or "apple". This advanced setting allows you to choose
};

alsa =
{
        output_device = "hw:Amanero"; // the name of the alsa output device. Use "alsamixer" or "aplay" to find out the names of devices, mixers, etc.
};

重启 shairport-sync 服务

sudo /etc/init.d/shairport-sync restart

使用 iphone 或者 mac airplay

现在可以使用 airplay 啦!

文档

https://www.raspberrypi.org/documentation/
https://github.com/raspberrypi/documentation/

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值