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
Install respeaker-4mic-hat-skill by …
- SSH into your Mycroft, then
- mycroft-msm install GitHub - j1nx/respeaker-4mic-hat-skill: Mycroft A.I. unofficial - ReSpeaker 4Mic HAT Skill.
In case the requirements are not installed automatically you must perform the following;
- mycroft-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
- Go to “Interfacing Options”
- Go to “SPI”
- Enable SPI
- Exit raspi-config
- ? 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
Ideas & Additions for later
Finish / Start enabling and disabling the pixel ring
- “Hey Mycroft”, “Enable pixel ring”
- “Hey Mycroft”, “Disable pixel ring”
Change LED mode
- “Hey Mycroft”, “Set pixel ring to Alexa”
- “Hey Mycroft”, “Set pixel ring to Google”
Add Mycroft LED mode
- “Hey Mycroft”, “Set pixel ring to Mycroft”
DOA (Direction Of Arrival) of keyword
Where feedback should be directed a
Feedback on the skill should be provided through:
- replying to this thread
- Issue on Github
- Mycroft Chat in channel ~skills