Another translate example

The list didn't get my previous example, perhaps because it was an attachment.  Here's a pointer and the text I had.

Example:  http://bantha.org/~mbodell/translate.html

________________________________
From: Michael Bodell
Sent: Thursday, November 03, 2011 12:04 AM
To: public-xg-htmlspeech@w3.org<mailto: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 16:14:52 UTC