-
1Clone the project onto the pi
git clone https://github.com/shivasiddharth/custom-voice-hat
-
2Turn on i2s support in /boot/config.txt with:
****Uncomment the following****
#dtparam=i2s=on #dtparam=i2c_arm=on #dtparam=spi=on #dtparam=audio=on
****Add the following new entry****
dtparam=i2c_vc=on
Save Exit and Reboot.
-
3Check for the Hats folder:
cd /proc/device-tree/
You will not find the HAT folder. this shows that the HAT has not been detected yet.
-
4Open a new terminal and change directory to eepromutils:
cd /home/pi/custom-voice-hat/eepromutils
-
5Make the EEPROM flasher executable and Flash the EEPROM with the eeprom file:
sudo chmod +x ./eepflash.sh sudo ./eepflash.sh -w -f=voicehat.eep -t=24c32
-
6Update raspberry pi kernels:
sudo apt-get update sudo apt-get install raspberrypi-kernel
-
7Reboot
sudo reboot
-
8Check if your HAT is recognized:
cd /proc/device-tree/
Now, you will have a HAT folder with HAT details.
-
9Install the audio configuration scripts
cd /home/pi/custom-voice-hat/audio-config/scripts/
#Make the scripts executable:
sudo chmod +x ./custom-voice-hat.sh sudo chmod +x ./install-i2s.sh
#Run the Executable scripts:
sudo ./custom-voice-hat.sh sudo ./install-i2s.sh
-
10Wire the mic and amp board on to the perma proto board as shown in the wiring diagram.
***CAUTION- Amplifier board should be powered using 5V and the Mics using 3.3v***
Install any voice assistant on Pi and enjoy...
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.