Enable audio on remote Windows computer through xfreerdp

audioxfreerdp

I'm using xfreerdp to login to a windows machine (runnning windos 7 64bit) on my desk next to my linux machine (running RHEL7).

Normally I use:

xfreerdp -k uk -g 1280x950 --no-nla --plugin cliprdr

Which leaves the audio disabled.
I can forward the sound output from the windows machine to my linux box using:

xfreerdp --plugin drdynvc --plugin rdpsnd

I cannot use the linux microphone device to supply audio to the windows box.
I tried:

--plugin audin_pulse 

and setting the registry entry:

HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp

fDisableAudioCapture

to 0.
I'm not sure how to fix this problem, despite looking at similar questions here.

However, the windows box is on my desk so I would be perfectly happy to have use the headphone and mic sockets there instead.
That is I don't want to forward the audio at all just leave it enabled on the remote machine.
Remote desktop seems to disable it (on the windows side I think) by default .

Under the old rdesktop program I was able to run -r sound:remote or -r sound:local to do this. What is the equivalent on xfreerdp?

[Background: I am aiming to use skype for business on the windows box. It doesn't matter where I plug the headset in as long as I can get it to work.
I do have pidgin+sipe working on the linux box but I'm not certain all the features will work]

Best Answer

My google-fu came back.

after digging some more, I found the answer, use /audio-mode:1 to leave audio on server. I just tested it, and my Windows VM sees the USB audio device I mapped through, a USB headset for VOIP.

xfreerdp /w:1904 /h:1120 /u:myusername /audio-mode:1 /v:192.168.1.2 +clipboard +fonts

https://github.com/FreeRDP/FreeRDP/wiki/CommandLineInterface

values are 0 - redirect locally, 1 - leave on server, 2 - none

I find this alias useful:

alias rdp_ad="xfreerdp /w:1904 /h:1120 '/u:mydomain\myusername' +clipboard +fonts "

Related Question