Skip to content

Instantly share code, notes, and snippets.

@probonopd
Created August 29, 2020 13:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save probonopd/394b848efe374c7cd754629d8cc3ad08 to your computer and use it in GitHub Desktop.
Save probonopd/394b848efe374c7cd754629d8cc3ad08 to your computer and use it in GitHub Desktop.
FreeBSD launcher for OBS Studio so that one can record sound from the microphone
#!/bin/sh
# See
# https://www.youtube.com/watch?v=r0yMCOH8BhY
# for more information
set -x
MIXER=$(cat /dev/sndstat | grep "rec" | cut -d ":" -f 1 | tail -n 1 | sed -e 's|pcm|mixer|g')
mixer -f /dev/$MIXER mic 100
export XDG_RUNTIME_DIR="/tmp/$USER"
mkdir -p "/tmp/$USER"
chmod 0700 "/tmp/$USER"
pulseaudio --start
obs
pulseaudio --kill
@probonopd
Copy link
Author

probonopd commented Aug 29, 2020

Then add

  • Noise Suppression
  • Noise Gate
  • Compressor
  • Limiter

audio filters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment