Picroft 2018-09-12 and the Google AIY Voice Hat

Great to hear you are going :slight_smile: The strange thing is I dossnt see same issues when I reflash. OK I havnt reflashed for a monts or so. Yo can open a issue on the gitrepo that you see that module fasteners are missing.
I am just not ure if that is the AIY skill that causes this though. But I will look into it as soon as I reflash again.

Could anybody get it to work in the last weeks? Have tried the methods given above with no luck …

Hi Olaf.

By no luck - what do you mean. Any hints of what isnt working? Did the setupwizard install the aiy drivers?

What does aplay -l shows?
It should show something like:

**** List of PLAYBACK Hardware Devices ****
card 0: sndrpigooglevoi [snd_rpi_googlevoicehat_soundcar], device 0: Google voiceHAT SoundCard HiFi voicehat-hifi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Hi @andlo,
I played around a bit today and this is what I have right now, by doing this:

(1) I use a vanilla 9-12 stable image on a v1 board

(2) When it boots I Ctrl-C at the Picroft image

(3) I add my Wifi in /etc/wpa…, delete auto_run.sh and reboot

sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
network={
ssid=“MyNetworkSSID”
psk=“mypassword”
}
Ctrl + X and then Y

(4) And download/replace your 2 scripts from stretch and reboot

wget https://raw.githubusercontent.com/andlo/enclosure-picroft/stretch/home/pi/auto_run.sh
wget https://raw.githubusercontent.com/andlo/enclosure-picroft/stretch/home/pi/AIY-asound.conf

(5) Guided setup with Y, 4 for AIY and wait around 10 min for install

(6) Type R for reboot as we just installed AIY

(7) N command line (no fasteners)

(8) Updated with

cd mycroft-core
git pull
msm update

I am new to mycroft, so I am a bit at a loss as what to do now?

  • alsamixer shows that sound is 0, but I can change that with the hints from above.
  • aplay -l shows exactly your given output
  • mycroft-cli-client shows fasteners error (pip install fasteners fixes it), then starts and shows the attached output log.
  • When I log in, it says I should update via ./dev_setup.sh but that didn’t work either

Looks like I am missing something or what else can I debug?

Mvh
Olaf

GREAT - you done more than needed I think but that is OK.
As you did a git pull you have to run dev_setup.sh as stated. But it is a bit misleading that it says ./dev_setup.sh. That is right when you are in the mycroft-core directory.

So cd /home/pi/mycroft-core and then ./dev_setup.sh or simple just run

~/mycroft-core/dev_setup.sh

`But I think the 9-12 can install the AIY right from the setup wizard. Same whith wifi.

Thanks, I did run mycroft-core/dev_setup.sh but then I get the classic

protobuf-3.6.1-cp35-cp35m-linux_armv6l.whl is not a supported wheel on this platform.

Not sure what to do about it as pip install protobuf does not change it

Puha, that was tricky. After trying a lot, this will give you a working Picroft + AIY (without wheels, but that is only for installs):

  1. Vanilla 2018-09-12.img file on SD card and boot

  2. At Mycroft logo do Ctrl-C

  3. Add Wifi in /etc/wpa… and reboot

sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

Insert following text

network={
ssid=“MyNetworkSSID”
psk=“mypassword”
}

to get out

Ctrl + X and then Y and Enter
  1. Ctrl-C at startup and download and run new install file from

wget https://raw.githubusercontent.com/andlo/picroft-google-aiy-voicekit-skill/master/install_AIY.sh
chmod +x install_AIY.sh
./install_AIY.sh (this takes 15 min)
sudo reboot5

  1. Wait for startup then run ./mycroft-core/dev_setup.sh as long as it tells you and reboot afterwards, eventually it starts into the cli and starts intializing. This takes a while, you should see output and you are asked to register at home.mycroft.ai, do that and wait a while until it stops loading skills.

  2. Ctrl-C and install the AIY skill (you can do that in a different ssh window) and reboot

mycroft-msm install GitHub - andlo/picroft-google-aiy-voicekit-skill: Enables google aiy voicehat button

  1. Sound is 0, so I set it with alsamixer once it booted, will change that later.

@andlo, thanks for providing this skill.

Post if you have any questions installing the current version

4 Likes

Thanks for the guide worked very well for me on a Raspi3B + AIY Hat.

For the sound added the following to audio_setup.sh

amixer set Master 75% # set volume to a reasonable level
2 Likes

@retrorich75 Thanks for that sound bit

For sound levels, not sure if you tried this already and it didn’t work, but you can set default a default level for the Volume Skill via mycroft.conf. There’s a short example with the required entries in our docs.

For sound level I would recomend the auto volume skill. It will set the level acording to the suroundings and low, middel and high level can be set on home.mycroft.ai.

https://market.mycroft.ai/skill/auto-volume

@andlo you’re my only hope it seems as every forum post I find about this has you in it or recommend! I got my picroft working tonight with the v1 aiy kit. But after a reboot your auto-volume skill flipped to red and I can’t get sound from the box at all, tried reinstalling the skill as well. Any ideas?

Check the logs (in /var/logs/mycroft/skills.log) and see if you can find a related error message.

@baconator

10:57:58.119 - msm.skill_entry - INFO - Downloading skill: https://github.com/andlo/auto-volume-skill
10:57:59.537 - msm.skill_entry - INFO - Installing system requirements...
10:57:59.618 - msm.skill_entry - INFO - Successfully installed auto-volume
10:58:01.704 - mycroft.skills.core:load_skill:121 - INFO - ATTEMPTING TO LOAD SKILL: auto-volume.andlo with ID auto-volume.andlo
10:58:03.253 - mycroft.skills.core:load_skill:168 - ERROR - Failed to load skill: auto-volume.andlo
Traceback (most recent call last):
File "/home/pi/mycroft-core/mycroft/skills/core.py", line 148, in load_skill
raise e
File "/home/pi/mycroft-core/mycroft/skills/core.py", line 144, in load_skill
skill.initialize()
File "/opt/mycroft/skills/auto-volume.andlo/__init__.py", line 59, in initialize
self.settings['Highest messurement'] = meter_thresh

Here’s the last chunk of the skills log after I install and try and run it.

Did you follow these steps exactly?

Quick update for people reading this.

Use the new picroft image 2019-07-20 which works flawlessly when doing a fresh install.

Download it here

1 Like

I tried Picroft_Buster-Keaton_2020-01-10.img just now. It works straight, no special things to do. Just answer the questions, take the instyalling on AIY v1 option. After getting it up, install the picroft google AIY voicekit skill. That is it! So glad this is working smoothly now. I frankly gave up after days of reading and configurations getting it to work, and then having it fail again after an update three weeks later. I decided to leave it alone for awhile - now 14 months later - it is working well.

Thanks everyone.

3 Likes

I also played around for a while with an earlier Picroft image. Voice didn’t work however, so I left it alone for a while. Yesterday I installed the latest Picroft image, looks like almost anything works. All but the button and led. I wonder should I make a fresh install or does anyone have a clue of how to make the button work.

thanx,
Wouter

1 Like

If you install the picroft-google-aiy-voicekit-skill then button and led will be used and work.

The skill is in the market.

1 Like

Thank you, that did the trick.

1 Like