Test microphone with snips.ai

Hej there, I cannot use snips anymore.
test microphone leads to the following recording


What is the problem here?
sam test speaker works flawlessly.
sam status
OS version … Raspbian GNU/Linux 9 (stretch)
Installed assistant … ai
Language … de
Hotword … hey_snips
ASR engine … snips
Status … Live

Service status:

snips-analytics … (not running)
snips-asr … 0.63.3 (running)
snips-audio-server … 0.63.3 (running)
snips-dialogue … 0.63.3 (running)
snips-hotword … 0.63.3 (running)
snips-nlu … 0.63.3 (running)
snips-skill-server … 0.63.3 (running)
snips-tts … 0.63.3 (running)

I do not get it.
Can anybode please help.
Thank you in advance

Hi @snipsai,

Welcome to the community!

Can you post the output when you type arecord -l?

Additionally, the contents of your /etc/snips.toml file, specifically the mike= line?

Most of the time, when people have this issue, it is because the name of their microphone in the snips.toml configuration file does not exactly match the name of their MATRIX microphone.

Best,
Samreen

arecord -l
**** Liste der Hardware-Geräte (CAPTURE) ****
Karte 1: Dummy [Dummy], Gerät 0: Dummy PCM [Dummy PCM]
Sub-Geräte: 8/8
Sub-Gerät #0: subdevice #0
Sub-Gerät #1: subdevice #1
Sub-Gerät #2: subdevice #2
Sub-Gerät #3: subdevice #3
Sub-Gerät #4: subdevice #4
Sub-Gerät #5: subdevice #5
Sub-Gerät #6: subdevice #6
Sub-Gerät #7: subdevice #7

I do not know why the MATRIX module is not standing here…

[snips-audio-server]

frame = 256

bind = “default@mqtt”

mike = “MATRIXIO-SOUND: - (hw:1,0)”
Environment=“PA_ALSA_PLUGHW=1”

disable_playback = false # disable_capture = false

#alsa_playback = “default”
#alsa_capture = “default”

Okay I reinstalled the matrix-kernel-modules. Now I think I only got a problem with snips.
The snips-audio-server is running but still does not recognize its hotword…

syslog
Aug 13 12:41:05 raspberrypi snips-audio-server[2699]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
Aug 13 12:41:05 raspberrypi snips-audio-server[2699]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
Aug 13 12:41:05 raspberrypi snips-audio-server[2699]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
Aug 13 12:41:05 raspberrypi snips-audio-server[2699]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
Aug 13 12:41:05 raspberrypi snips-audio-server[2699]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
Aug 13 12:41:05 raspberrypi snips-audio-server[2699]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
Aug 13 12:41:05 raspberrypi snips-audio-server[2699]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40
Aug 13 12:41:05 raspberrypi snips-audio-server[2699]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41
Aug 13 12:41:05 raspberrypi snips-audio-server[2699]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50
Aug 13 12:41:05 raspberrypi snips-audio-server[2699]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51
Aug 13 12:41:05 raspberrypi snips-audio-server[2699]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
Aug 13 12:41:05 raspberrypi snips-audio-server[2699]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
Aug 13 12:41:05 raspberrypi snips-audio-server[2699]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
Aug 13 12:41:05 raspberrypi snips-audio-server[2699]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
Aug 13 12:41:05 raspberrypi snips-audio-server[2699]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
Aug 13 12:41:05 raspberrypi snips-audio-server[2699]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
Aug 13 12:41:05 raspberrypi snips-audio-server[2699]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
Aug 13 12:41:05 raspberrypi snips-audio-server[2699]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
Aug 13 12:41:05 raspberrypi snips-audio-server[2699]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
Aug 13 12:41:05 raspberrypi snips-audio-server[2699]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
Aug 13 12:41:05 raspberrypi snips-audio-server[2699]: Expression ‘alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &alsaPeriodFrames, &dir )’ failed in ‘src/hostapi/alsa/pa_linux_alsa.c’, line: 923

Hey @snipsai,

After re-installing the kernel modules, what’s the hardware card and device of your MATRIXIO-SOUND card?

sam test speaker and sam test microphone use the /etc/asound.conf file to work whereas the snips services uses the /etc/snips.toml config, so it may help to double check that the hw numbers are correct in the line below in /etc/snips.toml.

mike = “MATRIXIO-SOUND: - (hw:1,0)”

Best,
Samreen

@snipsai,

I also just tested on Raspbian Stretch 4.19 and the workaround here seems to be working for me.

Whatever was causing the issue of lack of hotword detection had been resolved on the Snips side (was a portaudio issue) but seems like it may be back again.

Best,
Samreen

Thank you very much @Samreen
This problem is solved now.
Now I only got a problem with snips. I cannot get the iobroker app to work.
So they should help me :slight_smile:
Thank you very much again!!!
Great work

1 Like