Can't run Snips on Respeaker Core V2


#1

Dear Community
I have snips installed on a Respeaker Core V2 with the instructions from https://docs.snips.ai/articles/other-platforms/respeaker-core-2.0#install-snips.
The installation went without a hitch.
But I can not use snips.
Issuing systemctl status snips* results in the following:

● snips-injection.service - Snips Injection
Loaded: loaded (/lib/systemd/system/snips-injection.service; enabled; vendor
Active: active (running) since Tue 2019-02-26 20:39:46 CET; 7min ago
Main PID: 2698 (snips-injection)
Tasks: 5 (limit: 4915)
CGroup: /system.slice/snips-injection.service
└─2698 /usr/bin/snips-injection

Feb 26 20:39:46 v2 systemd[1]: Started Snips Injection.
Feb 26 20:39:46 v2 snips-injection[2698]: INFO:snips_injection_hermes: Launch wi

● snips-nlu.service - Snips NLU
Loaded: loaded (/lib/systemd/system/snips-nlu.service; enabled; vendor preset
Active: activating (auto-restart) (Result: exit-code) since Tue 2019-02-26 20
Process: 7244 ExecStart=/usr/bin/snips-nlu (code=exited, status=1/FAILURE)
Main PID: 7244 (code=exited, status=1/FAILURE)

Feb 26 20:47:06 v2 systemd[1]: snips-nlu.service: Main process exited, code=exit
Feb 26 20:47:06 v2 systemd[1]: snips-nlu.service: Unit entered failed state.
Feb 26 20:47:06 v2 systemd[1]: snips-nlu.service: Failed with result ‘exit-code’

● snips-dialogue.service - Snips Dialogue
Loaded: loaded (/lib/systemd/system/snips-dialogue.service; enabled; vendor p
lines 1-23…skipping…
● snips-injection.service - Snips Injection
Loaded: loaded (/lib/systemd/system/snips-injection.service; enabled; vendor
Active: active (running) since Tue 2019-02-26 20:39:46 CET; 7min ago
Main PID: 2698 (snips-injection)
Tasks: 5 (limit: 4915)
CGroup: /system.slice/snips-injection.service
└─2698 /usr/bin/snips-injection

Feb 26 20:39:46 v2 systemd[1]: Started Snips Injection.
Feb 26 20:39:46 v2 snips-injection[2698]: INFO:snips_injection_hermes: Launch wi

● snips-nlu.service - Snips NLU
Loaded: loaded (/lib/systemd/system/snips-nlu.service; enabled; vendor preset
Active: activating (auto-restart) (Result: exit-code) since Tue 2019-02-26 20
Process: 7244 ExecStart=/usr/bin/snips-nlu (code=exited, status=1/FAILURE)
Main PID: 7244 (code=exited, status=1/FAILURE)

Feb 26 20:47:06 v2 systemd[1]: snips-nlu.service: Main process exited, code=exit
Feb 26 20:47:06 v2 systemd[1]: snips-nlu.service: Unit entered failed state.
Feb 26 20:47:06 v2 systemd[1]: snips-nlu.service: Failed with result ‘exit-code’

● snips-dialogue.service - Snips Dialogue
Loaded: loaded (/lib/systemd/system/snips-dialogue.service; enabled; vendor p
Active: active (running) since Tue 2019-02-26 20:39:46 CET; 7min ago
Main PID: 2708 (snips-dialogue)
Tasks: 4 (limit: 4915)
CGroup: /system.slice/snips-dialogue.service
└─2708 /usr/bin/snips-dialogue

Feb 26 20:39:46 v2 systemd[1]: Started Snips Dialogue.
Feb 26 20:39:46 v2 snips-dialogue[2708]: INFO:snips_dialogue_hermes: Loading the
Feb 26 20:39:46 v2 snips-dialogue[2708]: INFO:snips_dialogue_lib::config: Loadin
Feb 26 20:39:46 v2 snips-dialogue[2708]: INFO:snips_dialogue_hermes : Starti

● snips-tts.service - Snips TTS
Loaded: loaded (/lib/systemd/system/snips-tts.service; enabled; vendor preset
Active: active (running) since Tue 2019-02-26 20:39:46 CET; 7min ago
Main PID: 2717 (snips-tts)
Tasks: 2 (limit: 4915)
CGroup: /system.slice/snips-tts.service
└─2717 /usr/bin/snips-tts

Feb 26 20:39:46 v2 systemd[1]: Started Snips TTS.
Feb 26 20:39:46 v2 snips-tts[2717]: INFO:snips_tts_hermes: starting with provide

● snips-asr.service - Snips ASR
Loaded: loaded (/lib/systemd/system/snips-asr.service; enabled; vendor preset
Active: active (running) since Tue 2019-02-26 20:39:46 CET; 7min ago
Main PID: 2712 (snips-asr)
Tasks: 5 (limit: 4915)
CGroup: /system.slice/snips-asr.service
└─2712 /usr/bin/snips-asr

Feb 26 20:39:46 v2 systemd[1]: Started Snips ASR.

● snips-hotword.service - Snips Hotword
Loaded: loaded (/lib/systemd/system/snips-hotword.service; enabled; vendor pr
Active: active (running) since Tue 2019-02-26 20:39:46 CET; 7min ago
Main PID: 2710 (snips-hotword)
Tasks: 2 (limit: 4915)
CGroup: /system.slice/snips-hotword.service
└─2710 /usr/bin/snips-hotword

Feb 26 20:39:46 v2 systemd[1]: Started Snips Hotword.
Feb 26 20:39:46 v2 snips-hotword[2710]: INFO:snips_hotword::server: Using model
Feb 26 20:39:46 v2 snips-hotword[2710]: INFO:snips_hotword_lib::universal: Loadi

● snips-audio-server.service - Snips Audio Server
Loaded: loaded (/lib/systemd/system/snips-audio-server.service; enabled; vend
Active: activating (start-pre) since Tue 2019-02-26 20:46:08 CET; 58s ago
Main PID: 1679 (code=killed, signal=TERM); Control PID: 6623 (wait_for_pulse_)
Tasks: 2 (limit: 4915)
CGroup: /system.slice/snips-audio-server.service
└─control
├─6623 /bin/bash /usr/local/bin/wait_for_pulse_devices.sh
└─7260 sleep 1

Feb 26 20:47:05 v2 pulseaudio[7242]: [pulseaudio] main.c: Compiled with DEPRECAT
Feb 26 20:47:05 v2 pulseaudio[7242]: [pulseaudio] core-util.c: Home directory no
Feb 26 20:47:05 v2 pulseaudio[7239]: [pulseaudio] main.c: Start des Hintergrundd
Feb 26 20:47:05 v2 wait_for_pulse_devices.sh[6623]: Verbindungsfehler: Verbindun
Feb 26 20:47:05 v2 wait_for_pulse_devices.sh[6623]: pa_context_new() fehlgeschla
Feb 26 20:47:06 v2 pulseaudio[7259]: [pulseaudio] main.c: Compiled with DEPRECAT
Feb 26 20:47:06 v2 pulseaudio[7259]: [pulseaudio] core-util.c: Home directory no
Feb 26 20:47:06 v2 pulseaudio[7256]: [pulseaudio] main.c: Start des Hintergrundd
Feb 26 20:47:06 v2 wait_for_pulse_devices.sh[6623]: Verbindungsfehler: Verbindun
Feb 26 20:47:06 v2 wait_for_pulse_devices.sh[6623]: pa_context_new() fehlgeschla

● snips-skill-server.service - Snips Skill Server
Loaded: loaded (/lib/systemd/system/snips-skill-server.service; enabled; vend
Active: activating (auto-restart) (Result: exit-code) since Tue 2019-02-26 20
Process: 7207 ExecStart=/usr/bin/snips-skill-server (code=exited, status=1/FAI
Main PID: 7207 (code=exited, status=1/FAILURE)
Tasks: 0 (limit: 4915)
CGroup: /system.slice/snips-skill-server.service

Feb 26 20:47:02 v2 systemd[1]: snips-skill-server.service: Unit entered failed s
Feb 26 20:47:02 v2 systemd[1]: snips-skill-server.service: Failed with result 'e
lines 57-98/98 (END)
Loaded: loaded (/lib/systemd/system/snips-hotword.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2019-02-26 20:39:46 CET; 7min ago
Main PID: 2710 (snips-hotword)
Tasks: 2 (limit: 4915)
CGroup: /system.slice/snips-hotword.service
└─2710 /usr/bin/snips-hotword

Feb 26 20:39:46 v2 systemd[1]: Started Snips Hotword.
Feb 26 20:39:46 v2 snips-hotword[2710]: INFO:snips_hotword::server: Using model from /usr/share/snips/assistant/custo
Feb 26 20:39:46 v2 snips-hotword[2710]: INFO:snips_hotword_lib::universal: Loading model "/usr/share/snips/assistant/

● snips-audio-server.service - Snips Audio Server
Loaded: loaded (/lib/systemd/system/snips-audio-server.service; enabled; vendor preset: enabled)
Active: activating (start-pre) since Tue 2019-02-26 20:46:08 CET; 58s ago
Main PID: 1679 (code=killed, signal=TERM); Control PID: 6623 (wait_for_pulse_)
Tasks: 2 (limit: 4915)
CGroup: /system.slice/snips-audio-server.service
└─control
├─6623 /bin/bash /usr/local/bin/wait_for_pulse_devices.sh
└─7260 sleep 1

Feb 26 20:47:05 v2 pulseaudio[7242]: [pulseaudio] main.c: Compiled with DEPRECATED libsamplerate support!
Feb 26 20:47:05 v2 pulseaudio[7242]: [pulseaudio] core-util.c: Home directory not accessible: Keine Berechtigung
Feb 26 20:47:05 v2 pulseaudio[7239]: [pulseaudio] main.c: Start des Hintergrunddienstes fehlgeschlagen.
Feb 26 20:47:05 v2 wait_for_pulse_devices.sh[6623]: Verbindungsfehler: Verbindung verweigert
Feb 26 20:47:05 v2 wait_for_pulse_devices.sh[6623]: pa_context_new() fehlgeschlagen: Verbindung verweigert
Feb 26 20:47:06 v2 pulseaudio[7259]: [pulseaudio] main.c: Compiled with DEPRECATED libsamplerate support!
Feb 26 20:47:06 v2 pulseaudio[7259]: [pulseaudio] core-util.c: Home directory not accessible: Keine Berechtigung
Feb 26 20:47:06 v2 pulseaudio[7256]: [pulseaudio] main.c: Start des Hintergrunddienstes fehlgeschlagen.
Feb 26 20:47:06 v2 wait_for_pulse_devices.sh[6623]: Verbindungsfehler: Verbindung verweigert
Feb 26 20:47:06 v2 wait_for_pulse_devices.sh[6623]: pa_context_new() fehlgeschlagen: Verbindung verweigert

● snips-skill-server.service - Snips Skill Server
Loaded: loaded (/lib/systemd/system/snips-skill-server.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Tue 2019-02-26 20:47:02 CET; 4s ago
Process: 7207 ExecStart=/usr/bin/snips-skill-server (code=exited, status=1/FAILURE)
Main PID: 7207 (code=exited, status=1/FAILURE)
Tasks: 0 (limit: 4915)
CGroup: /system.slice/snips-skill-server.service

Feb 26 20:47:02 v2 systemd[1]: snips-skill-server.service: Unit entered failed state.
Feb 26 20:47:02 v2 systemd[1]: snips-skill-server.service: Failed with result ‘exit-code’.

I see that I have a problem with Pulseaudio.
I’ve already tried reinstalling Pulsaudio completely but the same problem.
Thanks for your help
Greetings from Germany


#2

Hello,

I also ran on some cryptic troubles with the respeaker core and pulse audio.

To fix that I have re-executed the part related to pulse audio configuration in the documentation.

https://docs.snips.ai/articles/other-platforms/respeaker-core-2.0#install-snips

Try also this command first:

sudo usermod -a -G pulse-access _snips

#3

Seems that your skill server is having troubles too.

Did you install https://github.com/snipsco/snips-skill-respeaker?


#4

Thanks for your answer.
I have already tried this command again but the problem persists.

I already had problems with Pulseaudio before and then reinstalled Pulse. Without success.

it looks like there is a problem with the permissions of pulse itself.
It don’t have permissions to home directory.
Speaker Test and microphone Test with alsa works.
Speaker Test and microphone Test with pulseaudio works but i must add Parameter channel=2
Without this Parameter i cannot hear sound.

I’ve tryed to reinstall complete image and installiert snips again.
Samen Problems with pulseaudio
.
The skill Server somtimes run without trouble.
After reboot same Problem with skill Server.
Reboot again skill Server runs…
I dont know why.
My respeaker core 2.0 connected to Internet via Ethernet Cable. Not wifi.

What can i do to fix Problem with pulseaudio
(Primary Problem)

Sorry for my english :sweat_smile:
Have a nice day
Greetz from germany


#5

I’ve also been running into many issues getting Snips to work on my ReSpeaker Core v2.0. It has been incredibly frustrating, to say the least. The documentation absolutely needs to be updated. I am to the point where I’m ready to link it to Alexa Voice Services, instead, as much as I don’t want to.