sound_volume_view 0.0.7 copy "sound_volume_view: ^0.0.7" to clipboard
sound_volume_view: ^0.0.7 copied to clipboard

SoundVolumeView that displays general information and the current volume level for all active sound components in your system, and allows you to instantly mute and unmute them.

SoundVolumeView that displays general information and the current volume level for all active sound components in your system, and allows you to instantly mute and unmute them.

Expressions of gratitude #

First of all thanks to nirsoft for creating SoundVolumeView.exe. Without this it would not be possible for Windows. https://www.nirsoft.net/utils/sound_volume_view.html

Getting started #

Supported platforms:

Windows [ ✅ ]

MacOS [ ❌ ]

Linux [ ❌ ]

Android [ ❌ ]

iOS [ ❌ ]

Usage #

SoftwarePath should indicate the folder where you have the executable SoundVolumeView.exe..

SoundVolumeView soundVolumeView = SoundVolumeView(softwarePath: 'C:\\Program Files\\Sound\\');

First to get the devices you must call: soundVolumeView.getDevices;

List<Device> devices = await soundVolumeView.getDevices;

Once you have obtained the devices you will also have a separate list for each type. #

  /// [captureDevices] You only get the capture devices
  soundVolumeView.captureDevices;

  /// [outputDevices] You only get the output devices
  soundVolumeView.outputDevices;

  /// [applicationDevices] You only get the application devices
  soundVolumeView.applicationDevices;

Set UnMute / Mute

await soundVolumeView.unMute( devices[index] );

await soundVolumeView.mute( devices[index] );

Set Volume: Range [0-100] int

await soundVolumeView.setVolume(soundVolumeView.captureDevices[index], 100);

You can also listen to the capture sound.

await soundVolumeView.setListenToThisDevice(devices[index], listen: true);

You can also set the sound output to the recording line

  Device outputDevice = soundVolumeView.outputDevices.firstWhere(( device ) => device.itemID == value);
  await soundVolumeView.setPlaybackThroughDevice(soundVolumeView.captureDevices[index], outputDevice);

DefaultType: all - Set all default types (Console, Multimedia, and Communications)

enum DefaultType {
  console,
  multimedia,
  communications,
  all
}

You can assign output devices to applications via the pid process

Device outputDeviceFound = soundVolumeView.outputDevices.firstWhere((element) => element.itemID == itemId);
await soundVolumeView.setAppDefault(soundVolumeView.applicationDevices[index], device, defaultType: DefaultType.all);

Indicates which is the default output device, communications, etc...

await soundVolumeView.setDefault(soundVolumeView.outputDevices[index], defaultType: DefaultType.all);
5
likes
120
pub points
0%
popularity

Publisher

unverified uploader

SoundVolumeView that displays general information and the current volume level for all active sound components in your system, and allows you to instantly mute and unmute them.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, path, process_run

More

Packages that depend on sound_volume_view