Who has got snips working on Hassio?

good one, I will try it as well!

I have put together a local snips which seems to work.

This involves the fix from hcooper and I have fixed the Unsupported bus type error.
There is an error in the entrypoint.sh, so what I did was pull it out of the original docker, fix the error (see: https://github.com/snipsco/snips-platform-documentation/issues/18 ) and create a Dockerfile which copies my entrypoint.sh to the image.
I will wrap things up and see if I can create a repo on git for it :slightly_smiling_face:

It will need to build locally for that to work, but that should not be a problem.
The build in snips used a prebuild images, which is useless right now

Here is my repo: https://github.com/Romkabouter/hassio-addons

I have installed my repo on a clean hassio install, installed the samba add-on so I could upload my assistant.zip to the share folder.
I am using my usb headset, so mic and speaker are both hw:1,0

Seems to work fine for me

I have a fix for the new intent format in the next release along with speech actually working

Also you can now use a custom tts with snips

Hi guys.my snips starts with a lot of errors and I dunno what I’m doing wrong see here:

Logs
ERROR: Failed to read 43695720 bytes at offset 69152from “/usr/share/snips/assistant/custom_asr/b.snips”
ERROR: ConstFst::Read: Read failed: /usr/share/snips/assistant/custom_asr/b.snips
ERROR:snips_kaldi: “Could not read fst from /usr/share/snips/assistant/custom_asr/b.snips”
thread ‘main’ panicked at ‘called Option::unwrap() on a None value’, /checkout/src/libcore/option.rs:335:20
note: Run with RUST_BACKTRACE=1 for a backtrace.
fatal runtime error: failed to initiate panic, error 9
2018-01-16 19:19:05,239 INFO exited: snips-asr (terminated by SIGABRT (core dumped); not expected)
2018-01-16 19:19:06,251 INFO spawned: ‘snips-asr’ with pid 3969
INFO:snips_asr: Using model from /usr/share/snips/assistant/custom_asr
2018-01-16 19:19:07,448 INFO success: snips-asr entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
ERROR: Failed to read 43695720 bytes at offset 69152from “/usr/share/snips/assistant/custom_asr/b.snips”
ERROR: ConstFst::Read: Read failed: /usr/share/snips/assistant/custom_asr/b.snips
ERROR:snips_kaldi: “Could not read fst from /usr/share/snips/assistant/custom_asr/b.snips”
thread ‘main’ panicked at ‘called Option::unwrap() on a None value’, /checkout/src/libcore/option.rs:335:20
note: Run with RUST_BACKTRACE=1 for a backtrace.
fatal runtime error: failed to initiate panic, error 9
2018-01-16 19:19:11,598 INFO exited: snips-asr (terminated by SIGABRT (core dumped); not expected)
2018-01-16 19:19:12,609 INFO spawned: ‘snips-asr’ with pid 3970
INFO:snips_asr: Using model from /usr/share/snips/assistant/custom_asr
2018-01-16 19:19:13,761 INFO success: snips-asr entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
ERROR: Failed to read 43695720 bytes at offset 69152from “/usr/share/snips/assistant/custom_asr/b.snips”
ERROR: ConstFst::Read: Read failed: /usr/share/snips/assistant/custom_asr/b.snips
ERROR:snips_kaldi: “Could not read fst from /usr/share/snips/assistant/custom_asr/b.snips”
thread ‘main’ panicked at ‘called Option::unwrap() on a None value’, /checkout/src/libcore/option.rs:335:20
note: Run with RUST_BACKTRACE=1 for a backtrace.
fatal runtime error: failed to initiate panic, error 9
2018-01-16 19:19:17,883 INFO exited: snips-asr (terminated by SIGABRT (core dumped); not expected)
2018-01-16 19:19:18,893 INFO spawned: ‘snips-asr’ with pid 3971
INFO:snips_asr: Using model from /usr/share/snips/assistant/custom_asr
2018-01-16 19:19:20,062 INFO success: snips-asr entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
ERROR: Failed to read 43695720 bytes at offset 69152from “/usr/share/snips/assistant/custom_asr/b.snips”
ERROR: ConstFst::Read: Read failed: /usr/share/snips/assistant/custom_asr/b.snips
ERROR:snips_kaldi: “Could not read fst from /usr/share/snips/assistant/custom_asr/b.snips”
thread ‘main’ panicked at ‘called Option::unwrap() on a None value’, /checkout/src/libcore/option.rs:335:20
note: Run with RUST_BACKTRACE=1 for a backtrace.
fatal runtime error: failed to initiate panic, error 9
2018-01-16 19:19:24,223 INFO exited: snips-asr (terminated by SIGABRT (core dumped); not expected)
2018-01-16 19:19:25,232 INFO spawned: ‘snips-asr’ with pid 3972
INFO:snips_asr: Using model from /usr/share/snips/assistant/custom_asr
2018-01-16 19:19:26,383 INFO success: snips-asr entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
ERROR: Failed to read 43695720 bytes at offset 69152from “/usr/share/snips/assistant/custom_asr/b.snips”
ERROR: ConstFst::Read: Read failed: /usr/share/snips/assistant/custom_asr/b.snips
ERROR:snips_kaldi: “Could not read fst from /usr/share/snips/assistant/custom_asr/b.snips”
thread ‘main’ panicked at ‘called Option::unwrap() on a None value’, /checkout/src/libcore/option.rs:335:20
note: Run with RUST_BACKTRACE=1 for a backtrace.
fatal runtime error: failed to initiate panic, error 9
2018-01-16 19:19:30,533 INFO exited: snips-asr (terminated by SIGABRT (core dumped); not expected)
2018-01-16 19:19:31,547 INFO spawned: ‘snips-asr’ with pid 3973
INFO:snips_asr: Using model from /usr/share/snips/assistant/custom_asr
2018-01-16 19:19:32,707 INFO success: snips-asr entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
ERROR: Failed to read 43695720 bytes at offset 69152from “/usr/share/snips/assistant/custom_asr/b.snips”
ERROR: ConstFst::Read: Read failed: /usr/share/snips/assistant/custom_asr/b.snips
ERROR:snips_kaldi: “Could not read fst from /usr/share/snips/assistant/custom_asr/b.snips”
thread ‘main’ panicked at ‘called Option::unwrap() on a None value’, /checkout/src/libcore/option.rs:335:20
note: Run with RUST_BACKTRACE=1 for a backtrace.
fatal runtime error: failed to initiate panic, error 9
2018-01-16 19:19:36,695 INFO exited: snips-asr (terminated by SIGABRT (core dumped); not expected)
2018-01-16 19:19:37,702 INFO spawned: ‘snips-asr’ with pid 3974
INFO:snips_asr: Using model from /usr/share/snips/assistant/custom_asr
2018-01-16 19:19:38,817 INFO success: snips-asr entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
ERROR: Failed to read 43695720 bytes at offset 69152from “/usr/share/snips/assistant/custom_asr/b.snips”
ERROR: ConstFst::Read: Read failed: /usr/share/snips/assistant/custom_asr/b.snips
ERROR:snips_kaldi: “Could not read fst from /usr/share/snips/assistant/custom_asr/b.snips”
thread ‘main’ panicked at ‘called Option::unwrap() on a None value’, /checkout/src/libcore/option.rs:335:20
note: Run with RUST_BACKTRACE=1 for a backtrace.
fatal runtime error: failed to initiate panic, error 9
2018-01-16 19:19:42,928 INFO exited: snips-asr (terminated by SIGABRT (core dumped); not expected)
2018-01-16 19:19:43,939 INFO spawned: ‘snips-asr’ with pid 3975
INFO:snips_asr: Using model from /usr/share/snips/assistant/custom_asr
2018-01-16 19:19:45,102 INFO success: snips-asr entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
ERROR: Failed to read 43695720 bytes at offset 69152from “/usr/share/snips/assistant/custom_asr/b.snips”
ERROR: ConstFst::Read: Read failed: /usr/share/snips/assistant/custom_asr/b.snips
ERROR:snips_kaldi: “Could not read fst from /usr/share/snips/assistant/custom_asr/b.snips”
thread ‘main’ panicked at ‘called Option::unwrap() on a None value’, /checkout/src/libcore/option.rs:335:20
note: Run with RUST_BACKTRACE=1 for a backtrace.
fatal runtime error: failed to initiate panic, error 9
2018-01-16 19:19:49,213 INFO exited: snips-asr (terminated by SIGABRT (core dumped); not expected)
2018-01-16 19:19:50,226 INFO spawned: ‘snips-asr’ with pid 3976
INFO:snips_asr: Using model from /usr/share/snips/assistant/custom_asr
2018-01-16 19:19:51,368 INFO success: snips-asr entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
ERROR: Failed to read 43695720 bytes at offset 69152from “/usr/share/snips/assistant/custom_asr/b.snips”
ERROR: ConstFst::Read: Read failed: /usr/share/snips/assistant/custom_asr/b.snips
ERROR:snips_kaldi: “Could not read fst from /usr/share/snips/assistant/custom_asr/b.snips”
thread ‘main’ panicked at ‘called Option::unwrap() on a None value’, /checkout/src/libcore/option.rs:335:20
note: Run with RUST_BACKTRACE=1 for a backtrace.
fatal runtime error: failed to initiate panic, error 9
2018-01-16 19:19:55,322 INFO exited: snips-asr (terminated by SIGABRT (core dumped); not expected)
2018-01-16 19:19:56,335 INFO spawned: ‘snips-asr’ with pid 3977
INFO:snips_asr: Using model from /usr/share/snips/assistant/custom_asr
2018-01-16 19:19:57,504 INFO success: snips-asr entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
ERROR: Failed to read 43695720 bytes at offset 69152from “/usr/share/snips/assistant/custom_asr/b.snips”
ERROR: ConstFst::Read: Read failed: /usr/share/snips/assistant/custom_asr/b.snips
ERROR:snips_kaldi: “Could not read fst from /usr/share/snips/assistant/custom_asr/b.snips”
thread ‘main’ panicked at ‘called Option::unwrap() on a None value’, /checkout/src/libcore/option.rs:335:20
note: Run with RUST_BACKTRACE=1 for a backtrace.
fatal runtime error: failed to initiate panic, error 9
2018-01-16 19:20:01,821 INFO exited: snips-asr (terminated by SIGABRT (core dumped); not expected)
2018-01-16 19:20:02,835 INFO spawned: ‘snips-asr’ with pid 3978
INFO:snips_asr: Using model from /usr/share/snips/assistant/custom_asr
2018-01-16 19:20:03,991 INFO success: snips-asr entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

Pretty clear you haven’t unzipped your assistant in /usr/share/snips

Well…docs say I should upload the zip file

Some of the docs are outdated, but can you clarify your setup? How you are running hass and how you are running snips? There was an issue with the hassio addon for snips I believe but I don’t use hassio so can’t help there. There are posts above with the fix I think

ERROR:snips_asr: Error: Unsupported bus type: localhost:1883
2018-01-16 19:49:11,210 INFO exited: snips-asr (exit status 1; not expected)
2018-01-16 19:49:12,219 INFO spawned: ‘snips-asr’ with pid 150
INFO:snips_asr: Using model from /usr/share/snips/assistant/custom_asr
2018-01-16 19:49:13,380 INFO success: snips-asr entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
snips_stt --use-energy=false --num-mel-bins=40 --num-ceps=40 --low-freq=20 --high-freq=-400 --sample-frequency=16000

Now after reinstalling snips I get this.

1 Like

I use indeed snips on hassio. Let me read above …thanks anyway

Well there’s no fix for me

Have you done like he suggested and installed samba so you could get your assistant uploaded?

Try my fixed Snips addon: https://github.com/Romkabouter/hassio-addons

Works for me, use the full snips, the other addons are in development.
Let me know if you have issues.

Am I supposed to install all packages and runs them with same config parameters?

I installed all.activated the bridge with my local mqtt. Or how is it supposed to be configured if I wanna use my own mqtt server?

This is my log from snips
https://hastebin.com/ohayesocew.vbs

https://hastebin.com/bopotipehe.sql

I have the feeling it just dies not wanna work but as I’m not familiar with docker …I dunno what to do

I found that when activating bridge you get and invalid config error, also with the orignal.

First: set bridge to false, there should be no errors
Second: set bridge to true, set your ip (between quotes) and port (without quotes). This will result in the errors you gave.
Third: Try it with specifying a user and pass, that worked for me