I think OMZ should add a method to sound module to control the audio routing. For now you can use objective-c calls after recording / before playing:
import objc_util
au = objc_util.ObjCClass("AVAudioSession").sharedInstance()
# force playback on speaker
au.setCategory_withOptions_error_("AVAudioSessionCategoryPlayback",1,None)