View / change sound volume on Windows from command line or GUI

(追記) (追記ここまで)
Main Page
Blog
Search
FAQ
TOP 10
Pad Files
Contact
About...
Donate
All Utilities
Password Tools
System Tools
Browser Tools
Programmer Tools
Network Tools
Outlook/Office
64-bit Download
Panel
Forensics
Pre-Release Tools
Articles

(追記) (追記ここまで)
SoundVolumeView v2.47 - View / change sound volume on Windows 11 / 10 / 7 / 8 / 2008 from command-line or GUI
Copyright (c) 2013 - 2025 Nir Sofer

Description

SoundVolumeView is a simple tool for Windows Vista/7/8/2008/10/11 that displays general information and current volume level for all active sound components on your system, and allows you to mute and unmute them instantly.
SoundVolumeView also allows you to save a sound profile into a file, containing the current volume level and the mute/unmute state of all sound components, as well as the default sound devices, and then later, load the same file to restore exactly the same volume levels and settings.
There is also extensive command-line support, which allows you to save/load profiles, change current volume of every sound component, and mute/unmute every sound component, without displaying any user interface.

System Requirements

This utility works on Windows Vista, Windows 7, Windows 8, Windows 2008, Windows 10, and Windows 11. Both 32-bit and 64-bit systems are supported.
Windows XP and older systems are not supported.

Versions History

Start Using SoundVolumeView

SoundVolumeView doesn't require any installation process or additional dll files. In order to start using it, simply run the executable file - SoundVolumeView.exe

After running SoundVolumeView, the main window is displays all sound items found in your systems. There are 3 types of items: devices, subunits, and application volume.
For every item, the current volume level is displayed in percent unit. For devices and subunits, the volume level is also displayed in Decibel. For subunits, the volume level is displayed for every channel separately.

Increase/Decrease/Mute Volume

In the main window of SoundVolumeView, you can select one or more items, and then mute, unmute, increase, or decrease the volume of selected items, using accelerator keys:

The Increase/Decrease options can also be used for specific channel. In order to do that, choose the desired channel from Options -> Selected Channel.

Sound Profiles

SoundVolumeView allows you to save all your current sound settings into a sound profile filename, and then load it later when you want to restore these settings.
The sound profile file stores the following information:

You can save and load sound profiles by using the 'Save Sound Profile' and 'Load Sound Profile' options under the File menu, or by using the /SaveProfile and /LoadProfile command-line options. There is also a recent menu located under the File menu, which allows you to easily load the last 10 sound profiles you used, as well as you can also load the recent 5 sound profiles from the tray menu (If the tray icon is turned on)

Be aware that sound profiles are bound to specific computer and its devices. You cannot save a sound profile in one computer and then load it into another computer.

Creating Desktop Shortcuts

Starting from version 2.00, you can easily create shortcuts on desktop that will execute one of the following actions: Mute,Unmute,Mute/Unmute Switch,Disable,Enable,Disable/Enable Switch, Set Default Device (Console, Multimedia, Communications), Increase Volume, Decrease Volume.
In order to create the desktop shortcut, simply select the desired item, and then go to File -> Create Desktop Shortcut and choose the desired action to execute when the shortcut is activated. You can also use the 'Create Desktop Shortcut' submenu in the right-click context menu.
The following actions can also be used with application items: Mute,Unmute,Mute/Unmute Switch,Increase Volume, Decrease Volume. For example, you can create 'Mute/Unmute Switch' shortcut for Chrome Web browser that will mute the sound of Chrome if it's turned on and unmute if it's turned off.
After creating the shortcut, you can right-click on it, choose 'Properties' and then choose the desired key combination to activate the shortcut.

Get sound level information from command line

If you want to get the current sound volume or mute status from command-line, there are 2 different methods you can use:
  1. Use the get commands of SoundVolumeView - /GetPercent /GetPercentChannel, /GetDecibel, /GetDecibelChannel, /GetMute : These commands return the desired sound level information inside the Exit Status of the program. Because the Exit Status is an integer value, the percent value is multiplied by 10 and the Decibel value is multiplied by 1000. You can get more information about these commands in the 'Command-Line Options' section.
    You can get the desired value inside a batch file by using the %errorlevel% variable, for example.
    SoundVolumeView.exe /GetPercent Speakers
    echo %errorlevel%

    It's recommended to use the Get commands with the console version of this tool (SoundVolumeCommandLine), because this technique doesn't work well with GUI programs.

  2. Use the combination of GetNir tool and SoundVolumeView to send the desired value to stdout.
    For example, the following command sends to stdout the current sound volume (in percent) of a device that its name is 'Speakers':
    SoundVolumeView.exe /stab "" | GetNir "Volume Percent" "Name=Speakers && Type=Device"

    The following command sends to stdout the current mute status (From the 'Muted' column) of the device that its friendly name is Realtek High Definition Audio\Device\Speakers\Render:
    SoundVolumeView.exe /stab "" | GetNir "Muted" "Command-LineFriendlyID='Realtek High Definition Audio\Device\Speakers\Render'"

