I'm trying to set up the Google home assistant on my pi3, but I'm having issues with the microphone. When I ran a test on the microphone it says no file exists:
$ arecord --format=S16_LE --duration=5 --rate=16k --file-type=raw out.raw
arecord: main:722: audio open error: No such file or directory
According to instructions from google developers I need to set up a directory called .asoundrc with the following commands:
pcm.!default {
type asym
capture.pcm "mic"
playback.pcm "speaker"
}
pcm.mic {
type plug
slave {
pcm "hw:<card number>,<device number>"
}
}
pcm.speaker {
type plug
slave {
pcm "hw:<card number>,<device number>"
}
}
When I run this command though I get this error:
bash: !default: event not found
I would appreciate any feedback!