linux record audio (arecord or similair) and separate left/right channel
0
votes
1
answer
358
views
I want to record (line in) from an audio device and separate the left and right channel each to a different process, or record them separately of course.
What I want is something like that (play command just as example):
either:
arecord (left channel only) -q -D plughw:1,0 -f S16_LE -r 22050 | play -t raw -r 22050 -b 16 -e signed -q -
arecord (right channel only) -q -D plughw:1,0 -f S16_LE -r 22050 | play -t raw -r 22050 -b 16 -e signed -q -
(may also result in device or resource busy?)
or something like
"arecord | splitchannels (leftchannel | process 1) (rightchannel | process 2)"
or possibly more like that
"arecord | tee >(getleftchannel | process1) >(getrightchannel | process2) > /dev/null"
as intensive web searches didn't give any usable results.
Any idea how I can accomplish that?
Asked by Paul Neuwirth
(111 rep)
Dec 3, 2023, 02:05 PM
Last activity: Aug 5, 2025, 01:07 PM
Last activity: Aug 5, 2025, 01:07 PM