【树莓派】安装声卡wm8960

By Heanny
2020-02-27
4006 read

修改源

vim /etc/apt/sources.list 
用#注释掉原文件内容,用以下内容取代:

deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main non-free contrib
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main non-free contrib

驱动下载并安装

运行下面命令
sudo apt-get update
sudo apt-get upgrade
git clone https://github.com/respeaker/seeed-voicecard.git
cd seeed-voicecard

git clone https://github.com/waveshare/WM8960-Audio-HAT
cd WM8960-Audio-HAT
(因为个人测试第二个不能用)
sudo ./install.sh
sudo reboot

测试

查看声卡列表
aplay -l
查看录音设备列表
arecord -l

录播测试

可以用arecord录制,然后用aplay播放:(耳机或者喇叭插入到语音模块的3.5mm音频接口):
arecord -f cd -Dhw:1 | aplay -Dhw:1
也可以通过audacity软件测试。打开Audacity后,选择 AC108和2通道 作为输入,bcm2835 alsa作为输出来测试:
sudo apt install audacity
audacity 需要在gui下运行

音量调节

alsamixer
按f6选择声卡进行调节

openvpn安装及证书制作
【树莓派】[续]声卡wm8960的喇叭小外壳

Comments

暂无评论,还不快来坐沙发...

Leave a Reply