Using PsGet enter the following command.
Install-Module -ModuleUrl https://github.com/xenolightning/AudioSwitcher/releases/download/Module-1.0.0.1/AudioSwitcher.zip
Alternatively:
-
Download the latest zip package
-
Extract to %User%\Documents\WindowsPowershell\Modules\AudioSwitcher
-
Run
Install-Module AudioSwitcher
\---Modules
+---AudioSwitcher
| AudioSwitcher.AudioApi.CoreAudio.dll
| AudioSwitcher.AudioApi.dll
| AudioSwitcher.PowerShell.CoreAudio.dll
| AudioSwitcher.psd1
Currently three commands are available:
Returns a reference to an audiocontroller object. This audio controller can do everything!
Get-AudioController
Returns a list of devices in the system
Get-AudioDevices [-Type All|Playback|Capture]
Returns a specific device in the system
Get-AudioDevice [-Id (Guid)] [-Name (string - support wildcards)]