Problems with docker platform

Hi Snips Team! I want to use docker platform on ubuntu for snips installations. When i run following command
sudo docker run -ti snipsdocker/platform

it says
Couldn’t find any assistant

Can you help me? More Over i want to run snips_asr for my custom speech to text problems is it possible?

I agree with you, running in the same Couldn’t find any assistant.

Some documentation on how to use the docker image would be highly appreciated!

Hello,

indeed, for the demo docker image you need to install an assistant, you can unzip it on your host, if you are using linux :

you need to share the following file for the sound access with alsa

/etc/asound.conf
/dev/snd

and the path of the assistant on the host:
/usr/share/snips/assistant

here is the complete command line :

sudo docker run -t --rm --name snips --log-driver none -p 9898:1883 -v /etc/asound.conf  -v /usr/share/snips/assistant --privileged -v /dev/snd:/dev/snd snipsdocker/platform

in the docker image you want to have a look at this script file:

/opt/snips/snips-entrypoint.sh

not the op, but still stuck with the image from docker-hub.
I created an assistant and made sure snips could access it.

docker run --name snips-platform -p 9898:1883 -v /path_to_my_alsaconf/asound.conf:/etc/asound.conf -v /path_to_assistant/assistant:/usr/share/snips/assistant --log-driver none --device /dev/snd --device /dev/snd/seq snipsdocker/platform:latest 

Sadly the generated trained_assistant.json doesn’t seem correct and there are “missing files” in the custom_asr folder.

Here’s my output:

2019-05-03 23:13:28,684 CRIT Supervisor running as root (no user in config file)
2019-05-03 23:13:28,688 INFO supervisord started with pid 54
2019-05-03 23:13:29,690 INFO spawned: ‘snips-tts’ with pid 57
2019-05-03 23:13:29,691 INFO spawned: ‘snips-dialogue’ with pid 58
2019-05-03 23:13:29,692 INFO spawned: ‘snips-asr’ with pid 59
2019-05-03 23:13:29,694 INFO spawned: ‘snips-analytics’ with pid 60
2019-05-03 23:13:29,695 INFO spawned: ‘snips-hotword’ with pid 61
2019-05-03 23:13:29,697 INFO spawned: ‘snips-audio-server’ with pid 62
2019-05-03 23:13:29,698 INFO spawned: ‘snips-queries’ with pid 63
INFO:hermes_mqtt: Connecting to MQTT broker at address localhost:1883
INFO:hermes_mqtt: Connecting to MQTT broker at address localhost:1883
INFO:rumqtt::connection: $$$ Connected to broker
INFO:rumqtt::connection: $$$ Connected to broker
INFO:snips_dialogue_hermes: Loading the configuration file
INFO:snips_dialogue_lib::config: Loading language en
INFO:snips_dialogue_hermes : Starting…
INFO:hermes_mqtt: Connecting to MQTT broker at address localhost:1883
INFO:rumqtt::connection: $$$ Connected to broker
INFO:snips_analytics_hermes: Idle
INFO:hermes_mqtt: Connecting to MQTT broker at address localhost:1883
INFO:rumqtt::connection: $$$ Connected to broker
INFO:queries_hermes : loading model at path “/usr/share/snips/assistant”
Error: Unable to read file "/usr/share/snips/assistant/trained_assistant.json"
Caused by: missing field model at line 149 column 1

2019-05-03 23:13:29,919 INFO exited: snips-queries (exit status 1; not expected)
INFO:snips_asr: Using model from /usr/share/snips/assistant/custom_asr
ERROR:snips_asr: Error: Missing files in “/usr/share/snips/assistant/custom_asr”

2019-05-03 23:13:29,992 INFO exited: snips-asr (exit status 1; not expected)

Is there some extra step required when creating an assistant? I thought the ASR model is generated when I download the assistant?

Also related: Error while parsing trained_assistant: missing field language

sounds like either the docker files are an older version and do not understand a newer assistant file
or the assistant is an older assistant and the docker files are newer and expect a compatible assistant

im not a docker fan, and im not sure how to work with files inside the docker image, but are you able to find out what version the snips-nlu snips-asr are?

Also can you in future use triple ` to format your outputs so its easier to read i the forum

I can help for the docker setup, but I would need to get my hand on the original dockerfile, Is there a repo?