I'm following a tutorial for setting up audio for google assistant. It said to save this script with card and device numbers that I wrote down:
pcm.!default {
type asym
capture.pcm "mic"
playback.pcm "speaker"
}
pcm.mic {
type plug
slave {
pcm "hw: 1, 0 "
}
}
pcm.speaker {
type plug
slave {
pcm "hw: 0 ,0"
}
}
But I'm getting these errors when I do the test commands:
pi@raspberrypi:~ $ speaker-test -t wav
speaker-test 1.1.3
Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
WAV file(s)
ALSA lib pcm_hw.c:1713:(_snd_pcm_hw_open) Invalid value for card
Playback open error: -19,No such device
pi@raspberrypi:~ $ arecord --format=S16_LE --duration=5 --rate=16000 --
file-type=raw out.raw
ALSA lib conf.c:4886:(parse_args) Parameter DEV must be an integer
ALSA lib conf.c:4991:(snd_config_expand) Parse arguments error: Invalid
argument
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM hw: 1, 0
arecord: main:788: audio open error: Invalid argument
I have USB mini microphone and my speakers are from my hdmi moniter