DuoStream / Duo

An HDR-compatible multiseat streaming solution based around RdpWrap, Sunshine, Moonlight, and a variety of custom driver and library patches
437 stars 1 forks source link

How can I use a usb audio device on my server with Duo? (so I can use voice / headset via usb on my host pc) #177

Open leshokunin opened 1 month ago

leshokunin commented 1 month ago

I've been looking for a good solution to use a microphone while gaming online. Since Moonlight isn't good at handling microphones, I've resigned myself to directly plug my USB audio dongle to the PC (I can always use BT for the Mac).

Hardware: I use my Mac as the client, and PC as server. 10GbE local network.

Problem:

How can I use a usb audio device on my server with Duo?

samkitty commented 1 month ago

Try VirtualHere

leshokunin commented 1 month ago

I know it doesn't work from a Mac client to PC host (Mac seems to not handle mics for this). Do you mean VirtualHere from main Windows user to Duo user?

samkitty commented 1 month ago

You should download the VirtualHere client on your Windows PC (on the same user account you use for Duo instance) and the macOS version of the VirtualHere server on your Mac (outside of Duo). Once connected, any device you plug into the Mac should appear as if connected directly to your PC.

I haven't tried this on Mac, so I'm not sure if there are any limitations that prevent this from working.

I also never tried running VirtualHere client-server on the same Windows PC using Duo+Host so can't tell you whether that would work.

leshokunin commented 1 month ago

From the page: (Note Microphones/webcams wont work via VirtualHere)

samkitty commented 1 month ago

From the page: (Note Microphones/webcams wont work via VirtualHere)

That's for the client of macOS. You want the SERVER to run on your Mac while the CLIENT runs on your Windows PC.

leshokunin commented 1 month ago

Interesting idea. Let me see if I can!

leshokunin commented 1 month ago

Just tested it. I ran the server on the mac, shared the headset. The PC client sees it, and I can click use.

However, no new audio device shows in the sound settings. Only the remote audio sink. Same as when I tried plugging directly to the PC via usb, or via bluetooth. Seems Duo only wants to have this one device.

samkitty commented 4 weeks ago

Have you tried setting the USB dongle as the audio sink for Sunshine? With the dongle plugged directly into the PC, open the Sunshine folder within Duo folder then navigate to Tools > audio-info.exe and open it with cmd. Find the audio device you want then copy its ID and paste it into the Audio sink option in the audio section of the settings in Sunshine web portal. This works with the official Sunshine build, I'm not sure whether Duo changes anything about it so changing the sink might break the audio. SmartSelect_20241025-044520_Google

samkitty commented 4 weeks ago

Note that "Mute host PC speakers while streaming" in Moonlight settings should be disabled.

leshokunin commented 4 weeks ago

Do you think that would enable the microphone too though, or simply stream the audio from the usb dongle? I'll give it a go in a bit.

leshokunin commented 4 weeks ago

Screenshot 2024-10-24 at 11 38 07 PM

I don't see a audio-info.exe in the tools folder. I simply did a regular install. Any idea? Maybe I can get the exe somewhere, or find the info by hand?

leshokunin commented 4 weeks ago

Some more info: I am not able to add any audio device when I'm in the Duo user. I can totally do it when I'm the regular admin though. Screenshot 2024-10-24 at 11 50 17 PM Screenshot 2024-10-24 at 11 49 50 PM