On Sat, 2 Jun 2001, Suresh Ramasubramanian wrote:
> On 01/06/01 19:14 +0530, mukund spewed into the LI bitstream:
> > User Ivrs.pm module, available at cpan.org,
> > It is much better, faster, and extremely easy to configure.
>
> That's the one you coded, right?
No I am not using perl here,I've used shell script which is something like
this :
#$VOICE_INPUT & $VOICE_OUTPUT are descriptors by which we can interact
#with the library functions.
#!/bin/sh
set -x
exec 2>/tmp/error
#
# Define the function to receive an answer from the voice library
#
function receive() {
read INPUT<&$VOICE_INPUT;
echo "$INPUT";
}
#
# Define the function to send a command to the voice library
#
function send() {
echo $1 >&$VOICE_OUTPUT
}
# Let's see if the voice library is talking to us
ANSWER=`receive` -----------------------------> This works...
if [ "$ANSWER" != "HELLO SHELL" ]
then
echo "$0: voice library not answering" >&2
exit 1
fi
#
# Let's answer the message
#
send "HELLO VOICE PROGRAM"
#
#
# Let's see if it worked
#
ANSWER= `receive` ------------> This receive blocks.......I am expecting
'READY' here.
I don't the reason why does it blocks, whereas first receive returns
successfully.Is there any thing I am missing in configuration file
ie. voice.conf .
Awaiting reply
Shailesh.
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/linux-india-help