Pedalboard doesn’t (yet) support live audio recording or playback - it’s designed for reading and writing audio files and processing the data within them.
For live audio playback or recording in Python, you might want to use something like pyAudio.
pedalboard.io