by Devin Yang
(This article was automatically translated.)

Published - 5 years ago ( Updated - 5 years ago )

Query available microphones
You can use arecord -l to list all microphones
root@raspberrypi:~# arecord -l
**** List of CAPTURE Hardware Devices ****
card 1: CameraB404271 [USB Camera-B4.04.27.1], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: B20 [BLUE USB Audio 2.0], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Recording
Choose to use card 1 to record cd-quality sound, -d will automatically stop after 5 seconds (48k 16bit)
arecord -D plughw:1 -d 5 -c 4 -r 48000 -f S16_LE test.wav


Choose to use card 2 to record high-quality sound (192k 24bit)
#192k 24bit
arecord -D plughw:2 -c 4 -r 192000 -f S24_LE test.wav

Play
aplay test.wav

Tags:

Devin Yang

Feel free to ask me, if you don't get it.:)

No Comment

Post your comment

Login is required to leave comments

Similar Stories


docker

About Docker's Logging Driver

Docker has a lot of built-in log mechanisms to help us obtain service information executed in the container. These mechanisms (mechanisms) we usually call logging drivers.

fpm

Restart php-fpm in the container

Restart php-fpm in the container

docker, d-laravel, docker-compose, laravel

docker-compose loads multiple configuration files

We will use docker --network to establish multiple container interconnections, but if there are four containers, Is it necessary to issue docker run instructions for different containers four times, kill me, This article introduces the establishment of multiple containers at one time through the yaml file definition of docker-compose. Learn how to load multiple configuration files with the dokcer-compose -f parameter.