Map local microphone to EC2 instance

1

Hi everyone!

I've deployed an EC2 Windows Server 2019 instance recently. Audio works and plays fine via RDP, but when I tried to setup the sound input (considering that input was going to happen via RDP from local device microphone) it occurred that no input devices can even be enabled in the instance. It says "No input devices found". "Troubleshooting" option doesn't help.

Please help me understand if it is even possible to enable it? If so, how can I do that?

Thank you in advance!

asked 3 years ago5826 views
7 Answers
0
Accepted Answer

Hi sabrielle,
My sincere apologies for the delayed response. After testing out the use case, in order to access your local Microphone via RDP on a Windows Server, I see you need to:

  1. Configure the instance as an RDS Session Host [1] and enable USB pass through for devices like a Microphone. Please note that you will need RDS CALs (licenses) if you configure the instance as an RDS session host (there is a free grace period of 119 days though). Additionally to connect using the RDS session the instance will need to be domain joined.
  2. "Allow audio & video playback redirection” & "Allow audio recording redirection" GPO needs to be enabled on the instance.
  3. "Remote Audio" settings must to be enabled over the RDP client of your local PC.

Points numbered 2 and 3 you have already done, as I see in the screenshots provided, so you can ignore them.

For point number 1 you need to:

  1. Establish an RDP connection and enable the Windows Audio service on the instance.
    • Search ‘Administrative Tools’ in the search bar
    • Scroll to ‘Services’ and double click
    • Scroll to ‘Windows Audio’
    • Right click and select ‘Properties’
    • Change the Startup type to ‘Automatic’
    • By ‘Service status’ ensure the status is ‘Running’ if not click the ‘Start’ button
    • Click Start > Run. Type ‘msconfig’ into the Run text box, and then click "OK."
    • Click "Services." (If the Hide All Microsoft Services box is checked, uncheck it)
    • Scroll down until you find "Windows Audio." Check the box for "Windows Audio" to set it to start when Windows does. Click "OK" to close the System Configuration Utility and save your changes.

  2. Then open 'Server Manager' on the Instance (Go to the search bar and type Server Manager).

  3. Add the 'Remote Desktop Services' role > Remote desktop Session Host.
    • Click ‘Add Roles and Features’ > Next
    • Select ‘Role-based or Feature-based installation’.
    • Select the computer as the destination server. (Select a server from the pool and choose your server) > Next
    • On the Select server roles page, select Remote Desktop Services > Next > Next (skip the features page) > Next
    • On the Select role services page, select the Remote Desktop Session Host > Add features > Next
    • Continue the installation. Select default values for the remaining settings (if any).

  4. Once done, Restart the instance.

  5. Reconnect to the instance ensuring that the audio service and the above RDP client setting is enabled using domain credentials.

  6. Now you should see your Input device on the instance as: 'Remote Audio'. Navigate to it by searching ‘Sound’ in the search bar and clicking enter. Then look under Input.

[As a side note; you might need to adjust your microphone permissions [3], as in the microphone permissions to "all other apps" under privacy in sound settings. Go to Start > Settings > Privacy > Microphone (scroll down on the left to navigate to it) > Allow apps to access your microphone > On
This needs to be done on both the host and on the client.]

Please note:
- After reconnecting to the instance, you will also receive a warning about RDP licensing, as Remote Desktop Session Host requires CAL licenses set up.
- If this is a Test environment you may utilize a free grace period of RDP session host license valid for the next 119 days.
- You need to purchase RDP CALs from MS [2] if you want the same as a permanent deployment for your production environment after 119 days grace period is expired.

I hope the above information helps you to address your query. However, if my understanding regarding your concern is incorrect or if you have any additional queries, please feel free to reach back and we will be happy to assist you further.
Have a great day ahead!

References (please keep in mind these are not AWS official links so you use them at your own risk):


[1] Microsoft - Remote Desktop Services Roles - https://docs.microsoft.com/en-us/windows-server/remote/remote-desktop-services/rds-roles
[2] License your RDS deployment with client access licenses (CALs) - https://docs.microsoft.com/en-us/windows-server/remote/remote-desktop-services/rds-client-access-license
[3] Turn on app permissions for your microphone - https://support.microsoft.com/en-us/windows/turn-on-app-permissions-for-your-microphone-in-windows-10-94991183-f69d-b4cf-4679-c98ca45f577a

amz99
answered 3 years ago
0

Hi sabrielle,
This appears to be something you can configure within Remote Desktop Connection. Before you establish a connection to your EC2 instance, in the Remote Desktop Connection window, click Show Options then navigate to the Local Resources tab. Click the settings button for Remote Audio and configure as you need (such as "Remote Audio Recording" -- record from this computer).

You might also need to follow these steps:
• Right-click Start and click Run.
• Type gpedit.msc, and click OK.
• Expand Local Computer Policy.
• Expand Computer Configuration.
• Expand Administrative Templates.
• Expand Windows Components.
• Expand Remote Desktop Services.
• Expand Remote Desktop Session Host.
• In Device and Resource redirection, enable Allow Audio Recording Redirection.
• Restart the instance.
A brief description of the policy – “This policy setting allows you to specify whether users can record audio to the remote computer in a Remote Desktop Services session.
Users can specify whether to record audio to the remote computer by configuring the remote audio settings on the Local Resources tab in Remote Desktop Connection (RDC). Users can record audio by using an audio input device on the local computer, such as a built-in microphone.”
I hope this helps!

amz99
answered 3 years ago
0

Hi!
Thanks a lot for your fast reply! Really appreciate your help.
I've set all the checkboxes on my OS X RDP Client https://ibb.co/6sYXYgM. When it didn't work I've also tried with one on Windows https://ibb.co/PgQBQc8. Then I've changed the thing that you'd listed, so now that's enabled https://ibb.co/mXV3FB4.
The situation still didn't change a lot, I continue to get the message that no input devices were found https://ibb.co/gmHBSsV.

Is there something else that needs to be done? Maybe I've missed something.
Thank you.

answered 3 years ago
0

Hi!
Thanks a lot for your fast reply! Really appreciate your help.
I've set all the checkboxes on my OS X RDP Client https://ibb.co/6sYXYgM. When it didn't work I've also tried with one on Windows https://ibb.co/PgQBQc8. Then I've changed the thing that you'd listed, so now that's enabled https://ibb.co/mXV3FB4.
The situation still didn't change a lot, I continue to get the message that no input devices were found https://ibb.co/gmHBSsV.

Is there something else that needs to be done? Maybe I've missed something.
Thank you.

answered 3 years ago
0

It resolved my problem and now the microphone works perfectly.
I'm really grateful for your assistance! Thank you so much!

answered 3 years ago
0

hi,

hope you are doing great. Can you please guide me by pictures. as I am new to AWS and unable to found these options. or anyone of you can please help me remotely.

moreover, let me know, is this post for AWS server or for windows remote desktop? I want to configure the audio device (mic) at the Amazon web server. need your support

Thanks

answered 3 years ago
0

hi,

hope you are doing great. Can you please guide me by pictures. as I am new to AWS and unable to found these options. or anyone of you can please help me remotely.

moreover, let me know, is this post for AWS server or for windows remote desktop? I want to configure the audio device (mic) at the Amazon web server. need your support

Thanks

answered 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions