Command-line podcasts: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
This is about recording simultaneously microphone input and the computer's audio (soundcard) so you can do a radio/podcast style recording
== Links ==
== Links ==


Line 6: Line 6:
* 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


Found out the device name of the "monitor"... using the pactl command...
<source lang="bash">
pactl list | grep .monitor
</source>
Now you have a device called pulse_monitor that you can use with [[arecord]]
Then added this to the file / create this file: /etc/asound.conf
<pre>
<pre>
pcm.pulse_monitor {
pcm.pulse_monitor {
Line 20: Line 28:
== 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]]

Latest revision as of 17:29, 9 April 2019

This is about recording simultaneously microphone input and the computer's audio (soundcard) so you can do a radio/podcast style recording

Links

Found out the device name of the "monitor"... using the pactl command...

pactl list | grep .monitor

Now you have a device called pulse_monitor that you can use with arecord

Then added this to the file / create this file: /etc/asound.conf

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