Skip to content

Trouble setting up Google AIY Voice Kit and solutions. #115

@ConorIA

Description

@ConorIA

I'm running Picroft on a Pi 3B. I built it following image_recipe.md. I ended up pulling down a buster image of Raspbian as it was the image linked to "latest".

I am using the Google AIY voicehat and I ran into some problems that I thought that I would share.

  1. The Google AIY DKMS module didn't want to build. It turns out there is an issue with the source code that prevents it from building on newer kernels, as outlined here: Error! Bad return status for module build on kernel: 4.19.42+ (armv6l) google/aiyprojects-raspbian#627. There are some manual changes that should fix the issue, but I couldn't get it to work. In the end, I managed to install using a patched .deb file linked to in the comments. Re-running the AIY setup stuff then seemed to work.

  2. The AIY-asound.conf file wasn't pulled in as part of the Mycroft install (I guess I pulled master). I copied it over manually, but was running into an error: amixer: Unable to find simple control 'Master',0. I managed to fix this by replacing the first line with options snd_rpi_googlemihat_soundcard index=0, which is slightly different from the code in AIY-asound.conf. (source)

And finally, this isn't specific to Picroft, but everytime I re-install picroft I have trouble with raspotify, so, in the interest of future me, I wonder whether the following can somehow be implemented:

  1. add the following to /home/pi/.config/pulse/default.pa.
load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1 auth-anonymous=1
  1. add the line default-server = 127.0.0.1 to /var/cache/raspotify/.config/pulse/client.conf.

If there is a more elegant way to address the above, I am open to it. I would be interested to know how Spotify is implemented on the Mark I.

Anyway, I am not sure if any of the above is known and has been fixed outside of master, but I thought I would share my experience FWIW.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions