pipewire: add rtp sink, for casting to phone
This commit is contained in:
parent
b9ac3acbf6
commit
41ce56b4cc
|
@ -15,6 +15,7 @@
|
||||||
./mpv.nix
|
./mpv.nix
|
||||||
./mangohud.nix
|
./mangohud.nix
|
||||||
./rnnoise.nix
|
./rnnoise.nix
|
||||||
|
./rtp-sink.nix
|
||||||
./mimeapps.nix
|
./mimeapps.nix
|
||||||
./chat.nix
|
./chat.nix
|
||||||
./email.nix
|
./email.nix
|
||||||
|
|
35
user/rtp-sink.nix
Normal file
35
user/rtp-sink.nix
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
{ config, pkgs, lib, ... }: {
|
||||||
|
# RNNoise is a noise supperssion neural network
|
||||||
|
# Here we use it as a plugin for pipewire to create a virtual microphone
|
||||||
|
config = {
|
||||||
|
home.file = {
|
||||||
|
".config/pipewire/pipewire.conf.d/99-rtp-sink.conf".text = ''
|
||||||
|
context.modules = [
|
||||||
|
{ name = libpipewire-module-rtp-sink
|
||||||
|
args = {
|
||||||
|
node.description = "Phone rtp receiver"
|
||||||
|
|
||||||
|
#sap.ip = "224.0.0.56"
|
||||||
|
#sap.port = 9875
|
||||||
|
#source.ip = "0.0.0.0"
|
||||||
|
destination.ip = "192.168.0.100"
|
||||||
|
destination.port = 4010
|
||||||
|
#local.ifname = "eth0"
|
||||||
|
net.mtu = 320
|
||||||
|
#net.ttl = 1
|
||||||
|
#net.loop = false
|
||||||
|
#sess.name = "PipeWire RTP stream"
|
||||||
|
#audio.format = "S16BE"
|
||||||
|
audio.rate = 48000
|
||||||
|
audio.channels = 2
|
||||||
|
audio.position = [ FL FR ]
|
||||||
|
stream.props = {
|
||||||
|
node.name = "rtp-sink"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue