Today my mac’s audio service suddenly did not work,

the sound is very low and could not be turned up,

Finally, I found a solution:

https://apple.stackexchange.com/questions/16842/restarting-sound-service

1
2
3
4
# I use zsh instead of bash
echo -e "# CoreaudioD restart\nalias audiorestart=\"sudo killall -u _coreaudiod -SIGKILL\"\n" >> ~/.zshrc
source ~/.zshrc
audiorestart

Everything works like a charm!