准备给软件加上音频采集及播放的功能,由于还没有去做扩展出音频接口的工作,我先使用蓝牙耳机作为声音输入吧。
支持还是比较简单的,按照下面网址提供的操作执行就可以了。关注链接标题 Enabling Bluetooth Audio
主要执行以下几点。
1.准备编辑文件
sudo vim /lib/systemd/system/bluetooth.service.d/nv-bluetooth-service.conf
2.打开后看到以下内容
ExecStart=/usr/lib/bluetooth/bluetoothd -d --noplugin=audio,a2dp,avrcp
将以上内容使用#注释,然后添加(就是去掉了--noplugin=audio,a2dp,avrcp):
ExecStart=/usr/lib/bluetooth/bluetoothd -d
3.使用下面的命令更新apt-get,然后安装音频支持模块。
$ sudo apt-get update
$ sudo apt-get install pulseaudio-module-bluetooth
4.重启(可以使用以下命令行)。
$ sudo reboot
5.重启后链接你的蓝牙耳机吧。
最后再补充几句吧。对于新手可能还需要一些说明。
在jetson agx xavier上插上usb蓝牙适配器。
经过以上设置后,我们能在右上角Bluetooth Settings, 进入设置界面后,点击“+”添加你的蓝牙设备。