Difference between revisions of "pulseaudio virtual sinks"

From thelinuxwiki
Jump to: navigation, search
(Created page with "below is a post found to stream music over skype. this can also be used to stream over teamspeak(tested). taken from [http://askubuntu.com/questions/257992/how-can-i-use-pul...")
 
Line 1: Line 1:
 
below is a post found to stream music over skype.  this can also be used to stream over teamspeak(tested).
 
below is a post found to stream music over skype.  this can also be used to stream over teamspeak(tested).
  
taken from [http://askubuntu.com/questions/257992/how-can-i-use-pulseaudio-virtual-audio-streams-to-play-music-over-skype]
+
taken from [http://askubuntu.com/questions/257992/how-can-i-use-pulseaudio-virtual-audio-streams-to-play-music-over-skype]
 +
 
 +
[http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Modules/#index63h3 pulseaudio module documentation]
  
 
After many hours of tinkering I finally achieved it!
 
After many hours of tinkering I finally achieved it!

Revision as of 17:40, 8 March 2015

below is a post found to stream music over skype. this can also be used to stream over teamspeak(tested).

taken from [1]

pulseaudio module documentation

After many hours of tinkering I finally achieved it!

I created two Null Outputs and created two loopbacks for the first and one loopback for the second.

pactl load-module module-null-sink sink_name=Virtual1
pactl load-module module-null-sink sink_name=Virtual2
pactl load-module module-loopback sink=Virtual1
pactl load-module module-loopback sink=Virtual1
pactl load-module module-loopback sink=Virtual2

Next I opened PulseAudio Volume Control (pavucontrol)

These are my settings. I typed them in the order they appear. Numbers go from up to down.

   Recording tab:
       Applications:
           All applications should input from your headset/microphone.
           Except the application(s) you want to send the audio to should be set to one of the following. If you ONLY want to send the audio: Monitor of Null Output 1. It will be the first "Null Output" in the list. If you want to send both the audio and your voice: Monitor of Null Output 2. It will be the second "Null Output" in the list.
       Virtual Streams:
           Loopback to Null Output (1): Your headset/microphone
           Loopback to your headset/microphone: Null Output 1. It will be the first "Null Output" in the list.
           Loopback to Null Output: Null Output 1. It will be the first "Null Output" in the list.
   Playback tab:
       Applications:
           All applications should output to your headset/speaker.
           Except the application(s) you want to record/send through Skype/stream should be set to Null Output 1. It will be the first "Null Output" in the list.
       Virtual streams:
           Loopback of your headset: Null Output 2. It will be the second "Null Output" in the list.
           Loopback of Monitor of Null Output (1): Your headset.
           Loopback of Monitor of Null Output (2): Null Output 2. It will be the second "Null Output" in the list.




just to not get confused with the "null Output", just specify the names like this:

pactl load-module module-null-sink sink_name=Virtual1 sink_properties=device.description="NAME HERE (mic+music)"
pactl load-module module-null-sink sink_name=Virtual2 sink_properties=device.description="NAME HERE (only music)"
pactl load-module module-loopback sink=Virtual1
pactl load-module module-loopback sink=Virtual1
pactl load-module module-loopback sink=Virtual2

[[category:pulseaudio]