树莓派录音命令arecord和aplay

一直使用arecord来录音

并且用aplay来播放,这次重装系统发现有问题

```
root@orangepipc:/tmp# aplay test.wav
Playing WAVE 'test.wav' : Unsigned 8 bit, Rate 8000 Hz, Mono
aplay: set_params:1299: Sample format non available
Available formats:
- S16_LE
- S24_LE
- S32_LE
- S20_3LE
```

记录一下

```
root@orangepipc:/tmp# apt-get install alsa-utils

root@orangepipc:/tmp# arecord -f cd -D hw:0,0 -d 10 test.wav
Recording WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo

root@orangepipc:/tmp# aplay test.wav
Playing WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
root@orangepipc:/tmp#
```

    A+
发布日期:2021年06月28日  所属分类:未分类

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: