You are not logged in.

#1 2020-07-10 22:16:15

Vectorlocity
Member
Registered: 2018-04-15
Posts: 132

[SOLVED] Merge 2 audio inputs/sources

I want to merge desktop audio inputs and microphone inputs so that screensharing on Discord records both my voice and the audio of the application I'm sharing - how would I merge these 2 audio inputs/sources? Help will be greatly appreciated!

EDIT: Solved it by myself!
Here is my zsh script - I've added square brackets in the specifics that would differ from system to system:

#!/bin/zsh
pactl load-module module-null-sink sink_name=merged1
pactl load-module module-loopback source=[first audio input] sink=merged1
pactl load-module module-loopback source=[second audio input] sink=merged1

sink_name can be changed to whatever you like, just keep it consistent across the 3 commands where you see I've kept it the same.
You can find the audio inputs by running pactl list sources, and then copy-pasting the output on the line "Name:" after the "Name:" tag.

After this you can just go into pavucontrol, and go to the "Recording" tab (make sure something is recording audio first - like Discord for example, where you would first need to join a voice channel), and then change the input source of the application you want to "Monitor of Null Output" - this will make desktop audio inputs and microphone inputs both be recorded.

Hope I can help any lost travellers that stumble upon this post!

Last edited by Vectorlocity (2020-07-11 13:08:27)

Offline

Board footer

Powered by FluxBB