If you want to record both microphone and speakers output then create virtual speaker and two loopback modules: one which mirrors microphone to virtual speaker and the second one which mirrors your speakers.
Then just choose to record monitor of that virtual speaker inside ssr.
Commands:
pactl load-module module-null-sink sink_name=both sink_properties=device.description=Both-mic-and-speakers
pactl load-module module-loopback source=alsa_output.pci-0000_00_1f.3.analog-stereo.monitor sink=both
pactl load-module module-loopback sink=both
Just make sure to replace alsa_output.pci-0000_00_1f.3.analog-stereo with name of your speakers, you can get one using pactl list sinks short.
This solution has drawbacks however:
- it records sound from all your applications
- your system volume affects the recording's volume (so, if you have volume set to 20% the recording will be quite quiet), compare that with your voice which is affected by your mic's volume (probably 100%)
- There'll be echo in the recording if you don't use headphones
You can mitigate first two issues by using more complex script (which I use to record single application):
pactl load-module module-null-sink sink_name=fake_speakers sink_properties=device.description=Virtual-speakers
pactl load-module module-remap-source source_name=fake_mic master=fake_speakers.monitor source_properties=device.description=Virtual-mic
pactl load-module module-null-sink sink_name=fake_speakers2 sink_properties=device.description=Second-virtual-speakers
pactl load-module module-loopback source_dont_move=true sink_dont_move=true sink=fake_speakers2 source=fake_speakers.monitor
pactl load-module module-loopback sink_dont_move=true sink=fake_speakers2
pactl load-module module-remap-source source_name=fake_mic2 master=fake_speakers2.monitor source_properties=device.description=Second-virtual-mic
pactl load-module module-loopback source_dont_move=true source=fake_speakers.monitor
Then set application's sink to be Virtual Speakers. And then set SSR audio source to be Second-Virtual-mic. You will still hear application, but SSR will record only selected apps and your voice and everything has 100% volume by default and is to your control. If you encounter sound delay try adding latency_msec parameter to loopbacks.