3 ms·
Cool, I have been experimenting with Google's VoiceHAT board, and the Picroft open source voice control from Mycroft which runs on Pi, both of which are fairly
by jhewitt123 9y ago
Cool, I have been experimenting with Google's VoiceHAT board, and the Picroft open source voice control from Mycroft which runs on Pi, both of which are fairly straightforward to set up to control real world devices. How does one do this in Snips?
- oulipo 9y agoYou can code any handler you want using your favorite language, the output of the Natural Language Understanding is sent on a MQTT bus you need to add a MQTT listener in your code (there are many libraries in many languages), you can see an example on the documentation https://github.com/snipsco/snips-platform-documentation/wiki/2.-Running-your-first-end-to-end-assistant https://github.com/snipsco/snips-platform-documentation/wiki...
- jhewitt123 9y agoNot very familiar with MQTTother then that a few micro boards I use like the ESP8266 can comeready for it. I mean just set up a voice key word to toggle a pin on the raspberry Pi to control a relay. With the VoiceHAT you just setup a word in a Python program, simple. In Picroft, you do a similar thing. Here I toggle an LED with the VoiceHAT; for example, https://plus.google.com/115226830543207487087 https://plus.google.com/115226830543207487087
- oulipo 9y agoIt is the same with our platform, you can bind to the "hotword detected" message and run the code you want
- jhewitt123 9y agoI'd love to try it out, just don;t know how to doit honesty, nor how to add an MQTT handlerfor that matter. I can install and run programs on the Pi, and wire relays to pins, that's about it.
- oulipo 9y agoTake a look at https://github.com/snipsco/snips-platform-documentation/tree/master/python https://github.com/snipsco/snips-platform-documentation/tree..., it is as simple as pip install paho-mqtt and writing a dozen line of Python!
- wiml 9y agoMQTT is a simple protocol for publishing/subscribing to events (over a network if you like). The Python clients on https://github.com/mqtt/mqtt.github.io/wiki/libraries https://github.com/mqtt/mqtt.github.io/wiki/libraries look like they all have examples of a simple "run this python function whenever XYZ message happens" program.
- JshWright 9y agoI already run an MQTT broker for home automation stuff. How hard would it be to tell Snips to talk to that?
- oulipo 9y agoIt is actually configurable, and as the platform is open and extensible it won't be too hard. For now you can have your broker send some messages on our MQTT bus, but later we will make this fully configurable
- rcarmo 9y agoI've been trying to get a VoiceHAT. Any pointers on buying one without the magazine?
- jhewitt123 9y agoThat is a tough one. It was difficult for me to even get the outsput schematic on the voice HAT to control hardware. Working with a guy named Shabazz eventually figured out a presumptive mosFET circuit google must be using. The best teardown guide I have seen is here: http://hackaday.com/2017/05/30/diy-google-aiy/ http://hackaday.com/2017/05/30/diy-google-aiy/ with some more history on the outputs here: https://www.element14.com/community/community/raspberry-pi/blog/2017/05/04/googles-alexa-like-pi-aiy-kit-mini-teardown#comment-107295 https://www.element14.com/community/community/raspberry-pi/b...