ASR stop working

Hello,
I have a problem with asr. all tests are positive. hey snips give me a peep so I think it is ok. But after that nothing happend.
( Raspberry Pi Zero WH 512 MB / KEYESTUDIO ReSpeaker 2-Mic Pi HAT V1.0)

Okt 26 22:57:25 snips1 systemd[1]: Started Snips Injection.
Okt 26 22:57:25 snips1 systemd[1]: snips-injection.service: Main process exited, code=killed, status=4/ILL
Okt 26 22:57:25 snips1 systemd[1]: snips-injection.service: Unit entered failed state.
Okt 26 22:57:25 snips1 systemd[1]: snips-injection.service: Failed with result ‘signal’.
Okt 26 22:57:28 snips1 systemd[1]: snips-asr.service: Service hold-off time over, scheduling restart.
Okt 26 22:57:28 snips1 systemd[1]: Stopped Snips ASR.
Connected to device snips1

OS version … Raspbian GNU/Linux 9 (stretch)
Installed assistant … Joe
Language … de
Hotword … hey_snips
ASR engine … snips
Status … Live

Service status:

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

pi@snips1:~ $ aplay -l
**** Liste der Hardware-Geräte (PLAYBACK) ****
Karte 0: seeed2micvoicec [seeed-2mic-voicecard], Gerät 0: bcm2835-i2s-wm8960-hifi wm8960-hifi-0 []
Sub-Geräte: 1/1
Sub-Gerät #0: subdevice #0

pi@snips1:~ $ aplay -l
**** Liste der Hardware-Geräte (PLAYBACK) ****
Karte 0: seeed2micvoicec [seeed-2mic-voicecard], Gerät 0: bcm2835-i2s-wm8960-hifi wm8960-hifi-0 []
Sub-Geräte: 1/1
Sub-Gerät #0: subdevice #0

