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


ffmpeg

Use ffmpeg to list the webcam and mic supported by MacOS

Here is how to capture capture devices on MacOS

openai,flax,docker

Use the container to run OpenAI's official teaching Python (Flax)

If you log in to the openai website, you can see the official teaching instructions herehttps://beta.openai.com/docs/quickstart/build-your-applicationAPI的KEY的申請, there is a button at the bottom of this page + Create new secret key This article teaches you to use Docker to run the official OpenAI execution environment.

laravel storage

How do I sync files with Laravel's Storage's sftp driver

The installation and setting of SFTP is beyond the scope of this article. If you want to know more, I suggest you read another article https://www.ccc.tc/article/Laravel-SFTP-Driver-Configuration. In this article, I will use a very fast Sample. Demo How do I use the self-built artisan command to synchronize the remote data to the local end. Some people may ask why rsync is not used. This article is to introduce the use of Storage to synchronize files. 🤪Let’s look directly at the code, I set up an sftp disk called ccc in config/filesystems.php.