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
Result should look something like this:
mela@Cox:~ $ pactl list short sinks
35 auto_null PipeWire float32le 2ch 48000Hz SUSPENDED
After joining a Discord voice channel, checking for the Discord system sound device:
pactl list short sink-inputs
Result should be somethink like:
mela@Cox:~ $ pactl list short sink-inputs
184 35 183 PipeWire float32le 2ch 48000Hz
Creating a persistent monitor and a persistent sink.
You might be quick after joining a voice channel, if 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 sink
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