vxi-discuss



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: simple recording



Thanks for the reply, but that is what I was afraid
of.  I looked at the code and to me it looked like
<value> was fully implemented either (the way that it
needs to be to use after storing recorded audio in a
javascript variable).





--- Brian Eberman <brian.eberman@speechworks.com>
wrote:
> You must have changed the code in the VXI that just
> returns on a record
> unsupported event.  Your code fragment will store
> the data in the VXIobject,
> but in the VXI you need to find a way to store the
> data in the Javascript
> engine so that the field becomes set and doesn't get
> run again.  Since an
> audio type is not defined in Javascript, this is the
> primary reason this is
> not currently implemented.  Some people using the
> OpenVXI have saved the
> waveform to a file and then returned the result as a
> URL. By loading a web
> sever with the OpenVXI the post back to the main web
> server can return the
> local URL and thus provide a way to return the
> audio.  This does not
> directly follow the specification which requires
> that the audio be posted as
> MIME data back to the web server it is sent in a
> submit.
> 
> -Brian Eberman
> 
> 
> -----Original Message-----
> From: vxi-discuss@metronomicon.com
> [mailto:vxi-discuss@metronomicon.com]On Behalf Of
> John Kerwin
> Sent: Friday, April 06, 2001 8:47 AM
> To: vxi-discuss@speechinfo.org
> Subject: simple recording
> 
> 
> VXIresult
> QArecRecord( OSBrecInterface* osp, VXIChannel ch,
> VXIObject args, VXIObject recogResult )
> {
> // do my hardware record stuff
> 
> // what goes here?
>   return(VXIresultSUCCESS);
> }
> 
> 
> I am trying to get record to work.  Just say that I
> have an array chars that contain my raw data that my
> hardware returns to me.  How do I store it in
> recogResult to get the system to use the result?
> 
> VXIchar *data;
> VXIObjectSetProperty(recogResult,"result",data);
> 
> When I do this, OpenVXI just keeps processing the
> same
> <record> block over and over again.
> 
> 
> 
> 
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail.
> http://personal.mail.yahoo.com/
> 


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/




This page is maintained by Alan W Black (awb@cs.cmu.edu)
speechinfo.org is hosted on a machine donated by VA Linux Systems
VA Linux Systems