Command-Line Options

You can use the command-line options below to change the volume level and mute/unmute status of every sound component on your system.
In the [Name] parameter , you can specify one of the following fields:

/GetPercent [Name] Returns the current volume level in percent, multiplied by 10, for using in scripts and batch files.
It's recommended to use this command with the console version of this tool (SoundVolumeCommandLine)

Example:
SoundVolumeView.exe /GetPercent Speakers
echo %errorlevel%
/GetMute [Name] Returns the current Mute status. (1 = Muted, 0 = Not Muted)
It's recommended to use this command with the console version of this tool (SoundVolumeCommandLine) /GetPercentChannel [Name] [Channel Number] Returns the current volume level of specific channel in percent, multiplied by 10. In the [Channel Number] parameter you should specify 0 for the first channel, 1 for the second channel, and so on...
It's recommended to use this command with the console version of this tool (SoundVolumeCommandLine) /GetDecibel [Name] Returns the current volume level in decibel, multiplied by 1000.
It's recommended to use this command with the console version of this tool (SoundVolumeCommandLine)

Example:
SoundVolumeView.exe /GetDecibel Speakers
echo %errorlevel%
/GetDecibelChannel [Name] [Channel Number] Returns the current volume level of specific channel in decibel, multiplied by 1000. In the [Channel Number] parameter you should specify 0 for the first channel, 1 for the second channel, and so on...
It's recommended to use this command with the console version of this tool (SoundVolumeCommandLine) /GetColumnValue [Name] [Column Name] Sends the value of the specified column to stdout. The [Column Name] is the exact name of the column displayed in the GUI. Optionally, you can omit the space characters from the column name (e.g: "DeviceState" instead of "Device State")

Example:
The following command shows the state of the device that its Command-Line Friendly ID is 'Realtek High Definition Audio\Device\Speakers\Render':
SoundVolumeView.exe /GetColumnValue "Realtek High Definition Audio\Device\Speakers\Render" "Device State" | more

Be aware that the '| more' section is needed for viewing the output of GUI application inside a command-prompt window. It's not needed if you use the console version of this tool (SoundVolumeCommandLine). /SetVolume [Name] [Volume] Set the sound volume of the specified item. The [Volume] is a number between 0 and 100. /SetVolumeDecibel [Name] [Volume] Set the sound volume of the specified item. The [Volume] is in decibels. /ChangeVolumeDecibel [Name] [Volume] Increase/decrease the sound volume of the specified item. The [Volume] is in decibels. /SetVolumeChannels [Name] [Volume Channel 1] [Volume Channel 2] ... Set the sound volume of every channel separately. The [Volume Channel X] is a number between 0 and 100, or '*' if you don't want to change the volume of this channel.
You can use this command to set the audio balance of device or application. If you have left and right channels, 0 is usually the left channel and 1 is the right channel. /SetVolumeChannelsDecibel [Name] [Volume Channel 1] [Volume Channel 2] ... Only for subunit and device items. Set the sound volume of every channel separately. The [Volume Channel X] is the volume in Decibels , or '*' if you don't want to change the volume of this channel. /ChangeVolume [Name] [Volume] Changes the volume of the specified item. The [Volume] is a number between -100 and 100, which specifies the percent of volume level to increase (positive number) or decrease (negative number). /ChangeVolumeChannel [Name] [Channel Number] [Volume] Changes the channel volume of the specified item. In the [Channel Number] parameter you should specify 0 for the first channel, 1 for the second channel, and so on...
The [Volume] is a number between -100 and 100, which specifies the percent of volume level to increase (positive number) or decrease (negative number).
You can use this command to set the audio balance of device or application. If you have left and right channels, 0 is usually the left channel and 1 is the right channel. /Mute [Name] Mutes the volume of the specified item. /Unmute [Name] Unmutes the volume of the specified item. /Disable [Name] Disables the specified device /Enable [Name] Enables the specified device /DisableEnable [Name] Switches the specified device between active and disabled state. /Switch [Name] Switches the volume of the specified item between mute and unmute state. /SetDefault [Name] [Default Type] Sets the default device.
The [Default Type] parameter specifies one of the following values:
0 - Console
1 - Multimedia
2 - Communications
all - Set all default types (Console, Multimedia, and Communications) /SwitchDefault [Name1] [Name2] [Default Type] Switch between 2 default devices.
The [Default Type] parameter specifies one of the following values:
0 - Console
1 - Multimedia
2 - Communications
all - Set all default types (Console, Multimedia, and Communications) /SetAppDefault [Name] [Default Type] [Process Name/ID] Allows you to set the default render/capture device for specfic application. This option is available only on Windows 10, starting from Windows 10 April 2018 Update.
The [Name] parameter specifies the device name. If you want to set the application back to the system default device, you should specify DefaultCaptureDevice or DefaultRenderDevice as the device name.
The [Default Type] parameter specifies one of the following values:
0 - Console
1 - Multimedia
2 - Communications
all - Set all default types (Console, Multimedia, and Communications)
In the process paramater you can specify the process name (e.g: firefox.exe) or process ID (e.g: 1524)

