I have listen that is possible share audio and microphone. I want use my mic and my headsphones
I would like to use my microphone and my headphones (like the mouse and keyboard) on one computer and when I change the other that works on the other.
I'm sorry if this is stupid, I do not want to waste your time :)
At least for linux, this already exists (at least, for outputs to my knowledge) via a pulseaudio module.
I feel like this would be better suited as it's own application.
A few links for those who wonder how it can be done, particularly between windows and linux (note, I haven't _yet_ tried any of these):
first some relevant stack exchange questions: superuser 1 superuser 2 sound.stackexchange
... and some solutions (not tested by me, as noted above):
Play To
feature that can broadcast to things supporting DLNAI feel like this would be better suited as it's own application.
@AdrianKoshka sure, though Barrier could make this less painful by documenting what's needed and/or helping the user configure it. :)
Upon reflection, I still feel this is incredibly out of scope for barrier and would only add unneeded complexity.
Just wanted to add a method that worked for me with barrier using ffmpeg
. This will share desktop audio only (not microphone input).
In this example, the client is Ubuntu, and the server is Windows. ffmpeg will need to be installed on both. Other scenarios will need a different command and understanding of ffmpeg.
On the "client", run the ffmpeg command:
ffmpeg -re -f alsa -ac 2 -i default -f rtp rtp://server:1234
Where server
is your barrier server IP address. This will stream desktop audio to the specified address
(If you use pulse instead of alsa, replace -f alsa
with -f pulse
)
It will output something like:
SDP:
v=0
o=- 0 0 IN IP4 127.0.0.1
s=No Name
c=IN IP4 192.168.1.82
t=0 0
a=tool:libavformat 58.21.100
m=audio 1234 RTP/AVP 97
b=AS:768
a=rtpmap:97 PCMU/48000/2
In my example the server is 192.168.1.82
On the server machine (192.168.1.82
), copy the SDP text above into a file sdp_file
and run the ffplay command:
./ffplay -protocol_whitelist 'rtp,file,udp' .\sdp_file
Enjoy streamed low-latency audio.
I could see this potentially working inside barrier in the future, so here's a little inspiration and direction in case anyone has time for a fork.
Most helpful comment
At least for linux, this already exists (at least, for outputs to my knowledge) via a pulseaudio module.
I feel like this would be better suited as it's own application.