Hi, problem is that agi recognition script doesn't work in realtime,after it stop recording of voice it make encoding recorded file in flac and sends it to google.
So you can just make recording of conversation and sends it after cal finished to google or other voice engine, but it will not work in realtime.