Microphone is a small library that takes this Go PortAudio library and wraps its microphone stream in a beep.StreamCloser so that it can be used with everything else in the Beep library.
go get -u github.com/MarkKremer/microphone/v2
This package requires that you have the PortAudio development headers and libraries installed. On Ubuntu this can be done using:
apt-get install portaudio19-dev
On Fedora this can be done using:
dnf install portaudio-devel
See the PortAudio library for more information.