Forrest logo
back to the pactl tool

pactl:ai:8d66c

mpg123 produces no sound when run in a shell script
$ pactl set-sink-volume 0 50%
try on your machine

Adjusts the volume of the default sink to 50%. This command may need to be run before using mpg123 in a shell script to ensure sound output.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.

Questions that are answered by this command:

  • mpg123 produces no sound when run in a shell script?
back to the pactl tool