Skip to main content

Configuring audio

Note
  • Non-Raspberry Pi users and users using other setups, choose the USB-DAC option.
  • The speaker-test command is used to initialize alsa, so please do not skip that.
  • AIY-HAT users, please reboot the Pi at places mentioned, else it will lead to audio and taskbar issues.
  • Those using any other DACs or HATs install the cards as per the manufacturer’s guide and then you can use the USB-DAC config file after changing the hardware ids.
  • Respeaker users, please do not use their official setup for this project.

Choose the audio configuration according to your setup

Non-Raspbian users install Alsa first:
sudo apt-get install alsa-utils

USB DAC or USB Sound Card Users

Run the following in the terminal:
sudo apt-get update
cd /home/${USER}/
sudo chmod +x ./GassistPi/audio-drivers/USB-DAC/scripts/install-usb-dac.sh
sudo ./GassistPi/audio-drivers/USB-DAC/scripts/install-usb-dac.sh
speaker-test

AIY-HAT Users

Run the following in the terminal:
sudo apt-get update
cd /home/${USER}/
sudo chmod +x ./GassistPi/audio-drivers/AIY-HAT/scripts/configure-driver.sh
sudo ./GassistPi/audio-drivers/AIY-HAT/scripts/configure-driver.sh
sudo reboot
cd /home/${USER}/
sudo chmod +x ./GassistPi/audio-drivers/AIY-HAT/scripts/install-alsa-config.sh
sudo ./GassistPi/audio-drivers/AIY-HAT/scripts/install-alsa-config.sh
speaker-test

USB Mic and HDMI Users

Run the following in the terminal:
sudo apt-get update
cd /home/${USER}/
sudo chmod +x ./GassistPi/audio-drivers/USB-MIC-HDMI/scripts/configure.sh
sudo ./GassistPi/audio-drivers/USB-MIC-HDMI/scripts/configure.sh
sudo reboot
cd /home/${USER}/
sudo chmod +x ./GassistPi/audio-drivers/USB-MIC-HDMI/scripts/install-usb-mic-hdmi.sh
sudo ./GassistPi/audio-drivers/USB-MIC-HDMI/scripts/install-usb-mic-hdmi.sh
speaker-test

USB Mic and Audio Jack Users

Run the following in the terminal:
sudo apt-get update
cd /home/${USER}/
sudo chmod +x ./GassistPi/audio-drivers/USB-MIC-JACK/scripts/usb-mic-onboard-jack.sh
sudo ./GassistPi/audio-drivers/USB-MIC-JACK/scripts/usb-mic-onboard-jack.sh
speaker-test

Custom Voice HAT Users

Run the following in the terminal:
sudo apt-get update
cd /home/${USER}/
sudo chmod +x ./GassistPi/audio-drivers/CUSTOM-VOICE-HAT/scripts/install-i2s.sh
sudo ./GassistPi/audio-drivers/CUSTOM-VOICE-HAT/scripts/install-i2s.sh
sudo reboot
cd /home/${USER}/
sudo chmod +x ./GassistPi/audio-drivers/CUSTOM-VOICE-HAT/scripts/custom-voice-hat.sh
sudo ./GassistPi/audio-drivers/CUSTOM-VOICE-HAT/scripts/custom-voice-hat.sh
speaker-test

Respeaker HAT Users

Run the following in the terminal:
sudo apt-get update
cd /home/${USER}/
git clone https://github.com/shivasiddharth/seeed-voicecard
cd ./seeed-voicecard/
sudo ./install.sh
sudo reboot
speaker-test

Comments