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


LineBot adds the function of storytelling

The Line Bot on CCC has added a "storytelling" function, in addition to the original idiom Solitaire, ​​​​​​​​Now I will also randomly tell stories, welcome to add friends..:)

ssl,haproxy,certbot

Perfect SSL certificate automatic update environment (HAProxy plus certbot)

HAProxy's reloading speed is very fast, and I don't feel that there is a restart. It is really convenient for all credentials to be handled by HAProxy. Host environment requirements, please confirm that you have the following two instructions (How to install Ubuntu? apt-get install -y haproxy cerbot, I guess, if not, please Google)

laravel

How do I upgrade the backend to Lravel 5.5

At the beginning, my background was a framework created by myself, which also uses MVC architecture, database connections and environment configuration files made by myself, including my own template syntax, until I want to support Restful, I have an idea, why should I rewrite the same function myself after others have written it, would it be better to write it out? So I started to use the framework, At the beginning, Slim was adopted mainly because it supports a lower version of php, but because Slim's twig templates are not as easy to use as Laravel's blade template...