# mac-volume: A CLI to control device volume

DevFeed: [mac-volume: A CLI to control device volume](<https://devfeed.tech/articles/mac-volume-a-cli-to-control-device-volume-39470.md>)

Original publisher: [Read original article](<https://akrabat.com/mac-volume-a-cli-to-control-device-volume/>)

Author: Rob

Published: 2025-10-07T10:00:00Z

Content type: article

Language: en

Sources: [Rob Allen](<https://devfeed.tech/sources/rob-allen.md>)

Topics: [Command-line interface](<https://devfeed.tech/topics/cli.md>), [Swift](<https://devfeed.tech/topics/swift.md>), [C](<https://devfeed.tech/topics/c.md>), [floating-point](<https://devfeed.tech/topics/floating-point.md>), [function](<https://devfeed.tech/topics/function.md>), [GitHub](<https://devfeed.tech/topics/github.md>)

Tags: [audio](<https://devfeed.tech/tags/audio.md>), [c](<https://devfeed.tech/tags/c.md>), [cli](<https://devfeed.tech/tags/cli.md>), [floating-point](<https://devfeed.tech/tags/floating-point.md>), [github](<https://devfeed.tech/tags/github.md>), [mac](<https://devfeed.tech/tags/mac.md>), [swift](<https://devfeed.tech/tags/swift.md>), [volume](<https://devfeed.tech/tags/volume.md>)

## AI overview

The article explains why Mac volume controls can be inconvenient when calls use a separate audio device. It describes a Swift command-line utility called mac-volume that uses Core Audio to control volume by device name, including listing devices and incrementing or decrementing volume, with integration through StreamDeck and Keyboard Maestro.

## Source excerpt

I've set my Mac up such that video calls such as Zoom use the microphone and earphones attached to my Behringer UMC204HD, which all other audio plays through the my normal speakers which are the default. One issue I have with this is that it's quite hard to change the volume when a call as the volume buttons on the Mac are connected to the default output. This finally annoyed me enough that I looked... continue reading.