git clone git@github.com:egorsmkv/microphone-recorder.git
cd microphone-recorder
brew install portaudio
pipenv install
pipenv shell
pip install --global-option='build_ext' --global-option='-I/usr/local/include' --global-option='-L/usr/local/lib' pyaudio
python record.py
Next you can open the recording.wav
using a media player.