Can i get audio file from SpeechRecognition? or record audio using SpeechRecognition

I need to start record audio when someone speak into microphone and stop recording when speaking stops. Can i get audio from SpeechRecognition or record audio with SpeechRecognition?