Examples:
SoundVolumeView.exe /SetAppDefault "High Definition Audio Device\Device\Speakers\Render" 1 "chrome.exe"
SoundVolumeView.exe /SetAppDefault DefaultRenderDevice 0 firefox.exe
SoundVolumeView.exe /SetAppDefault "High Definition Audio Device\Device\Speakers\Render" all vlc.exe /SetDefaultFormat [Device Name] [Bits Per Sample] [Sample Rate - Hertz] {Number Of Channels} Sets the default format of the device. For example: The following command sets the default format of the device to '24 bit, 192000 Hz(Studio Quality)':
SoundVolumeView.exe /SetDefaultFormat "Realtek High Definition Audio\Device\Speakers\Render" 24 192000

Another example: The following command sets the default format of the device to '4 channel,24 bit, 48000 Hz(Studio Quality)':
SoundVolumeView.exe /SetDefaultFormat "Speakers" 24 48000 4 /SaveDeviceFormat [Device Name] [Filename] Saves the data of the current default format of the specified device into the specified filename. Later, You can load back the same format with the /LoadDeviceFormat command.
You should use this command (together with /LoadDeviceFormat) if you have formats that cannot be set with the /SetDefaultFormat command.

Example:
SoundVolumeView.exe /SaveDeviceFormat "Realtek High Definition Audio\Device\Speakers\Render" "c:\temp\Speakers1.dat" /LoadDeviceFormat [Device Name] [Filename] Sets the default format of the device according to the format data you previously saved with the /SaveDeviceFormat command. You can use this command to set the default format if you cannot do it with the /SetDefaultFormat command.

Example:
SoundVolumeView.exe /LoadDeviceFormat "Realtek High Definition Audio\Device\Speakers\Render" "c:\temp\Speakers1.dat" /SetSpeakersConfig [Device Name] [Channel Mask] [Optional Speakers] [Full Range Speakers] Sets the desired speakers configuration (Stereo, Quadraphonic, 5.1 Surround, 7.1 Surround, and so on..).
The [Channel Mask], [Optional Speakers] and [Full Range Speakers] parameters are interger values that represent the speakers configuration. You can use Hexadecimal numbers in these parameters by specifying '0x' prefix.

You don't have to deeply understand the meaning of these values. Simply set the desired speakers configuration from the user interface of Windows, and then copy the 3 values from the 'Speakers Config' column.

Here's some examples:
Set the speakers configuration to Stereo (With all speakers selected) :
SoundVolumeView.exe /SetSpeakersConfig "Realtek High Definition Audio\Device\Speakers\Render" 0x3 0x3 0x3


Set the speakers configuration to Quadraphonic (With all speakers selected):
SoundVolumeView.exe /SetSpeakersConfig "Realtek High Definition Audio\Device\Speakers\Render" 0x33 0x33 0x33


Set the speakers configuration to 5.1 Surround (With all speakers selected):
SoundVolumeView.exe /SetSpeakersConfig "Realtek High Definition Audio\Device\Speakers\Render" 0x3f 0x3f 0x3f /SetSpatial [Device Name] [Spatial Sound Format] Sets the 'Spatial sound format' of the specified sound device on Windows 10.
In the [Spatial Sound Format] parameter you can specify the full name of the spatial sound format (e.g: Windows Sonic For Headphones), partial name (e.g: Windows Sonic), or the GUID of the spatial sound format (e.g: {b53d940c-b846-4831-9f76-d102b9b725a0} ).

