AGI: record a file and send recorded audio at same time

I am looking for a way with the asterisk agi to send some recorded audio at the same time as it is recording audio from the other side, is it possible to do this? I am currently using Asterisk::AGI with perl and record_file.