You'll also need a sink for the microphone server, for that do `mkdir ~/.config/pipewire && cp /usr/

You'll also need a sink for the microphone server, for that do
mkdir ~/.config/pipewire && cp /usr/share/pipewire/pipewire-pulse.conf ~/.config/pipewire
. That's copying the configuration file you need to edit in a text editor - you may need to show hidden files to see
.config
. There's a section called
context.exec
:
context.exec = [
    #{ path = "pactl"        args = "load-module module-always-sink" }
    #{ path = "pactl"        args = "upload-sample my-sample.wav my-sample" }
    #{ path = "/usr/bin/sh"  args = "~/.config/pipewire/default.pw" }
]

You'll need to add the following lines before the
]
:
# Creates a device where AudioRelay can stream audio into
{ path = "pactl"        args = "load-module module-null-sink sink_name=audiorelay-virtual-mic-sink sink_properties=device.description=Virtual-Mic-Sink" }
# Creates a device usable by communications apps (e.g: skype)
{ path = "pactl"        args = "load-module module-remap-source master=audiorelay-virtual-mic-sink.monitor source_name=audiorelay-virtual-mic-sink source_properties=device.description=Virtual-Mic" }

Save, log out and log back in, or reboot if that doesn't work. That'll create a dedicated device you can select in the AudioRelay menu to send your phone mic audio to, and you'll be able to select it on Discord and such.
Was this page helpful?