0.變是不可能變的,你首先得有個普通音箱。
1.刷入Stretch系統(tǒng),地址:https://downloads.raspberrypi.org/raspbian_latest
2.默認源好像有問題,換一下:
sudo vim /etc/apt/sources.list
#deb http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi <<---屏蔽該源
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
#替換為 http://mirrors.shu.edu.cn/raspbian/raspbian/
deb http://mirrors.shu.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi #<---增加
3.更新列表:
sudo apt-get update && sudo apt-get -y dist-upgrade && sudo apt-get update
4.安裝xrdp方便遠程桌面登錄(可不裝):sudo apt install xrdp
5.安裝a2dp支持
git clone https://github.com/bareinhard/super-simple-raspberry-pi-audio-receiver-install
cd super-simple-raspberry-pi-audio-receiver-install
git checkout stretch-fix
sudo ./install.sh
6.安裝過程中的幾個選項,順序記不太清了:
(1)Car和Home那個,我選的Home,具體區(qū)別不清楚
(2)Device name和AirPlay Device Name,寫PiMusic,其實隨便寫
(3)密碼,不輸入就可以
(4)Do you want all the Devices to use the same name? (y/n) : Choose y or n,選n
(5)Which Sound Card are you using? (0/1/2/3/4/5/6/7/8/9/10/11),寫0
7.裝完以后,音箱插樹莓派上,把樹莓派的藍牙查找打開,用手機藍牙找到并連接,播放音樂即可。
8.搞不定的留言問我吧,哈哈~