Hi Folks,

My question today has to do with Win32::OLE and SAPI5 speech recognition. This is not a SAPI
        question but is a Perl question.

I believe that I've accomplished my task of capturing speech recognition events but am unable to convert the HASH to text. I'm able to run my code concurrently with the SAPI5 VB example and
see that recognition events are occuring simutaneously.

My output looks as follows (example):

       $self = "a hash which is not the problem".
       $event = 7  # an event number
        $streamnumber = 1 # belongs to my application
        $steamposition = 185280 # an index to keep recognition objects in order
        $recognition type = 0 # it's for dictation
$result = Win32::OLE=HASH(0x19ad68c) # this should be pointing to the location of the
        recognized word or word combinations.

        My sample code:

        <code>
                sub OnRecognition {
my($self,$event,$streamnumber,$steamposition,$recognitiontype,$result) = @_;
                  my $newresult = $self->Invoke('Dispatch',$result);
                  # What now ???
                }

        </code>

Thanks much.


_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to