Currently, we have IVR based application written using PHPAGI and we
would like to enhanced it more using Voice recognition. I believe
LumenVox speech recognition software is the best for Asterisk based IVR.

Now is there anyway to integrate LumenVox speech recognition app with
PHPAGI? I want to keep on using PHPAGI as it gives me flexibility to
access DB and do other stuff. The main purpose to use LumenVox is to
give users some flexibility of speaking instead of keying the DTMF when
IVR ask for some input.

Now how can I use speech to capture the input and store it in
$pin_no variable?

I am no expert at PHP or the AGI, but basically all you will need to do is use AGI to execute the SpeechBackground() function and then from your application read in the value of the Asterisk $SPEECH_TEXT(0) variable. Perhaps somebody more familiar with PHP and AGI can give you a code snippet of how this is done in PHP.

> Now how can I use speech to capture the input and store it in
> $pin_no variable?
>

I am no expert at PHP or the AGI, but basically all you will need to do
is use AGI to execute the SpeechBackground() function and then from your
application read in the value of the Asterisk $SPEECH_TEXT(0) variable.
Perhaps somebody more familiar with PHP and AGI can give you a code
snippet of how this is done in PHP.

> Now how can I use speech to capture the input and store it in
> $pin_no variable?
>

I am no expert at PHP or the AGI, but basically all you will need to do is use AGI to execute the SpeechBackground() function and then from your application read in the value of the Asterisk $SPEECH_TEXT(0) variable. Perhaps somebody more familiar with PHP and AGI can give you a code snippet of how this is done in PHP.