pi@snips1:~ $ sudo cat /etc/asound.conf
pcm.!default {
type asym
playback.pcm {
type plug
slave.pcm “hw:0,0”
}
capture.pcm {
type plug
slave.pcm “hw:0,0”
}

Try running snips-asr -vvv and see what extra debug information is logged to console

snips-asr -vvv didn’t work.

pi@snips1:~ $ snips-asr -vvv
Ungültiger Maschinenbefehl (Illegal instruction)

pi@snips1:~ $ snips-audio-server -vvv
[23:13:14.316737] DEBUG:snips_common_cli::cli: conf lookup: snips-audio-server.no_exit_on_all_panics -> Ok(None)
[23:13:14.322721] DEBUG:snips_common_cli::cli: conf lookup: snips-common.no_exit_on_all_panics -> Ok(None)
[23:13:14.325677] DEBUG:snips_common_cli::cli: conf lookup: snips-audio-server.bus -> Ok(None)
[23:13:14.330595] DEBUG:snips_common_cli::cli: conf lookup: snips-common.bus -> Ok(None)
[23:13:14.333758] DEBUG:snips_common_cli::cli: conf lookup: snips-audio-server.mqtt -> Ok(None)
[23:13:14.337356] DEBUG:snips_common_cli::cli: conf lookup: snips-common.mqtt -> Ok(None)
[23:13:14.341374] DEBUG:snips_common_cli::cli: conf lookup: snips-audio-server.mqtt_username -> Ok(None)
[23:13:14.344743] DEBUG:snips_common_cli::cli: conf lookup: snips-common.mqtt_username -> Ok(None)
[23:13:14.348495] DEBUG:snips_common_cli::cli: conf lookup: snips-audio-server.mqtt_password -> Ok(None)
[23:13:14.349370] DEBUG:snips_common_cli::cli: conf lookup: snips-common.mqtt_password -> Ok(None)
[23:13:14.352962] DEBUG:snips_common_cli::cli: conf lookup: snips-audio-server.mqtt_tls_hostname -> Ok(None)
[23:13:14.357294] DEBUG:snips_common_cli::cli: conf lookup: snips-common.mqtt_tls_hostname -> Ok(None)
[23:13:14.358422] DEBUG:rumqtt::client : snips-audio-server|5669-snips1-1: Client start
[23:13:14.361447] INFO :rumqtt::connection : snips-audio-server|5669-snips1-1: Connection start
[23:13:14.363220] DEBUG:rumqtt::connection : snips-audio-server|5669-snips1-1 new connection
[23:13:14.375914] DEBUG:rumqtt::connection : Send: Connect(Connect { protocol: MQTT(4), keep_alive: 10, client_id: “snips-audio-server|5669-snips1-1”, clean_session: false, last_will: None, username: None, password: None })
[23:13:14.390776] DEBUG:rumqtt::connection : snips-audio-server|5669-snips1-1 Received control message Connack(Connack { session_present: false, code: Accepted })
[23:13:14.392305] INFO :rumqtt::connection : snips-audio-server|5669-snips1-1: Connection established
[23:13:14.393758] DEBUG:rumqtt::client : snips-audio-server|5669-snips1-1: Spawning client thread
[23:13:14.402546] DEBUG:snips_common_cli::cli: conf lookup: snips-audio-server.disable_playback -> Ok(None)
[23:13:14.405709] DEBUG:snips_common_cli::cli: conf lookup: snips-common.disable_playback -> Ok(None)
[23:13:14.410058] DEBUG:snips_common_cli::cli: conf lookup: snips-audio-server.alsa_playback -> Ok(None)
[23:13:14.413130] DEBUG:snips_common_cli::cli: conf lookup: snips-common.alsa_playback -> Ok(None)
[23:13:14.415852] DEBUG:snips_common_cli::cli: conf lookup: snips-audio-server.portaudio_playback -> Ok(None)
[23:13:14.421028] DEBUG:snips_common_cli::cli: conf lookup: snips-common.portaudio_playback -> Ok(None)
[23:13:14.421236] DEBUG:snips_common_cli::cli: conf lookup: snips-audio-server.output -> Ok(None)
[23:13:14.421364] DEBUG:snips_common_cli::cli: conf lookup: snips-common.output -> Ok(None)
[23:13:14.421505] DEBUG:snips_common_cli::cli: conf lookup: snips-audio-server.frame -> Ok(None)
[23:13:14.421632] DEBUG:snips_common_cli::cli: conf lookup: snips-common.frame -> Ok(None)
[23:13:14.421813] DEBUG:snips_common_cli::cli: conf lookup: snips-audio-server.disable_capture -> Ok(None)
[23:13:14.421956] DEBUG:snips_common_cli::cli: conf lookup: snips-common.disable_capture -> Ok(None)
[23:13:14.422090] DEBUG:snips_common_cli::cli: conf lookup: snips-audio-server.nomike -> Ok(None)
[23:13:14.422207] DEBUG:snips_common_cli::cli: conf lookup: snips-common.nomike -> Ok(None)
[23:13:14.422338] DEBUG:snips_common_cli::cli: conf lookup: snips-audio-server.portaudio_capture -> Ok(None)
[23:13:14.422467] DEBUG:snips_common_cli::cli: conf lookup: snips-common.portaudio_capture -> Ok(None)
[23:13:14.422590] DEBUG:snips_common_cli::cli: conf lookup: snips-audio-server.mike -> Ok(None)
[23:13:14.422707] DEBUG:snips_common_cli::cli: conf lookup: snips-common.mike -> Ok(None)
[23:13:14.422837] DEBUG:snips_common_cli::cli: conf lookup: snips-audio-server.alsa_capture -> Ok(None)
[23:13:14.422959] DEBUG:snips_common_cli::cli: conf lookup: snips-common.alsa_capture -> Ok(None)
[23:13:14.423087] DEBUG:snips_common_cli::cli: conf lookup: snips-audio-server.hijack -> Ok(None)
[23:13:14.423206] DEBUG:snips_common_cli::cli: conf lookup: snips-common.hijack -> Ok(None)
[23:13:14.423338] DEBUG:snips_common_cli::cli: conf lookup: snips-audio-server.bind -> Ok(None)
[23:13:14.423495] DEBUG:snips_common_cli::cli: conf lookup: snips-common.bind -> Ok(None)
[23:13:14.423645] DEBUG:snips_common_cli::cli: conf lookup: snips-audio-server.bind -> Ok(None)
[23:13:14.423766] DEBUG:snips_common_cli::cli: conf lookup: snips-common.bind -> Ok(None)
[23:13:14.423952] INFO :snips_audio_server_cli: Starting audio server on mqtt for site default
[23:13:14.424429] DEBUG:snips_audio_alsa::capture: Attempt 0
[23:13:14.428388] DEBUG:rumqtt::client : snips-audio-server|5669-snips1-1: Entering normal operation loop
[23:13:14.432965] DEBUG:snips_audio_alsa::capture: ALSA capture source started
[23:13:14.436577] DEBUG:snips_audio_alsa::capture: List ALSA capture devices
[23:13:14.525861] DEBUG:snips_audio_alsa::capture: Attempt 1
[23:13:14.579369] DEBUG:snips_audio_alsa::capture: - Hint { name: Some(“null”), desc: Some(“Discard all samples (playback) or generate zero samples (capture)”), direction: None }
[23:13:14.583258] DEBUG:snips_audio_alsa::capture: - Hint { name: Some(“default”), desc: None, direction: None }
[23:13:14.584011] DEBUG:snips_audio_alsa::capture: - Hint { name: Some(“sysdefault:CARD=seeed2micvoicec”), desc: Some(“seeed-2mic-voicecard, \nDefault Audio Device”), direction: None }
[23:13:14.587138] DEBUG:snips_audio_alsa::capture: - Hint { name: Some(“dmix:CARD=seeed2micvoicec,DEV=0”), desc: Some(“seeed-2mic-voicecard, \nDirect sample mixing device”), direction: None }
[23:13:14.592665] DEBUG:snips_audio_alsa::capture: - Hint { name: Some(“dsnoop:CARD=seeed2micvoicec,DEV=0”), desc: Some(“seeed-2mic-voicecard, \nDirect sample snooping device”), direction: None }
[23:13:14.597018] DEBUG:snips_audio_alsa::capture: - Hint { name: Some(“hw:CARD=seeed2micvoicec,DEV=0”), desc: Some(“seeed-2mic-voicecard, \nDirect hardware device without any conversions”), direction: None }
[23:13:14.600487] DEBUG:snips_audio_alsa::capture: - Hint { name: Some(“plughw:CARD=seeed2micvoicec,DEV=0”), desc: Some(“seeed-2mic-voicecard, \nHardware device with all software conversions”), direction: None }
[23:13:14.603146] INFO :snips_audio_alsa::capture: Starting ALSA capture on device “default”
[23:13:14.608821] DEBUG:snips_audio_alsa::capture: ALSA capture source ended
[23:13:14.626823] DEBUG:snips_audio_alsa::capture: Attempt 2
[23:13:14.627207] ERROR:snips_audio_server : an error occured in the audio pipeline: Error(“snd_pcm_open”, Sys(EBUSY))
-> caused by: ALSA function ‘snd_pcm_open’ failed with error ‘EBUSY: Device or resource busy’

oh… are you running the whole snips suite of apps on a Pi0 ??
if so that is the problem… you can use a Pi0 for a satellite device… but you can’t run the suite of snips apps on it… ASR will not run on a Pi0…

https://docs.snips.ai/articles/raspberrypi/hardware/hardware

1 Like

ah thanks. thats my problem. So i have to use for example one pi3 and the other devices can be pi0? correct? which services must be installed and running for satellite device? snips-satellite?

if you only want one device, then you can use a Pi3 with a mic etc and that will work

if you want around the house more devices then using Pi0’s for satellite mic/speakers is perfect, with the Pi3 as a base unit that does the all the main work

Satellite devices can be configured in many ways including legacy ways… its really a personal choice and what the use case is
https://docs.snips.ai/articles/platform/satellites

1 Like

Thanks a lot ! Now after this information from you first i will start with one pi3 as base
and one pi0 as satellite :wink:

Now i am using my pi3, everything works fine. Thanks.