在我的Raspberry Pi上,我通过将以下内容添加到~/.asoundrc
中,向ALSA添加了一个音频设备:
pcm_slave.usb16 {
pcm "hw:1,0"
format S16_LE
channels 1
}
pcm.rate_convert {
type plug
slave usb16
}
当调用arecord -L
时,会列出设备rate_convert
,但在PyAudio中列出所有设备时,不会列出该设备。为什么会这样?如何在python中使用这个设备?在
Tags:
请尝试下面的代码来查找设备及其索引
相关问题 更多 >
编程相关推荐