Audio recording with PYO module

Good afternoon!
I recently started working with the PYO module. I’m new to this. I managed to add some sound effects to an audio file using this library.
But I want to record the voice and add some effects at the same time. How can I record my voice using the PYO module and add effects to my voice at the same time?
Thank you for your help!

you may use psychopy.voicekey to record the voice, it works.
I used to choose sound.microphone, however, it occured the bug “recording device not found”.