樹莓派變成藍牙音箱

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.搞不定的留言問我吧,哈哈~

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容