PyRecorder class for recording audio in a separate thread. Built with sounddevice and soundfile in Python TODO: Fix support for choosing non-default audio devices