SoundVolumeView 能够显示系统中所有活动声音组件的常规信息和当前音量级别,并允许您立即静音和取消静音。

感谢之词

首先感谢 nirsoft 创建 SoundVolumeView.exe。如果没有它,Windows 将无法实现。
https://www.nirsoft.net/utils/sound_volume_view.html

入门

支持的平台

Windows [ X ]

MacOS [ ]

Linux [ ]

Android [ ]

iOS [ ]

用法

SoftwarePatch 应指示您拥有可执行文件 SoundVolumeView.exe 的文件夹。

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

获取输入和输出设备列表

List<Device> devices = await soundVolumeView.getDevices;

设置静音/取消静音

await soundVolumeView.unMute( devices[index] );

await soundVolumeView.mute( devices[index] );

您还可以收听捕获的声音。

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

GitHub

查看 Github