arecord audio stream RPi internally
Posted: Sat Oct 19, 2013 6:18 pm
Hi experts,
I am deperately searching a solution for the challenge as following:
I am "aplay"ing two audio.wav files in two seprate processes/sessions by SSH remote login.
I can hear both audio streams generated in my earphones connected to the board - working in very excellent quality - totally happy!
Now - in addition I want to "arecord" the mixed streams into a third file "mixed_stream.wav" from a third remote SSH login.
aplay - l tells me:
arecord -l tells me:
How to master this ?
The command in the third session should be eventually (assumed) somewhat of "arecord -vv -D xxxxxx -f cdr -t wav mixed_stream.wav" ...!
But what should be the xxxxxx to be substituted with ? I strongly assume a PCM output device name ...!
Or is this task unsolvable by simple means?
Please advise, any help is appreciated!
Regards
WiFi
I am deperately searching a solution for the challenge as following:
I am "aplay"ing two audio.wav files in two seprate processes/sessions by SSH remote login.
I can hear both audio streams generated in my earphones connected to the board - working in very excellent quality - totally happy!
Now - in addition I want to "arecord" the mixed streams into a third file "mixed_stream.wav" from a third remote SSH login.
aplay - l tells me:
Code: Select all
aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
Subdevices: 6/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
pi@PMP $
Code: Select all
arecord -l
**** List of CAPTURE Hardware Devices ****
pi@PMP $
The command in the third session should be eventually (assumed) somewhat of "arecord -vv -D xxxxxx -f cdr -t wav mixed_stream.wav" ...!
But what should be the xxxxxx to be substituted with ? I strongly assume a PCM output device name ...!
Or is this task unsolvable by simple means?
Please advise, any help is appreciated!
Regards
WiFi