Perform the following commands (Ubuntu):
sudo apt install portaudio19-dev libpulse-dev espeak-ng pocketsphinx swig
pip install -r requirements.txt
If there are issues with popping sounds check https://askubuntu.com/questions/1230833/annoying-click-popping-sound-on-ubuntu-20-04