J1nx

YOU CAN DO IT CHEAPER YOURSELF.
  • Home
  • Articles
    • [DiY] Home (Personal AI) Assistant – BLOG series
    • [DEV] MycroftOS – A bare minimal OS based on Buildroot
  • Projects
    • [DIY] Home (Personal A.I.) Assistant – Project Page
    • [HACK] Installing HassOS on the Homey
    • [DEV] MycroftOS – Buildroot OS for Mycroft A.I.
  • Patreon
  • Contact
  • Home
  • Articles
  • ICT Matters
  • ARM
  • ReSpeaker 4-Mic Array HAT Mycroft A.I. Skill

Blog

Sunday, 15 December 2019 / Published in ARM, DIY, Embedded, ICT Matters, MyCroft A.I., Smart Speaker

ReSpeaker 4-Mic Array HAT Mycroft A.I. Skill

A while ago I created a Mycroft A.I. skill for the ReSpeaker 4-Mic array HAT. It was originally only published on their skill-feedback section, however since I pushed a couple of changes a few days ago and I am not able to test it myself because of a possible hardware failure, I thought I share it here as well. Perhaps someone can pick it up, test, tweak, adjust, etc.

With the PR from the user “tgru”, which solves a stupid typo mistake, he confirms the skill does now work. The default LED pattern is the one mimicking Google. There is also a Alexa pattern. withing the library, however switching to it and the creation of a Mycroft BLUE pattern is on the ToDo list for the skill. Anyhow, here it goes…

ReSpeaker 4-Mic Array HAT Mycroft A.I. Skill.

This skill is to enable and control the Seeed – ReSpeaker 4-Mic Array for Raspberry Pi. ReSpeaker 4-Mic Array for Raspberry Pi is a quad-microphone expansion board for Raspberry Pi designed for AI and voice applications and provides a super cool LED ring, which contains 12 APA102 programable LEDs.

DISCLAIMER: At the moment this is NOT tested by me (as of yet), but as multiple people asked for a ReSpeaker 4-Mic Array HAT skill in the past, already created this topic to open the dialogue and possible feedback / testing.

CREDITS: ALL credits go to @Dominik as he created the almost exact same skill for the ReSpeaker Core V2. I only changed some small code to flip the library used (pixel-ring) to use the 4-Mic Array instead.

How to install respeaker-4mic-hat-skill

SSH into your Mycroft, then;

mycroft-msm install https://github.com/j1nx/respeaker-4mic-hat-skill.git

Or when you already have the .VENV activated or run MycroftOS;

msm install https://github.com/j1nx/respeaker-4mic-hat-skill.git

In case the requirements are not installed automatically you must perform the following;

mycroft-pip install pixel-ring gpiozero

Or again when you have the .VENV activated;

pip install pixel-ring gpiozero

Or running MycroftOS;

sudo pip install pixel-ring gpiozero

Turn on SPI on the Raspberry Pi
To make sure the RPi can control the LEDs, you need to enable SPI;

For Raspbian based systems (Picroft)

sudo raspi-config<br>
  Go to “Interfacing Options”<br>
  Go to “SPI”<br>
  Enable SPI<br>
Exit raspi-config<br>
reboot

Manually Edit the file config.txt on the boot partition of your Raspberry Pi Make sure the following content is there;

dtparam=spi=on

The user running Mycroft need to have permission to access the gpio. If you run MycroftOS this is already been taken care of. If you run pPiCroft or any other distro you most likely need one of the following commands

sudo usermod -g gpio mycroft

sudo usermod -g gpio pi

For good practice I would reboot the device, just in case. And that should be it. The four google color type of LED’s should light up when the wake word is picked up. The four LED’s will spin, giving you the answer.


Do you like what you just read? Keep me going by donating on Paypal or become a Patron.


BE AMONG THE FIRST..
I agree to have my personal information transfered to MailChimp ( more information )
Be among the first to get access to all the latest information, tutorials and how-to's by joining the newsletter email list.
We hate spam. Your email address will not be sold or shared with anyone else.

