Command-line podcasts: Difference between revisions
(→Links) |
|||
Line 5: | Line 5: | ||
* https://unix.stackexchange.com/questions/110696/arecord-to-record-what-is-playing-on-speakers | * https://unix.stackexchange.com/questions/110696/arecord-to-record-what-is-playing-on-speakers | ||
<source lang="bash"> | |||
pactl list | grep .monitor | |||
</source> | |||
<pre> | <pre> |
Revision as of 17:25, 9 April 2019
Links
pactl list | grep .monitor
pcm.pulse_monitor { type pulse device alsa_output.pci-0000_00_1b.0.analog-stereo.monitor } ctl.pulse_monitor { type pulse device alsa_output.pci-0000_00_1b.0.analog-stereo.monitor }
podcast.sh
#!/bin/bash
output=${1:-podcast}
arecord -Dpulse_monitor -f cd ${output}_sc.wav &
arecord -Dpulse -f cd ${output}_mic.wav