Install pyaudio on Ubuntu pip install python3-pyaudio sudo apt-get install portaudio19-dev python-all-dev pip install pyaudio