Recording and playback on Linux

Record in monaural

$ arecord -t wav -d 5 mono.wav
Recording WAVE'mono.wav' : Unsigned 8 bit,Rate 8000 Hz,monaural

Play recording

$ aplay mono.wav 
Playing WAVE'mono.wav' : Unsigned 8 bit,Rate 8000 Hz,monaural

Record in stereo

$ arecord -t wav -d 5 -c 2 stereo.wav
Recording WAVE'stereo.wav' : Unsigned 8 bit,Rate 8000 Hz,stereo

Play recording

$ aplay stereo.wav 
Playing WAVE'stereo.wav' : Unsigned 8 bit,Rate 8000 Hz,stereo

Confirmed on Ubuntu 20.04.

Recommended Posts

Recording and playback on Linux
[UE4] Build DedicatedServer on Windows and Linux
Install wsl2 and master linux on windows
Install and launch k3s on Manjaro Linux
Install and Configure TigerVNC server on Linux
Learn sshd_config and authorized_keys (on Amazon Linux 2)
Replacing rmtrash on Mac and replacing rm on Linux
Image display and video playback on Neovim Terminal
Invert screen output vertically and horizontally on linux
OS and Linux distribution
jblas on Arch Linux
NAT router on Linux
Develop .NET on Linux
Wake on lan on Linux
Monitor traffic on Linux
Linux: files and directories
Update vscode on linux
Try NeosVR on Linux
Check capacity on Linux
LiveUSB creation on Linux
Linux operation on Win10
Specify the volume on linux and make a sound
Maintain directory structure on Linux and move old files
Build Apache HTTP Server and Wildfly on Oracle Linux 8
MySQL installation on Aws Linux 2 and test data preparation
Compile and install MySQL-python for python2.7 on amazon linux
Install Docker on Arch Linux and run it remotely
NTP configuration memo on Linux
Studying Linux commands and frustration
Notes on building TinyEMU and booting the Linux kernel on Emscripten
Install LAMP on Amazon Linux 2 and build a WordPress environment.
CLI and Linux basic terms
Linux (about files and directories)
Device and Linux file system
Install Linux on your Chromebox
Python on Ruby and angry Ruby on Python
About LINUX files and processes
Monitor disk usage on Linux
Use Github Desktop on Linux
Elixir = Comfortable on Linux Mint
Notes on pyenv and Atom
Test Python with Miniconda on OS X and Linux with travis-ci
I installed FreeCAD on Linux (Ubuntu) and created an icon
Check TTL on Linux router
Read core voltage on Linux
Put jenv on Amazon Linux
Easy df command on Linux
Find the most F-word commit on Linux (git and later)
Linux file and directory permissions
Linux on Windows -1-: debian introduction
Install tomcat 5.5 on Amazon Linux.
Introducing Elixir on Linux Mint
Use sshpass on Amazon linux2
Install Homebrew on Amazon Linux 2
Catalina on Mac and pyenv
Paste the link on linux
Install strongSwan 5.9.1 on Amazon Linux 2
Linux environment construction (on WSL environment)
Run FreeBSD on Linux + qemu
Use Linux on Windows 10 (WSL2)
[MariaDB] Install MariaDB on Linux and create a DB and an operating user.