In the post from hs123 above, there is no indentation in the text, in any programming language, indents matter.
If you follow the given link to the gitlab page, you will find a post With the needed indents, create and save the file with the indents, then reboot, it should then work.
monitor.alsa.rules = [
{
matches = [
# This matches the value of the 'node.name' property of the node.
{
node.name = "~alsa_output.*"
}
]
actions = {
# Apply all the desired node specific settings here.
update-props = {
api.alsa.period-size = 1024
api.alsa.headroom = 8192
}
}
}
]