Googletts and speech-recong

Could you please help me?
following code is not working.
after speech recong, googletts can’t get value from speech-recong.agi

my mission is get varaible from speech-recong and
query from mssql database, getting result from query and say with googletts to user.

thank you

#!/usr/bin/php -q

<?php set_time_limit(30); require('phpagi.php'); $agi = new AGI(); $agi->answer(); $agi->exec("AGI","speech-recog.agi,tr"); $agi->exec("AGI","googletts.agi,${utterance},tr"); $agi->hangup(); ?>