If you want to disable the spatial sound format, simply use empty string ("")

Examples:
SoundVolumeView.exe /SetSpatial "High Definition Audio Device\Device\Speakers\Render" "{b53d940c-b846-4831-9f76-d102b9b725a0}"
SoundVolumeView.exe /SetSpatial "High Definition Audio Device\Device\Speakers\Render" "Windows Sonic For Headphones"
SoundVolumeView.exe /SetSpatial "High Definition Audio Device\Device\Speakers\Render" "Windows Sonic"
SoundVolumeView.exe /SetSpatial "High Definition Audio Device\Device\Speakers\Render" "" /SetBooleanFxProperty [Device Name] [Property ID] [0 | 1 | 2] Allows you to turn on/off different options of a device, like 'Loudness Equalization', 'Headphone Virtualization', 'Voice Cancellation', and others.

You can use one of the following values to turn on/off the specified property:
0 - Turn Off
1 - Turn On
2 - Switch between on/off state.

Here's a list of some property IDs that you can use with this command:
Loudness Equalization - "{E0A941A0-88A2-4df5-8D6B-DD20BB06E8FB},4"
Headphone Virtualization - "{e0a941a0-88a2-4df5-8d6b-dd20bb06e8fb},3"
Voice Cancellation - "{4b361010-def7-43a1-a5dc-071d955b62f7},3"
Pitch Shift - "{9cc064e5-7fdc-4f03-9994-f24d4908aa26},1"
Equalizer - "{4b361010-def7-43a1-a5dc-071d955b62f7},5"
Environment - "{4b361010-def7-43a1-a5dc-071d955b62f7},1"
Virtual Surround - "{e0a941a0-88a2-4df5-8d6b-dd20bb06e8fb},2"

Examples:
SoundVolumeView.exe /SetBooleanFxProperty "Realtek High Definition Audio\Device\Speakers\Render" "{E0A941A0-88A2-4df5-8D6B-DD20BB06E8FB},4" 1
SoundVolumeView.exe /SetBooleanFxProperty "Realtek High Definition Audio\Device\Speakers\Render" "{e0a941a0-88a2-4df5-8d6b-dd20bb06e8fb},3" 2 /SetListenToThisDevice [Name] [0 | 1] Sets the 'Listen to this device' value (For recording devices only).
0 = No, 1 = Yes.
Example: SoundVolumeView.exe /SetListenToThisDevice "Microphone" 1 /SetPlaybackThroughDevice [Recording Device] [Playback Device] Sets the 'Playback through this device' value.
Example: SoundVolumeView.exe /SetPlaybackThroughDevice "Microphone" "{0.0.0.00000000}.{7747b192-73b2-47d3-a2c0-168e94af7f9e}" /SetAllowExclusive [Name] [0 | 1] Sets the 'Allow applications to take exclusive control of this device' option for the specified device.
0 = No, 1 = Yes.
Example: SoundVolumeView.exe /SetAllowExclusive "Realtek High Definition Audio\Device\Speakers\Render" 1 /SetExclusivePriority [Name] [0 | 1] Sets the 'Give exclusive mode applications priority' option for the specified device.
0 = No, 1 = Yes.
Example: SoundVolumeView.exe /SetExclusivePriority "Realtek High Definition Audio\Device\Speakers\Render" 1 /RunAsAdmin Runs SoundVolumeView as administrator. /WaitForItem [Number Of Seconds] Instructs SoundVolumeView to wait the specified number of seconds until the sound item appears. You can use this feature to change the application volume for applications that are not running at this moment. For example, if you want to mute the sound of Chrome Web browser and it's not running at this moment:
SoundVolumeView.exe /Mute chrome.exe /WaitForItem 5000

In the above example, SoundVolumeView will wait up to 5000 seconds (The process will remain in memory). If during the 5000 seconds period you run the Chrome Web browser, SoundVolumeView will detect it, mute the sound of Chrome application and then the process of SoundVolumeView will be terminated. You can specify 0 in [Number Of Seconds] if you want to wait infinitely. /SaveProfile [Filename] Saves the current sound settings into the specified profile filename. /LoadProfile [Filename] Restores the sound settings from the specified profile filename.

Here's some examples:

