实测可用:

sudo arecord --duration=10 --device=plughw:1,0 --format=cd aaa.wav
sudo arecord --duration=10 --device=plughw:1,0 --format=S16_LE --rate=44000 --channels 2 aaa.wav
sudo arecord --device=plughw:1,0 --file-type=wav --format=S16_LE --rate=8000 --channels 1 aaa.wav
 
不清楚device为什么指定为plughw:1,0。
暂时只能sudo,把普通用户加到audio组似乎不行,同样不清楚原因。
 
PC上OK,树莓派上NG:
使用sox
rec -d /dev/media0 aaa.wav
 
PS:
1.查看声卡:
arecord -l
2.查看声卡驱动驱动安装状况:
cat /dev/sndstat

相关文章:

  • 2021-04-15
  • 2021-12-20
  • 2022-12-23
  • 2022-01-07
  • 2021-09-08
  • 2021-11-01
  • 2021-08-05
  • 2021-11-27
猜你喜欢
  • 2021-05-10
  • 2022-12-23
  • 2022-12-23
  • 2022-01-01
  • 2021-05-15
  • 2022-02-10
相关资源
相似解决方案