Mycroft with Respeaker 2-Mic

Hey I’ve been screwing around with installing mycroft on raspberry pi with a 2 mic hat and this is what I have come up with in the past month or so since I’ve started trying in my free time:

How to install Mycroft with a ReSpeaker 2-mic hat on a Raspberry Pi 3B+

  1. Install image from: https://drive.google.com/uc?id=1FdPUZhgoo_J8-MF4Z-xBl8nnf_6fJbrf&export=download

  2. Format card with SD Card Formatter

  3. Use balenaEtcher to flash image to sd Card

  4. Boot up raspberry pi with power to both hat and board

  5. Let it go through the first boot process

  6. It will ask you after the first boot process if you want to go through the guided install or to just go straight to the command line. Choose to go straight to the command line.

  7. From note (B), follow steps 2.1 and 2.2.

  8. Run pactl list sinks and pactl list sources and note what number corresponds with the Description: seeed-2mic-voicecard Analog Stereo for the sources and sinks command (should be 1 and 2 respectively).

  9. Run pactl set-default-sink $sink_card_number and pactl set-default-source $source_card_number where $sink_card_number and $source_card_number are replaced from the numbers you took note of in step 7 (again, should be 1 and 2 respectively).

  10. Run sudo reboot for good measure.

  11. Run sudo nano /etc/mycroft/mycroft.conf and edit the file to have the following code:

  12. “Play_wav_cmdline”: “paplay %1”,

  13. Confirm functionality by running ./mycroft-core/start-mycroft.sh audiotest -l from your home directory. When it says “DONE RECORDING. PLAYING BACK…”, let it try to run until it fails, do not try to control+c out of it. Sometimes it takes a few seconds to start the Daemon(?).

  14. Pair device

Notes:

  1. https://mycroft-ai.gitbook.io/docs/using-mycroft-ai/get-mycroft/picroft
  2. http://wiki.seeedstudio.com/ReSpeaker_2_Mics_Pi_HAT/
  3. https://stackoverflow.com/questions/42141004/qt-multimedia-cannot-find-lpulse