jetson nano 连接蓝牙麦克风

date
May 12, 2024
slug
jetson-nano-connect-mic
status
Published
tags
问题记录
summary
type
Post
读书笔记
接上文,给jetson nano 买了个蓝牙音响,特地买了个带麦克风的,这样就可以直接语音输入输出了,解决了蓝牙连接的问题之后,发现输出可以识别,但是输入不行,搜索问题,发现是因为ubuntu默认用的pulseaudio,这个不能同时输入输出,必须用pipewire装饰过的才可以,但是网上找了好久,都不生效,最后找到解决方案,记录下.
1、添加ppa源
sudo add-apt-repository ppa:pipewire-debian/pipewire-upstream
sudo add-apt-repository ppa:pipewire-debian/wireplumber-upstream
2、安装PipeWire
sudo apt install pipewire
3、重新加载进程
systemctl --user daemon-reload
4、启动服务
systemctl --user --now enable pipewire
5、检查服务是否启动
 
systemctl status --user pipewire pipewire-session-manager --no-pager -l
notion image
这样就说明启动成功了
6、再安装一些包
sudo apt install libldacbt-{abr,enc}2 libspa-0.2-bluetooth pipewire-audio-client-libraries libspa-0.2-jack
7、关掉PulseAudio
systemctl --user --now disable pulseaudio.{socket,service}
systemctl --user mask pulseaudio
8、配置ALSA、Jack、 Bluetooth
直接一把索复制过去
sudo cp -vRa /usr/share/pipewire /etc/
sudo cp /usr/share/doc/pipewire/examples/alsa.conf.d/99-pipewire-default.conf /etc/alsa/conf.d/
sudo apt remove pulseaudio-module-bluetooth
sudo cp /usr/share/doc/pipewire/examples/ld.so.conf.d/pipewire-jack-*.conf /etc/ld.so.conf.d/
9、重启设备
10、执行pactl info,看到Server Name: PulseAudio (on PipeWire x.x.x)就说明成功了
notion image

© Frandy 2024