You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/_components/snips.markdown
+16-59Lines changed: 16 additions & 59 deletions
Original file line number
Diff line number
Diff line change
@@ -2,14 +2,14 @@
2
2
layout: page
3
3
title: "Snips"
4
4
description: "Instructions on how to integrate Snips within Home Assistant."
5
-
date: 2017-06-22 12:00
5
+
date: 2018-03-22 12:00
6
6
sidebar: true
7
7
comments: false
8
8
sharing: true
9
9
footer: true
10
10
logo: snips.png
11
11
ha_category: Voice
12
-
ha_release: 0.48
12
+
ha_release: 0.65
13
13
---
14
14
15
15
The [Snips Voice Platform](https://www.snips.ai) allows users to add powerful voice assistants to their Raspberry Pi devices without compromising on privacy. It runs 100% on-device, and does not require an internet connection. It features Hotword Detection, Automatic Speech Recognition (ASR), Natural Language Understanding (NLU) and Dialog Management.
@@ -27,22 +27,15 @@ Snips takes voice or text as input and produces *intents* as output, which are e
27
27
28
28
### {% linkable_title Installation %}
29
29
30
-
The Snips platform can be installed via the Snips APT/Debian repository. If you prefer to install the platform using the Docker distribution, check out our [Docker Installation Guide](https://github.com/snipsco/snips-platform-documentation/wiki/6.--Miscellaneous#using-docker).
30
+
All of the Snips installation documentation can be found at [
Head over to the [Snips Console](https://console.snips.ai) to create your assistant. Launch the training and download by clicking on the "Download Assistant" button.
54
47
55
-
The next step is to get the assistant to work on your device. Unzip and copy the assistant folder that you downloaded from the web console to the path. Assuming your downloaded assistant folder is on your desktop, just run:
48
+
The next step is to get the assistant to work on your device. Assuming your downloaded assistant folder is on your desktop (your assistant name will vary), just run:
@@ -86,7 +65,7 @@ Make sure that a microphone is plugged to the Raspberry Pi. If you are having tr
86
65
Start the Snips Voice Platform by starting the `snips-*` services:
87
66
88
67
```bash
89
-
$ sudo systemctl start "snips-*"
68
+
$ sudo systemctl start 'snips-*'
90
69
```
91
70
92
71
Snips is now ready to take voice commands from the microphone. To trigger the listening, simply say
@@ -95,7 +74,7 @@ Snips is now ready to take voice commands from the microphone. To trigger the li
95
74
96
75
followed by a command, e.g.
97
76
98
-
> Set the lights to green in the living room
77
+
> Turn on the living room lights
99
78
100
79
As the Snips Platform parses this query into an intent, it will be published on MQTT, on the `hermes/intent/<intentName>` topic. The Snips Home Assistant component subscribes to this topic, and handles the intent according to the rules defined in `configuration.yaml`, as explained below.
101
80
@@ -115,12 +94,12 @@ mqtt:
115
94
port: MQTT_BROKER_PORT
116
95
```
117
96
118
-
By default, Snips runs an MQTT broker on port 9898. So if we wish to use this broker, and if Snips and Home Assistant run on the same device, the entry will look as follows:
97
+
By default, Snips runs a mosquitto broker on port 1883. So if we wish to use this broker, and if Snips and Home Assistant run on the same device, the entry will look as follows:
119
98
120
99
```yaml
121
100
mqtt:
122
101
broker: 127.0.0.1
123
-
port: 9898
102
+
port: 1883
124
103
```
125
104
126
105
Alternatively, MQTT can be configured to bridge messages between servers if using a custom MQTT broker such as [mosquitto](https://mosquitto.org/).
@@ -134,38 +113,16 @@ In Home Assistant, we trigger actions based on intents produced by Snips using t
In the `data_template` block, we have access to special variables, corresponding to the slot names for the intent. In the present case, the `ActivateLightColor` has two slots, `objectLocation` and `objectColor`.
147
125
148
-
### {% linkable_title Special slots %}
149
-
150
-
In the above example, the slots are plain strings. However, when more complex types are used, such as dates or time ranges, they will be transformed to rich Python objects, for example:
You can send TTS notifications to Snips using the snips.say and snips.say_action services. Say_action starts a session and waits for user response, "Would you like me to close the garage door?", "Yes, close the garage door".
0 commit comments