Janus Server (on internet, not behind NAT)
------
sudo apt install snapd
sudo snap install janus-gateway
See https://github.com/RSATom/janus-gatew... for useful info
cd /snap/janus-gateway/current/opt/janus/share/janus/demos && /usr/bin/python -m SimpleHTTPServer 6545 (demo site)
cd /var/snap/janus-gateway/common/etc/
sudo mv janus.plugin.streaming.jcfg janus.plugin.streaming.jcfg.orig
edit janus.plugin.streaming.jcfg, adding only
frontdooraudio: {
type = "rtp"
id = 1
description = "Front Door Audio"
video = false
audio = true
audioport = 5002
audiopt = 111
audiortpmap = "opus/48000/2"
secret = "adminpwd"
}
sudo snap restart janus-gateway
sudo snap logs janus-gateway -n all
sudo snap logs janus-gateway -f
Pi (local LAN, behind NAT)
--
arecord -l to find equivalent of "hw:1"
/usr/bin/gst-launch-1.0 alsasrc device=hw:1 ! audioconvert ! audioresample ! opusenc ! rtpopuspay ! queue max-size-bytes=0 max-size-buffers=0 ! udpsink host=bouncer.repoze.org port=5002
(see https://github.com/leerikss/baby-monitor, from which this was cargo-culted)
Browser (local LAN, behind NAT, but works from nonlocal-cel-connected phone too)
-------
Visit http://yourserverip:6545/streamingtest.html
Start, choose stream, start it.
Listen.