Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # this will be communication microphone - Microphone (2- Beyond)
- $AudioDevice_D = "{0.0.0.00000000}.{9331b5d7-a071-46de-9b09-3e44f28e9fea}"
- # set default communication recording device
- $DefaultRecordingComm = Get-AudioDevice -RecordingCommunication
- If ($DefaultRecordingComm.ID -ne $AudioDevice_D) {Set-AudioDevice -ID $AudioDevice_D -CommunicationOnly | Out-Null}
- Else {Set-AudioDevice -ID $AudioDevice_D | Out-Null}
- # set the volume for the default communication recording device to 65
- Set-AudioDevice -RecordingCommunicationVolume 65
- # Play sound (unchanged)
- $Sound = new-Object System.Media.SoundPlayer
- $Sound.SoundLocation = "c:\WINDOWS\Media\Windows Background.wav"
- $Sound.Play()
- Start-Sleep -s 3
Advertisement
Add Comment
Please, Sign In to add comment