Thanks for the reply.
I’ve found that the problem is related to permissions somehow. The audio only records when arecord run with sudo privilege. I noticed this when running your test script locally without using wget. Strangely, I don’t get a permission denied when I try to record, it just doesn’t work. Also pi is in the audio user group and aplay works fine without sudo.
I don’t recall this was a problem when I set-up the hat on my pi4. Do you have an idea of how to fix this? As the google-assistant still can’t access the recorder.