Will the Matrix Voice microphone array be supported?

You’re welcome to have a look at the existing Picroft script and see how the install scripts are done for existing hardware, and have a go at creating one for Matrix Voice.

The fine folks at the matrix community put this guide together now that mycroft is on raspbian stretch https://community.matrix.one/t/matrix-voice-running-mycroft-ai/2033 or https://www.hackster.io/matrix-labs/matrix-devices-running-mycroft-ai-ee9d4a

1 Like

We also have a PR pending to automatically support this on picroft https://github.com/MycroftAI/enclosure-picroft/pull/84

2 Likes

Thank you! I’m am very excited.

1 Like

This PR is now live!! Let us know how you go :slight_smile:

I want to give it a try. After burning current image from https://mycroft.ai/to/picroft-image and burning to sd card the initial setup is starting.
The choice for matrix voice is missing. As seen in the PR there should option number 4 for matrix voice

echo " 4) Matrix Voice HAT.")

But this option is missing.
The PR seems to be in the “stretch” branch, but not in the “master” branch. How can i be sure to use the right version?

Do i have to install the matrix voice kernel modules manually after the wizard or will this be done by mycroft setup (Picroft / Mycroft.AI with MATRIX Voice).

Thorsten

I noticed this and I’m curious to hear as well. Given that it’s supposed to reboot three times during the wizard one might assume that it is installing kernel modules but I’m not sure.

Although I’m a bit curious where setup_matrix_voice.sh is downloaded from as I don’t see it in repository.

As far as I can tell that is correct - there isnt ant setup_matrix_voice.sh script, and it isnt beeing downloaded. But if looking for setup_matrix the installation starts arounf line 590 if the file setup_matrix exists.
Then the repos are added and packages installed and kernelmodules and pulseaudio.

That’s a good hint :slight_smile: .
Between lines 590 and 665 all required steps for a matrix voice installation seems to be done.

But i currently dont know how to choose option 4 for matrix voice during initial setup since this option is not provided. Maybe i should create the file “setup_matrix” during the initial configuration process manually and then skip the mic configuration.

Could you clarify?

Thank You

Happy new year 2019.

While waiting for @KathyReid to point us to the right direction i tried the following:

  • Writing official raspberry pi mycroft image to sd card
  • Canceling mycroft initial setup
  • Creating empty file /home/pi/setup_matrix
  • Replaced auto_run.sh with the one in “stretch” branch
  • Reboot

The initial setup starts installing the matrix modules, makes some reboots and everything looks good until it comes to the mic test when “Make some noise!” is prinited to the console. In this step the hole system stops working. No Keyboard reaction, etc. Powering off the raspberry pi is the only option.

This is really depressing.

Yes - That sounds depressing.

I cant advice or help as I dont have a Matrix.

what you did do sounds like a good idea, and replacing auto_run.sh was smart. As I understands auto_run.sh should download latest auto_run.sh.
Splacing the setup_matrix file do make the auto_run.sh run the installation f the matrix stuf, so what you did were a good idea aswell.

What you could try further is rebooting and on when auto_run.sh is tsrated choose skip, as you have (maybe) alreddy installed what is nessesary to use the matrix. Just a ques.

It isnt fun having a mycroft device that dsnt speak or listen :wink:

Unfortunately I don’t have a Matrix microphone here to test with either, so this is more of an educated guess;

  • The Picroft Stretch image is a base image. There have been hundreds of commits over and above this base image. These commits (to mycroft-core and enclosure-picroft) come down when the device updates - there should be an update.sh bash script in the Picroft root directory - if you run this script does it do an update?

  • If you run the command git log can you tell me which commit your Picroft is on? That way I can check for sure that the Matrix commit link to commit is pulled down.

  • Is there anything in the voice.log or audio.log which provides a clue about what’s happening?
    Link to information on logs

Hi.
After rebooting the raspberry pi yesterday it seems to work for the last day. That’s better than anything i archied in the past :slight_smile: .

→ Would you like to install picroft on this machine
For testing i choose “yes”. It’s doing a lot of steps and finishes with "mycroft-wipe saved [3000/3000]

I executed “git log” within “/home/pi/mycroft-core” which returns 8fe127bd5d583bb1294ade245929a61b3560c6fe from @steve.penrod on Dec 31 07:05:09 2018.

Whenever i reboot the raspberry sometimes the matrix voice works perfect and sometimes i get a system freeze while accessing the microphone.
Because i was confused by this behavior i checked in detail that my hardware setup fits the minimum requirements and it might be that …
… i am an idiot :scream:

Matrix says the raspberry pi has to use a power supply with 2.5A and i currently use a 2.0A power supply.
https://matrix-io.github.io/matrix-documentation/matrix-voice/device-setup/
This might be an explanation of the system crashes on accessing the mic :tired_face: .
I now order a 3A power supply and hope that the problems with the stability are gone.
Maybe that is not solving my issue but i think it was my fault - sorry for that!

2 Likes

Ah! I should have checked this with you too!

@Thorsten So what what your step by step your process to get this working?

I now power my raspberry with an 3A power supply. But that has not changed the situation. Sometimes it needs one or two reboots until the matrix voice mic seems to work. But then it stays functional. So this is okay for me right now to continue with my further mycroft experience.

Hi botacious

  1. Write the current image to a 16gb sd card
  2. Matrix voice is plugged to to my raspberry
  3. Power on with a >= 2.5A power supply
  4. Cancel mycroft initial setup wizard
  5. touch /home/pi/setup_matrix
  6. Replaced auto_run.sh with the one in “stretch” branch (https://github.com/MycroftAI/enclosure-picroft/blob/stretch/home/pi/auto_run.sh)
  7. Reboot
  8. Choosing number 4 (Matrix Voice HAT) in MyCroft initial setup as microphone
  9. Finishing the initial setup
  10. Reboot

If the mic is not recognized after boot up maybe wait 2 minutes and run “bash /home/pi/auto_run.sh” manually.

Hope that helps.

2 Likes

So with steps 5,6,7
rm auto_run.sh
wget “enclosure-picroft/home/pi/auto_run.sh at stretch · MycroftAI/enclosure-picroft · GitHub
chmod +x auto_run.sh

I get on reboot
./auto_run.sh: line 7: syntax error near unexpected token newline' ./auto_run.sh: line 7:

whats the point of…?

touch /home/pi/setup_matrix