Share this:

  • Click to share on Facebook (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • Click to share on WhatsApp (Opens in new window)
  • Click to share on Telegram (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Reddit (Opens in new window)
  • Click to share on Tumblr (Opens in new window)
  • Click to share on Pinterest (Opens in new window)
  • Click to share on Skype (Opens in new window)
  • Click to email a link to a friend (Opens in new window)
Tagged under: MyCroft A.I., Skills, Smart Speaker

What you can read next

MyCroft AI – Open Source Voice Assistant
Compiling WPE Webkit for the RaspberryPi
[DiY] Home (Personal AI) Assistant (HASS / GA / Alexa / MyCroft) – PART 1

9 Comments to “ ReSpeaker 4-Mic Array HAT Mycroft A.I. Skill”

  1. quietranger says :Reply
    31 January 2020 at 21:54

    Hi Peter! I am not able to get the Respeaker 4-Mic to even pass the basic sound test after installation. Are you aware of any blog/post/forum where detailed diagnostic was done so I could try to repeat and find out what is going wrong on my side? Thanks, JJ

    1. Peter Steenbergen says :Reply
      31 January 2020 at 21:56

      Which OS are you using? And could you post the outcome of the command; “uname -a”?

  2. Hunter (@HunterKingNOLA) says :Reply
    20 May 2020 at 23:20

    FYI just did this in Picroft and worked after the raspi-config. pi user already had gpio. Anyway, thanks for this!

  3. sowkai says :Reply
    16 July 2020 at 22:49

    How do you enable Alexa style lighting?

    1. Peter Steenbergen says :Reply
      20 July 2020 at 08:16

      With the latest version of the skill, Alexa is already enabled by default.

  4. NeatBasis says :Reply
    8 January 2021 at 18:34

    I can confirm this works with ReSpeaker 6-Mic Circular Array Kit as well

    1. Peter Steenbergen says :Reply
      11 January 2021 at 15:34

      Perfect! Thanks for the confirmation.

  5. matt says :Reply
    25 March 2021 at 12:20

    Great skill, thank you! I have just changed hat to the geekworm raspi voice hat which also has 12 LEDs – I wonder if you could advise how this could be compatible?

    1. Peter Steenbergen says :Reply
      25 March 2021 at 20:23

      Do you have a link to some more information?

Leave a Reply Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Recent Posts

  • [DEV] MycroftOS – A bare minimal OS based on Buildroot – PART 5

    It has been a while once again since the last u...
  • [Update] Busy, busy, busy….

    Holy crap ! The last blog post here is already ...
  • [DEV] MycroftOS – A bare minimal OS based on Buildroot – PART 4

    A first (very) early alpha release is ready. St...
  • [Update] My plans for 2019

    It has (again, yeah I know) been a while since ...
  • [HACK] Installing HassOS on the Athom Home – PART 1

    Perhaps it is about time to give a little updat...

Categories

  • ARM
  • DIY
  • Embedded
  • Home Assistance
  • Home Automation
  • Homey
  • ICT Matters
  • IoT
  • Linux
  • MyCroft A.I.
  • Project 1
  • Project 2
  • Project 3
  • Smart Speaker
  • Website News

Tags

A.I. Adapt Alexa ARM Bootsplash Buildroot chroot crosscompiling DeepSpeech DIY Embedded Google Assistance Google Home HASS HDMI Home Assistance Home Automation Homey ICT-Matters IoT Kodi Linux Mimic Multimedia MyCroft A.I. News Padatious Precise Raspberry Pi Raspbian ReSpeaker RPi Skills Smart Speaker sourcecode Webkit WPE

PETER STEENBERGEN

Born on the 25th of July 1978 in Leiderdorp - The Netherlands. A "geek" who is working 15+ years in the Oil & Gas industry. As a result of that, visited many parts of the world. His strong affinity with ICT matters has earned him certain online recognition and got him involved in multiple interesting projects. Was a co-founder of "The Little Black Box", a multimedia streamer based on XBMC / Kodi. A device that was brought available to big retail shops in the Netherlands such as MediaMarkt, BCC and many big online webshops as bol.com as an end result.

WEBSITE

  • Articles
  • Projects
  • Patreon
  • Our Policy
  • Contact

FOLLOW

  • Facebook
  • MeWe
  • Patreon
  • Github
  • Youtube

© 2018 J1nx | All rights reserved.

TOP