Get or set volume and mute
hs_audio_volumeGet or set audio volume and mute state on the macOS default device. Use without arguments to query current values.
Instructions
Read or change the volume and mute state of the default audio device. Called with no arguments it only reports the current state, so it is safe to use as a query.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| muted | No | Mute state. Omit to leave it unchanged. | |
| volume | No | Volume percentage. Omit to leave it unchanged. | |
| direction | No | output |