Thursday, December 11, 2025

raspberry pi 3 cli recording

line in and out using a 2$ interface from ali express.

add this to .bashrc

#record and playback
alias record="arecord -D plughw:2,0 -f s16_LE -c 1 -r 44100 -V mono test.wav"

#top right usb port if it matters
alias playback="aplay -D plughw:2,0 test.wav"

using iphone lightning to headphone adapter to plug in the aux. Input and output can't record at the same time but it shows a VU meter in the terminal so you can see if you're getting levels.

No comments:

Post a Comment