Finding the Discord Sound Device
How the TranscriptOMatic should operate is, to connect to Discord voice using a dedicated Discord account for this purpose. During sessions, the Discord client (Legcord) will join the discord voice session. No microphone or speaker will be attached to the device.
Checking for the system's audio sinks:
pactl list short sinks
ResultThe result should look something like this:
mela@Cox:~ $ pactl list short sinks
35 auto_null PipeWire float32le 2ch 48000Hz SUSPENDED
Finding the Discord sound device
After joining a Discord voice channel, checking for the Discord system sound device:
pactl list short sink-inputs
ResultThe result should be somethinksomething like:
mela@Cox:~ $ pactl list short sink-inputs
184 35 183 PipeWire float32le 2ch 48000Hz
Creating a persistent monitor and a persistent sink.
pactl load-module module-null-sink \
sink_name=discord_sink \
sink_properties=device.description=DiscordSink
You mightneed to be quick after joining a voice channel,channel. ifIf the channel is silent, or the sink will go away quickly.
pactl move-sink-input $(pactl list short sink-inputs | awk '{print $1}') discord_sink
Controlling the result:
pactl list short sinksinks
The result should look something like this: IDLE instead of SUSPENDED.
mela@Cox:~ $ pactl list short sinks
199 discord_sink PipeWire float32le 2ch 48000Hz IDLE
Getting the sound monitor source:
pactl list short sources
The result should look something like this:
mela@Cox:~ $ pactl list short sources
199 discord_sink.monitor PipeWire float32le 2ch 48000Hz IDLE