Skip to content

Instantly share code, notes, and snippets.

@ibaiul
ibaiul / pulse-recorder.bash
Created June 9, 2022 18:20 — forked from ramast/pulse-recorder.bash
Record pulseaudio output to mp3 file
#!/bin/bash
# Credit: This code is based on answers provided by Waschtl and KrisWebDev
# https://askubuntu.com/questions/60837/record-a-programs-output-with-pulseaudio
# NOTE: An improved script written in python can be found here https://gist.github.com/ramast/c47bd5e57586e9c2deb74975e27089f0
cleanup(){
if [ -z "$module_id" ]
then
exit 3
fi