I’ve been having a major headache getting the assistant to work with the pi zero. I’ve followed the installation guide from here and the test script
sudo wget -O - test.raspiaudio.com | sudo bash
plays and records audio fine. However, when I run
arecord --format=S16_LE --duration=5 --rate=16000 --file-type=raw out.raw
and play it back with
aplay --format=S16_LE --rate=16000 out.raw
there is only a silent 5 second clip.
If I change the .asoundrc file to the one in the google guide then I can record audio by specifying the device
arecord -D mic --format=S16_LE --duration=5 --rate=16000 --file-type=raw out.raw
and play it back fine. But running without “-D mic” results in 5 seconds of silence again.
I’m confused as to why the test script works, but the arecord doesn’t. I think this is leading to the voice assistant not being able to record audio properly.
This has been driving me insane, so any help would be greatly appreciated!