# Google AIY Voicehat

#### *google-aiy-voicehat-skill.kalyaninagaraj*

### Description:

This Mycroft skill roughly follows @andlo's code outline for the excellent [picroft-google-aiy-voicekit](https://github.com/andlo/picroft-google-aiy-voicekit-skill) skill. It provides the same functionality but uses the gpiozero library instead of RPi.GPIO to operate the button-LED combo connected to the voicehat.

Additionally, an extended button press (> 7 seconds) forces a Linux shutdown.

The idea is to test gpiozero's ability to handle switch bounce when polling for a button press; in my experience, RPi.GPIO doesn't register hold times too well.

#### Platform:

![Mark I](https://500835181-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LzX1y2oL49APvqHoV5o%2Fuploads%2Fgit-blob-20518efa3a75671db56c323c5962b4108102367b%2Fmark-1-icon.png?alt=media) ![Mark II](https://500835181-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LzX1y2oL49APvqHoV5o%2Fuploads%2Fgit-blob-72e32b84335e1f575f6e5b7b684320acc72e799f%2Fmark-2-icon.png?alt=media) ![Picroft](https://500835181-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LzX1y2oL49APvqHoV5o%2Fuploads%2Fgit-blob-b7dc7493983981386b73158927c1ddf91597de7a%2Fpicroft-icon.png?alt=media) ![plasmoid](https://500835181-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LzX1y2oL49APvqHoV5o%2Fuploads%2Fgit-blob-e517091d0124a9f790e778e3219fa05a3f71d7f0%2Fkde.png?alt=media)

### Installation:

{% hint style="warning" %}
This skill is not aproved by Mycroft skill tester.
{% endhint %}

{% tabs %}
{% tab title="Install by mycroft-msm" %}
`mycroft-msm install https://github.com/kalyaninagaraj/google-aiy-voicehat-skill`
{% endtab %}
{% endtabs %}

### Summary:

**Github:** <https://github.com/kalyaninagaraj/google-aiy-voicehat-skill>\
**Owner:** [@kalyaninagaraj](https://github.com/kalyaninagaraj)\
**Created:** 2020 Jan 02 10:53:30 UTC **Last updated:** 2020 Jan 03 20:14:10 UTC\
**License:** GNU General Public License v3.0

**Categories:** \[ IoT ]\
**Tags:** #Mycroft #AI #Google #AIY #voicehat
