by Devin Yang
(This article was automatically translated.)

Published - 4 years ago ( Updated - 4 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


php

My assembled car LaNativeRoute

Although I like Laravel very much, Laravel has many great features, such as Eloquent ORM, Model, and Blade temple, which I like very much. But seriously, he's really fat, and it's kind of slow to start, so I'm just trying to do it the way I want Extract the functions I want, and assemble this self-made frame micro-frame, which is close to Plain PHP. I think anyone who understands PHP can get started.

laravel

Laravel 5.6 has those new changes

Laravel 5.6 is scheduled to be released in February 2018, what changes? Let's see. (Argon2i Password Hashing Algorithm) ​​​​​​​​Argon2 provides the following three versions: 1. In Laravel 5.6, Argon2i password hashing algorithm will be supported. (Argon2i Password Hashing Algorithm) 2. Argon2d resists GPU cracking attacks to the greatest extent. 3. Argon2i is optimized to resist side-channel attacks. Third, Argon2id is a hybrid version. It follows the Argon2i method for the first pass, and then uses the Argon2d method for subsequent passes. It doesn't matter if you don't understand it, I don't understand it anyway, the point is, it's safe to be sure anyway.This is the Open Cryptography Contest (PHC) on July 20, 2015

php, CentOS, phpize

Can't find phpize on older versions of CentOS, can't compile php extensions.

Can't find phpize on older versions of CentOS, can't compile php extensions. How to install phpize?