Created
August 29, 2020 13:46
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Then add
audio filters.