0

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!

Alex
  • 1
  • 1

1 Answers1

0

You don't have to run it as a command manually. You just need to create a file called ".asoundrc" in your home directory. Use this link for more information and how to troubleshoot the audio problems.

Ishanka25
  • 83
  • 2
  • 9
  • And make sure you have add the card number and device number instead of `','` Read the instructions in the above link properly. :) – Ishanka25 Aug 10 '17 at 05:29