0

I have users in my lab that run sound via their speakers. I would like to disable the ability to do so on all machines in the lab to prevent this, whilst still allowing them to use their headphones.

I have read articles about how to disable all audio (not a totally desirable outcome, but better than the alternative) by deleting the IOAudioFamily.kext file, however, this doesn't seem to work on High Sierra.

Has anyone aware of a solution to this issue?

Thank you for your help.

  • sudo osascript -e "set Volume 0" – Ruskes Nov 6 '18 at 0:23
1

I found this for you...

How to set the volume level to the secret minimum

So here's the deal, normally when you set the volume to 0 the speakers are automatically muted. On the keyboard you can hit the mute button while the volume is at 0 and it will unmute to the secret lowest volume setting.

Likewise, you can instruct AppleScript to not automatically mute the volume:

osascript -e "set volume without output muted output volume 1 --100%"

How to set the volume without unmuting

Sometimes you want the volume to stay muted, but to come on at a particular level when you unmute.

This is how you prevent the audio from unmuting when you adjust the volume level:

osascript -e "set volume with output muted output volume 42 --100%"
  • If it works for you check the answer so others can find it. – Ruskes Nov 6 '18 at 5:29
  • Will do, just want to test the outcomes first. – user2337871 Nov 6 '18 at 5:29
0

There are a handful of software-based solutions, but most of them do not support multi-device control, which is what you're looking for. So, whether you disable computer audio completely, or limit the volume on all devices, it sounds like it's not entirely what you're looking for.

I would like to disable the ability to do so on all machines in the lab to prevent this, whilst still allowing them to use their headphones.

One simple approach to this would be to purchase a short headphone extension cable for each computer. With this extension cable plugged in, all audio will be routed to the headphones even though there may not be any headphones plugged in to the built-in jack. I think that would be simplest, provided no one removes it from the back of the computer.

Among the other software-based approaches, such as Earsafe, Whisper, or Volimeter (CLI), and Volume Limiter only Volume Limiter gives the ability to do this on a per-device basis.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .