Another translate example

Appologies if you get 2 of these, but I wasn't seeing this on the list 
after several hours:

---------- Forwarded message ----------
From: Michael Bodell <mbodell@microsoft.com>
Date: Thu, Nov 3, 2011 at 1:10 AM

________________________________
From: Michael Bodell
Sent: Thursday, November 03, 2011 12:04 AM
To: public-xg-htmlspeech@w3.org
Subject: Another translate example

I worked through the translate example in the HTML as well.  The thing
I didn't do, and haven't seen any of the examples do yet, is pull the
specified HTML design through to the protocol.  I.e., what are the
C->S and S->C messages that get sent with this example and how does
the API react to these messages.



for instance:



S->C: web-speech/1.0 END-OF-SPEECH 2343 IN-PROGRESS

Resource-ID: recognizer

Source-time: 2011-11-3T16:01:23.456+1:30



maps to the

speechend event being raised with data equal to the *UA* mapping of
the recognizer time



In this example that results in the progress bar being set to 60.



or when the sir.start() is executed the following interaction happens:



C->S: GET /reco HTTP/1.1

Host: example.org

Upgrade: websocket

Sec-WebSocket-Protocol: web-speech/1.0



...







I fear that if we don't trace an example through the protocol and back
we'll be missing the connections between the two currently disparate
examples.



Also, we might not catch all the missing places.  For instance, the js
api right now doesn't really specify anything about timing information
in speechend, it is quite underspecified really.

Received on Thursday, 3 November 2011 20:33:00 UTC