Skip to content

Instantly share code, notes, and snippets.

View mmdbalkhi's full-sized avatar
:octocat:

Komeil Parseh mmdbalkhi

:octocat:
View GitHub Profile
@mmdbalkhi
mmdbalkhi / pashare.sh
Created May 9, 2022 17:37
stream sounds with pulseaudio
#!/bin/sh
ip=`ip addr show | grep -oP '(?<=inet\s)(192\.)+\d+(\.\d+){2}'`
rate=48000
channels=2
port=1234
case "$1" in
start)
echo "* ip: $ip"