- From: Dominic Mazzoni <dmazzoni@google.com>
 - Date: Fri, 17 Aug 2012 10:59:16 -0700
 - To: olli@pettay.fi
 - Cc: public-speech-api@w3.org
 
Sounds good, got rid of "static". Do you know the formal way to
express window.speechSynthesis?
Ex 1:
speechSynthesis.speak(SpeechSynthesisUtterance('Hello World'));
Ex 2:
var u = new SpeechSynthesisUtterance();
u.text = 'Hello World';
u.lang = 'en-US';
u.onend = function() { alert('Finished!'); }
speechSynthesis.speak(u);
interface SpeechSynthesis {
  readonly attribute boolean pending;
  readonly attribute boolean speaking;
  readonly attribute boolean paused;
  void speak(SpeechSynthesisUtterance utterance);
  void cancel(SpeechSynthesisUtterance utterance);
  void pause();
  void continue();
  void stopAndFlushQueue();
}
[Constructor,
 Constructor(DOMString text)]
interface SpeechSynthesisUtterance {
  attribute DOMString text;
  attribute DOMString lang;
  attribute DOMString serviceURI;
  readonly attribute boolean speaking;
  readonly attribute boolean paused;
  readonly attribute boolean ended;
  attribute Function onstart;
  attribute Function onend;
}
Received on Friday, 17 August 2012 17:59:44 UTC