Skip to content

Instantly share code, notes, and snippets.

@yoelrc88
Last active July 7, 2021 11:44
Show Gist options
  • Save yoelrc88/4df958979c1c2bd86f5d5c2b4c14d343 to your computer and use it in GitHub Desktop.
Save yoelrc88/4df958979c1c2bd86f5d5c2b4c14d343 to your computer and use it in GitHub Desktop.
MATRIX Voice : Installing MATRIX Software and running HAL demos
##########
# PART 1 #
##########
# Add repo and key
curl https://apt.matrix.one/doc/apt-key.gpg | sudo apt-key add -
echo "deb https://apt.matrix.one/raspbian $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/matrixlabs.list
# Update packages and install
sudo apt-get update
sudo apt-get upgrade
# Install matrix software
sudo apt-get install matrixio-creator-init
# Reboot
sudo reboot
##########
# PART 2 #
##########
# Installing dependencies for HAL
sudo apt-get install git cmake g++ libfftw3-dev wiringpi libgflags-dev
# Clonning HAL
git clone https://github.com/matrix-io/matrix-creator-hal.git
# Building HAL demos
cd matrix-creator-hal/
mkdir build
cd build/
cmake ..
make -j4
# Running arc_demo (To stop running the demo press Ctrl + C)
cd demos/
./arc_demo
# Running mic_energy (To stop running the demo press Ctrl + C)
./mic_energy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment