sudo apt-get install portaudio19-dev python-pyaudio
#in ubuntu 20.04 LTS #for python3 sudo apt-get install portaudio19-dev python3-pyaudio