Из-за различных серверных необходимостей, может возникнуть проблема того, что микрофон не работает через RDP, и данную функцию нужно включать вручную. В данной инструкции мы наглядно расскажем о способах исправления данной проблемы.
Настройка служб перенаправления устройств
Запускаем gpedit.msc на локальной машине, с которой будем подключаться к удаленному терминалу.
Обратите внимание, что на локальном компьютере у вас должны быть права администратора.
Внимание: Если у вас вылезает ошибка о том, что не удается найти редактор групповой политики, то воспользуйтесь данной инструкцией
Идем по пути:
Политика «Локальный компьютер» -> Административные шаблоны -> Компоненты Windows -> Службы удаленных рабочих столов -> Узел сеансов удаленных рабочих столов-> Перенаправление устройств -> Включаем “Разрешить перенаправление воспроизведения звука” и “Разрешить перенаправление записи звука“.
Такую же политику необходимо применить и на удаленном сервере.
Внимание: Служба должна быть включена на локальном сервере и на сервере к которому вы подключаетесь
Включение служб Windows Audio
В службах на обеих машинах необходимо включить Windows Audio. Для этого перейдите в меню служб:
Пролистайте вниз и найдите службу Windows Audio:
Затем в меню данной службы выберите «Properties»:
В открывшимся меню в пункте «Startup type» в выпадающем списке выберите «Automatic», чтобы служба автоматически включалась при запуске системы:
После чего запустите службу:
Обновление параметров реестра.
После этого обновите параметры реестра.
Для этого нажмите Win +R и выполните команду REGEDIT:
Затем идем по пути:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp
Найдите файл fDisavleAudioCapture:
Два раза кликаем по файлу и у нас откроется меню в котором необходимо изменить пункт «Value data» на восемь нулей «00000000»:
Добавляем роль «Remote Desktop Session Host»
В меню пуск запускаем программу «Server Manage»:
В правом углу нажмите на меню «Manage» и в нем выберите «Adding roles and Features»:
Затем, в открывшемся меню нажмите «Next»:
В меню «Installation Type» выберите «Role-based or Fearure-based installation», как показано на скриншоте:
Далее поставьте галочку в меню «Remote Deskctop Services», после чего нажмите «Next»:
Следующим шагом поставьте галочку на «Remote Desktop Services»:
Следующим шагом просто нажимаем «Next»:
На шаге «Role Services» выберите «Remote Desktop Session Host» и в открывшимся окне выбираем «Add features»:
После чего просто нажимаем «Next».
На шаге «Confirmation» ставим галочку в поле «Restart the destination server…», затем нажимаем «Install»:
После чего начнется загрузка:
Сервер перезапустится, добавленная роль появится.
Настройка Remote Audio.
Далее откройте настройки подключения к удаленному рабочему столу на вашем локальном сервере:
Нажмите на кнопку “Show options”, затем перейдите в “Local resources” и выберите “Remote Audio”:
Затем в настройках выберите пункты «Play on this computer» и «Record from this computer»:
Кликаем «ОК».
Кликаем на иконку звука с помощью правой кнопки мыши и выбираем меню «Sound»:
В нем переходим во вкладку «Recording». И проверяем наличие «Удаленного аудио».
Поздравляем! Нас теперь будет слышно на удаленном терминале. Для того чтобы он работал корректно, в приложениях используйте микрофон по умолчанию.
191028
Санкт-Петербург
Литейный пр., д. 26, Лит. А
+7 (812) 403-06-99
700
300
ООО «ИТГЛОБАЛКОМ ЛАБС»
191028
Санкт-Петербург
Литейный пр., д. 26, Лит. А
+7 (812) 403-06-99
700
300
ООО «ИТГЛОБАЛКОМ ЛАБС»
В этой статье, мы покажем, как сконфигурировать перенаправление микрофона и аудио в RDP сессии.
По умолчанию при использовании удаленного рабочего стола Windows вы не можете использовать свой микрофон для записи звука в программах, запущенных на удаленном компьютере в терминальной (RDP/RDS) сессии. Если вам нужно, чтобы ваш микрофон мог передавать звук в приложение (Teams, Skype, и т.д.), установленное на удаленном хосте, вам нужно проверить настройки как на стороне клиента, так и сервера.
Если открыть вкладку Recording в настройках звука на удаленном рабочем столе, там скорее всего будет надпись:
No audio devices are installed
Включить поддержку проброса аудиоустройств на RDP/RDS сервере
Сначала нужно сконфигурировать удаленный компьютер Windows для корректной работы аудиоустройств в Remote Desktop сессии.
- Проверьте, что на RDP сервере и на клиенте установлена и запущена служба Windows Audio. Проверить что служба работает можно с помощью PowerShell:
get-service Audiosrv
Также проверьте, что запущена служба Remote Desktop Services UserMode Port Redirector (UmRdpService).
В Windows Server служба Audiosrv по умолчанию отключена.
- Откройте редактор локальных групповых политик (
gpedit.msc
), перейдите в раздел GPO Computer Configuration -> Administrative Templates -> Windows Components -> Remote Desktop Services -> Remote Desktop Session Host. Включите политики “Allow audio and video playback redirection” и “Allow audio recording redirection”.
Затем измените настройки параметра «Do not allow supported Plug and Play device redirection» на Disabled.Обновите настройки GPO командой:gpupdate /force
. Перезапустите службу TermService (Remote Desktop Services);
Настраиваем проброс локального микрофона в RDP сессию
Теперь нужно проверить настройки RDP клиента и включить проброс микрофона.
Если вы используется для подключения к RDP стандартный клиент mstsc.exe, проверьте его настройки. Нажмите на кнопку Show Options, перейдите на вкладку Local Resources, в секции Remote audio нажмите на кнопку Settings. В Remote audio recording измените настройки с Do not record на Record from this computer.
Если после этого в RDP сессии появился звук, но запись звука не работает, создайте в ветке реестра HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp параметр типа DWORD с именем fDisableAudioCapture и значением 0.
Теперь подключитесь к удаленному рабочему столу. Убедитесь, что в секции Sound панели управления на вкладке Recording указано, что устройство Remote Audio используется по умолчанию для записи звука.
При попытке открыть меню Sound Settings может появится уведомление:
Audio Your privacy settings blocked access to the microphone.
Это частая проблема на Windows Server 2019 RDS, когда звук есть, а устройство записи (микрофон) не работает. Это связано с тем, что настройках конфиденциальности профиля пользователя на сервере по умолчанию запрещают использование микрофона приложениями.
В этом случае откройте Settings -> Privacy -> Microphone и включите опцию Allow apps to access your microphone.
Если приложение опубликована на удаленном рабочем столе Windows Server RDS в виде RemoteApp, вам нужно отредактировать .rdp файл, использующийся для подключения. Добавьте в него следующие строки:
audiocapturemode:i:1 audiomode:i:0
Audiocapturemode = 1
— включает запись звука с локального микрофона и передачу его в удаленный сеансAudiomode = 0
– воспроизводить звуки из RDP сеанса на локальном компьютере
После этого проброс микрофона станет доступен как в полноценных RDP сессиях, так и в RDS RemoteApp. Не забудьте выбрать данный Remote Audio микрофон в качестве основного источника звука в ваших приложениях на RDP хосте.
Проброс звука с удаленного рабочего стола Windows
Запустите ваш RDP клиент (mstsc.exe), перейдите на вкладку Advanced -> Remote Audio -> Settings.
В секции Remote Audio Playback доступны три режима:
- Play on this computer
- Do not play
- Play on remote computer
Чтобы звук с RDS хоста воспроизводился на вашем локально компьютере, выберите первую опцию.
Подключитесь к RDP хосту. Откройте настройки звука (Панель управления -> Оборудование -> Звук).
Если на вкладке Playback указано No audio device installed, проверьте что на удаленном хосте запущена служба Windows Audio.
Откройте диспетчер устройств и проверьте, что в секции Audio inputs and outputs есть активное устройство Remote Audio. Устройство должно быть включено.
Если все, ОК по умолчанию в панели управление звука должно быть выбрано устройство Remote Audio.
Чтобы улучшит качество звука, включите параметра GPO Limit audio playback quality и установите Audio Quality = High.
При использовании виртуальных машин, RDSH Remote Apps, терминальных решений VMware Horizon или Citrix ICA для корректной работы звука в браузере на основе движка Chromium нужно в реестре отключить параметр Audio Sandbox.
- Для Google Chrome:
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome] "AudioSandboxEnabled"=dword:00000000
- Для Microsoft Edge:
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge] "AudioSandboxEnabled"=dword:00000000
In this article, we’ll show you how to configure microphone and audio redirection in a Remote Desktop (RDP) session.
By default, when using Windows Remote Desktop, you cannot use your local microphone to record sound in programs running on the remote computer in a terminal session (RDP/RDS). If you need to redirect your local microphone device to an app (Teams, Skype, etc.) installed on a Remote Desktop host, you need to check the settings on both the client and server-side.
If you open the Recording tab in the Sound settings on the Remote Desktop computer, you will most likely see the caption:
No audio devices are installed
Enable Audio Device Redirecting on RDP (RDS) Computer
First, you need to configure the remote Windows computer so that redirected audio devices work correctly in a Remote Desktop session.
- Check that the Windows Audio service is installed and running on both the RDP server and client. Also, check that the Remote Desktop Services UserMode Port Redirector (UmRdpService) service is running. You can use PowerShell to check that the service is running:
Get-Service Audiosrv, UmRdpService
Audiosrv service is disabled by default on Windows Server.
- Open the Local Group Policy Editor (
gpedit.msc
), go to the following GPO section Computer Configuration -> Administrative Templates -> Windows Components -> Remote Desktop Services -> Remote Desktop Session Host. Enable two GPO options ‘Allow audio and video playback redirection‘ and ‘Allow audio recording redirection‘. Then change the ‘Do not allow redirection of supported Plug and Play devices‘ policy value to Disabled. Update the GPO settings with the command:gpupdate /force
Restart the TermService (Remote Desktop Services) service;
At this point, you will need to check the settings on your RDP client and enable the microphone redirection feature.
If you are using the built-in mstsc.exe
client (Remote Desktop Connection) to connect to RDP, and check its settings. Click on the Show Options button, navigate to the Local Resources tab, and click on the Settings button in the Remote audio section. Change from “Do not record” to “Record from this computer” in Remote audio recording.
If after that sound appears in the RDP session, but the sound recording doesn’t work, create a DWORD parameter named fDisableAudioCapture with a value of 0 under the registry key HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp
Now connect to the Remote Desktop. Open the Sound item in the Control Panel, go to the Recording tab, and make sure that the Remote Audio device is selected by default for sound recording.
A notification may appear when you try to open the Sound settings menu:
Audio
Your privacy settings blocked access to the microphone.
This is a known issue with Windows Server 2019 RDS where the remote audio works fine, but the recording device (microphone) does not work. This is because the server’s default user profile privacy settings prevent applications from using the microphone.
In this case, go to Settings -> Privacy -> Microphone and enable the “Allow applications to access your microphone” option.
If the application is published as a RemoteApp on Windows Server RDS, you will need to edit the .rdp file used to connect. Add the following lines to this file:
audiocapturemode:i:1
audiomode:i:0
- Audiocapturemode = 1 – enables audio recording from a local microphone and redirects it to the remote session
- Audiomode = 0 – play sounds from RDP session on local computer
After that, the redirected microphone device will become available both in RDP sessions and in RemoteApps. Don’t forget to select this Remote Audio microphone as the main audio source in your applications on the RDP host.
Enable Audio Redirection over Remote Desktop on Windows
Run your RDP client (mstsc.exe). Navigate to the Advanced -> Remote Audio -> Settings tab.
There are three modes available in the Remote Audio Playback section:
- Play on this computer
- Do not play
- Play on remote computer
If you want to play the audio from the RDS host on your local computer, select the first option.
Connect to your Remote Desktop host. Open the sound settings (Control Panel -> Hardware -> Sound).
If the Playback tab shows No audio device installed, check that the Windows Audio service is running on the remote host.
Open Device Manager and check that there is an active Remote Audio device in the Audio inputs and outputs section.
The Remote Audio device should be selected by default in the Sound Control Panel if everything is configured correctly.
To improve audio quality, enable the GPO option Limit audio playback quality and set Audio Quality = High.
If you are using virtual machines, RDSH Remote Apps, VMware Horizon, or Citrix ICA terminal solutions, you will need to disable the Audio Sandbox parameter in the registry for sound to work correctly in Chromium-based browsers.
- For Google Chrome:
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome]"AudioSandboxEnabled"=dword:00000000
- For Microsoft Edge:
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge]"AudioSandboxEnabled"=dword:00000000
Содержание
-
Настройки на стороне клиента
-
Настройки на стороне сервера
-
Групповые политики, если микрофон все-таки не появился
-
Настройки на стороне клиента
1. Проверяем на локальном ПК настройки доступности микрофона. В поиске вводим Параметры конфиденциальности микрофона
2. Разрешаем доступ приложениям, если запрещено
3. Включаем воспроизведение звука и доступ к микрофону в приложении Remote Desktop Client — сохраняем конфигурацию подключения:
Настройки на стороне сервера
1. Открываем Диспетчер серверов — Добавить роли и компоненты
2. Выбираем пункт Установка ролей и компонентов
3. На данном этапе нужно выбрать сервер
4. Выбираем роль Remote Desktop Services
5. Переходим на вкладку Службы ролей и выбираем нужные согласно скриншота:
6. Переходим в раздел Подтверждение и нажимаем кнопку Установить
7. Дожидаемся установки и перезапускаем сервер
8. На сервере после перезагрузки нужно включить если отключена службу Windows Audio (в поиске набираем services.msc и запускаем утилиту, находим службу и включаем если не включено):
9. Проверяем в свойствах звука Открыть параметры звука. Должно появиться устройство ввода:
10. Также в свойствах микрофона может понадобиться включить приложениям доступ к микрофону (в поиск пишем Микрофон и выбираем Параметры конфиденциальности для микрофона)
После выполнения всех настроек, микрофон должен быть достпен как устройство ввода на сервере.
Групповые политики, если микрофон все-таки не появился
Если после этих настроек микрофон все еще не доступен, то следует внести правки в групповые политики.
1. Запускаем gpedit.msc
2. Разрешаем проброс аудио устройств по пути:
[Computer Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Device and Resource Redirection]
Allow audio and video playback redirection Allow audio recording redirection
А в реестре: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp]
"fDisableAudioCapture"=dword:00000000
Voice-over-IP (VoIP) applications may not play well with your Windows RDP server out of the box. More specifically, you may find that the audio and microphone from your local PC is not routed through to Discord, Skype, or Zopier. In most cases, getting audio or microphone input working on a VPS requires additional setup, which we’ll walk you through today.
Enable the remote audio and microphone devices over RDP
If your VoIP application isn’t detecting your microphone input or audio output, the first thing to check is your RDP client settings.
1. Open advanced RDP settings
In your Remote Desktop Connection window, press Show Options to access the advanced settings menu.
2. Switch to the ‘Local Resources’ tab and open remote audio settings
You’ll find the option underneath the Remote audio heading and the sub-text Configure remote audio settings. Press the Settings… button to continue.
3. Tick ‘Record from this computer’
While you’re there, ensure Play on this computer is ticked and press OK. At this point, check your VoIP application to see if the ‘Remote Output’ input and output devices are available. If they still aren’t working, continue to the next step.
4. Add roles and features to your server
In the Server Manager, click Add roles and features under the Configure this local server heading.
5. Enable Remote Desktop services
Move through the Roles and features wizard, selecting Role-based or feature based installation and then your server. On the find Server Roles screen, find Remote Desktop Services. Tick it and press Next three times.
6. Choose the Remote Desktop service roles to install
To ensure your microphone and audio function correctly, we recommend ticking Remote Desktop Connection Broker, Remote Desktop Gateway, Remote Desktop Session Host, and Remote Desktop Web Access.
Press Next until you’re able to press the Install button. After installation, restart your server.
7. Enable the Windows Audio service
If the sound icon on your taskbar still displays a red cross, right-click it. Windows Server will surface a notification asking if you’d like to enable the Windows Audio Service. Click Yes.
You should now be able to use your local audio and microphone seamlessly on your Remote Desktop Connection.
Looking for a fast Windows RDP for VoIP? Sign up to BitLaunch today.