Command-line podcasts: Difference between revisions

From XPUB & Lens-Based wiki
Line 20: Line 20:
== podcast.sh ==
== podcast.sh ==
<source lang="bash">
<source lang="bash">
#!/bin/bash
output=${1:-podcast}
arecord -Dpulse_monitor -f cd ${output}_sc.wav &
arecord -Dpulse -f cd ${output}_mic.wav
</source>
</source>


[[Category:Cookbook]]
[[Category:Cookbook]]

Revision as of 17:25, 9 April 2019

Links

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