A small Windows script to disable energy-saving sleep on sound cards, particularly annoying if you use a screen reader.
Note that this is an attempt, the result is not sure... in the worst case, simply nothing changes.
If you ran version 1.0 without success, try with version 2.0.
- Download .zip from here (1.0), or here (2.0)
- extract .bat file;
- from context menu, choose "Run as administrator";
- follow the procedure, writing "yes" (in lowercase and without quotes) to confirm various steps.
Tested on Windows 10, but written to be compatible with Windows 11 too.
It uses WMI/Powershell to get installed sound cards, their names and DeviceIDs. Then, it instructs Windows to avoid power saving for chosen device, adding in a specific registry location (DeviceId-dependent) three parameters (all set to 0): DeviceSelectiveSuspended, SelectiveSuspendEnabled, SelectiveSuspendSupported.