diff --git a/systemd/.config/systemd/user/bluesend.service b/systemd/.config/systemd/user/bluesend.service new file mode 100644 index 0000000..43f31df --- /dev/null +++ b/systemd/.config/systemd/user/bluesend.service @@ -0,0 +1,14 @@ +[Unit] +Description=Send bluetooth input to Snapcast +Wants=sound.target +After=sound.target +Wants=network-online.target +After=network-online.target + +[Service] +ExecStart=gst-launch-1.0 -v pulsesrc ! audioconvert ! audioresample ! audio/x-raw,rate=48000,channels=2,format=S16LE ! wavenc ! tcpclientsink host=snapcast.service port=4101 +Restart=always +RestartSec=12 + +[Install] +WantedBy=default.target diff --git a/systemd/.config/systemd/user/snapsend.service b/systemd/.config/systemd/user/snapsend.service new file mode 100644 index 0000000..1ac22f6 --- /dev/null +++ b/systemd/.config/systemd/user/snapsend.service @@ -0,0 +1,14 @@ +[Unit] +Description=Send primary audio ouptut to Snapcast +Wants=sound.target +After=sound.target +Wants=network-online.target +After=network-online.target + +[Service] +ExecStart=gst-launch-1.0 -v pulsesrc ! audioconvert ! audioresample ! audio/x-raw,rate=48000,channels=2,format=S16LE ! wavenc ! tcpclientsink host=snapcast.service port=4100 +Restart=always +RestartSec=12 + +[Install] +WantedBy=default.target