When I type “googlesamples-assistant-hotword --project_id MATRIX-CREATOR --device_model_id matrix-creator-e92d7-matrix-creator-p3l4o6” ,it show me the error
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM sc
[FATAL:audio_input_stream.cc(47)] Input device could not be opened: default
Aborted
Are you able to record from default device using arecord like this? arecord -r 16000 -f S16_LE test.wav
Can you share the output of
cat /etc/asound.conf
The instructions in the Hackster guide are sufficient. So, maybe following some of the steps in the readme https://github.com/matrix-io/matrixio-kernel-modules something went wrong. What part of the readme did you follow?
Last time I tried that guide in Hackster was good, I will try again in case something changed.
$ git clone https://github.com/matrix-io/matrixio-kernel-modules
cd matrixio-kernel-modules/src
make && make install
I would like add Add in /boot/config.txt
" dtoverlay=matrixio "
But this command is already in the file config.txt.
By the way ,after install KERNEL,I would like to make Zwave Initial Setup.
But it always show me that
And I typed $ ./reference_client -s 192.168.1.77 , it show error bellow .
192.168.1.77 is matrix ethernet IP adress, 192.168.1.76 is Matrix wifi connection adress
Is it the same as IP of MATRIX ZIP Gateway? If not ,how we can check IP of MATRIX ZIP Gateway.
Hi @bluegreen,
I am a little bit confused. Are you following the Gogole Assistant guide on Hackster? I ask this because that guide does not have any ZWave setup.
I’m encountering this error, too, after following the Hackster tutorial and then following this Shairport tutorial immediately thereafter. I went to bring up google-matrixio-assistant-hotword after a reboot to enable audio_pwm_mode=2 in /boot/config.txt and the GA stuff will no longer work.
The google-matrixio-assistant-hotword program outputs:
ALSA lib pcm_hw.c:1713:(_snd_pcm_hw_open) Invalid value for card
[FATAL:audio_input_stream.cc(47)] Input device could not be opened: default
The Shairport stuff works, though.
Also, arecord fails:
$ arecord --duration 5 --rate 16000 --format S16_LE test.wav
ALSA lib pcm_hw.c:1713:(_snd_pcm_hw_open) Invalid value for card
arecord: main:788: audio open error: No such file or directory
The kernel module doesn’t appear to load:
$ lsmod | grep matrix
despite:
$ cat /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
matrixio-everloop
and when I try manually
$ sudo modprobe matrix-everloop
modprobe: FATAL: Module matrix-everloop not found in directory /lib/modules/4.14.77-v7+
I think something went weird. I removed the Matrix modules and kernel headers, and then reinstalled the Matrix modules:
sudo apt remove matrixio-kernel-modules raspberrypi-kernel-headers
$ sudo apt install matrixio-kernel-modules
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
raspberrypi-kernel-headers
The following NEW packages will be installed:
matrixio-kernel-modules raspberrypi-kernel-headers
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 16.1 MB/16.1 MB of archives.
After this operation, 105 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://archive.raspberrypi.org/debian stretch/main armhf raspberrypi-kernel-headers armhf 1.20180924-1 [16.1 MB]
Fetched 16.1 MB in 35s (459 kB/s)
Selecting previously unselected package raspberrypi-kernel-headers.
(Reading database ... 43495 files and directories currently installed.)
Preparing to unpack .../raspberrypi-kernel-headers_1.20180924-1_armhf.deb ...
Unpacking raspberrypi-kernel-headers (1.20180924-1) ...
Selecting previously unselected package matrixio-kernel-modules.
Preparing to unpack .../matrixio-kernel-modules_0.1.4_armhf.deb ...
Unpacking matrixio-kernel-modules (0.1.4) ...
Setting up raspberrypi-kernel-headers (1.20180924-1) ...
run-parts: executing /etc/kernel/header_postinst.d/dkms 4.14.71+
run-parts: executing /etc/kernel/header_postinst.d/dkms 4.14.71-v7+
Setting up matrixio-kernel-modules (0.1.4) ...
Enabling firmware loading at startup
Creating symlink /var/lib/dkms/matrixio/0.1/source ->
/usr/src/matrixio-0.1
DKMS: add completed.
Error! echo
Your kernel headers for kernel 4.14.77-v7+ cannot be found at
/lib/modules/4.14.77-v7+/build or /lib/modules/4.14.77-v7+/source.
dpkg: error processing package matrixio-kernel-modules (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
matrixio-kernel-modules
E: Sub-process /usr/bin/dpkg returned an error code (1)