You can also use the following command-line parameters to export the list of all sound items info a file: /stext <Filename> Save the list of all sound items into a regular text file. /stab <Filename> Save the list of all sound items into a tab-delimited text file. /scomma <Filename> Save the list of all sound items into a comma-delimited text file (csv). /stabular <Filename> Save the list of all sound items into a tabular text file. /shtml <Filename> Save the list of all sound items into HTML file (Horizontal). /sverhtml <Filename> Save the list of all sound items into HTML file (Vertical). /sxml <Filename> Save the list of all sound items into XML file. /sjson <Filename> Save the list of all sound items into JSON file. /Columns <Comma Delimited Columns List> Allows you to set the columns to display or the columns to export from command-line. You have to specify the column names, delimited by comma, for example:
SoundVolumeView.exe /scomma c:\temp\sound-items.csv /Columns "Name,Command-Line Friendly ID,Volume Percent"

You can also specify the column names without space characters, for example:
SoundVolumeView.exe /Columns "Name,Command-LineFriendlyID,VolumePercent" /SaveFileEncoding [0 - 3] Set the character encoding for the other save commands. 0 = Default, 1 = ANSI, 2 = UTF-16, 3 = UTF-8.
For example:
SoundVolumeView.exe /SaveFileEncoding 2 /scomma "c:\temp\sound_items.csv"

Read more about using SoundVolumeView

Translating SoundVolumeView to other languages

In order to translate SoundVolumeView to other language, follow the instructions below:
  1. Run SoundVolumeView with /savelangfile parameter:
    SoundVolumeView.exe /savelangfile
    A file named SoundVolumeView_lng.ini will be created in the folder of SoundVolumeView utility.
  2. Open the created language file in Notepad or in any other text editor.
  3. Translate all string entries to the desired language. Optionally, you can also add your name and/or a link to your Web site. (TranslatorName and TranslatorURL values) If you add this information, it'll be used in the 'About' window.
  4. After you finish the translation, Run SoundVolumeView, and all translated strings will be loaded from the language file.
    If you want to run SoundVolumeView without the translation, simply rename the language file, or move it to another folder.

License

This utility is released as freeware. You are allowed to freely distribute this utility via floppy disk, CD-ROM, Internet, or in any other way, as long as you don't charge anything for this and you don't sell it or distribute it as a part of commercial product. If you distribute this utility, you must include all files in the distribution package, without any modification !

Disclaimer

The software is provided "AS IS" without any warranty, either expressed or implied, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose. The author will not be liable for any special, incidental, consequential or indirect damages due to loss of data or any other reason.

Feedback

If you have any problem, suggestion, comment, or you found a bug in my utility, you can send a message to nirsofer@yahoo.com

Download SoundVolumeView (32-bit) Download SoundVolumeView (64-bit) Check Download MD5/SHA1/SHA256 Hashes

SoundVolumeView is also available in other languages. In order to change the language of SoundVolumeView, download the appropriate language zip file, extract the 'soundvolumeview_lng.ini', and put it in the same folder that you Installed SoundVolumeView utility.

LanguageTranslated ByDateVersion
Arabic «Mohamed.Bajdouai» 30/08/2018SoundVolumeView v1.82
Brazilian Portuguese igorruckert10/02/20171.56
Dutch Jan Verheijen11/03/20252.47
Finnish S. J. Liimatainen01/05/20202.06
French Largo28/06/20232.43
German «Latino» auf WinTotal.de 10/03/20252.47
Greek geogeo.gr 23/02/20181.72
Hungarian Timinoun03/08/20242.46
Italian Anonymous e Roberto B.11/03/20252.47
Japanese coolvitto 11/03/20252.47
Korean 비너스걸 (VenusGirl) 31/01/20232.36
Persian ZendegiyeSabz 01/04/20252.47
Polish Hightower13/03/20252.47
Portugal Portuguese Nuno Ferreira18/01/20222.27
Romanian Jaff (Oprea Nicolae) 06/02/20161.35
Russian Dmitry Yerokhin11/03/20252.47
Simplified Chinese Apprcn 16/09/20131.00
Simplified Chinese DickMoore 08/07/20232.43
Slovak František Fico02/04/20252.47
Spanish Ricardo A. Rivas 28/02/20212.22
Swedish I.K.l17/01/20181.72
Traditional Chinese Danfong Hsieh 11/03/20252.47
Turkish HARUN ARI 01/02/20242.46

AltStyle によって変換されたページ (->オリジナル) /