W3C home > Mailing lists > Public > public-xg-htmlspeech@w3.org > July 2011

TTS Speech API

From: Charles Hemphill <charles@everspeech.com>
Date: Thu, 21 Jul 2011 08:07:12 -0700
To: "'HTML Speech XG'" <public-xg-htmlspeech@w3.org>
Message-ID: <027501cc47b7$df371ca0$9da555e0$@everspeech.com>
TTS Speech API


Attached document is a start.

Uses the main template, maintaining the original format for easy


Includes relevant requirements and design decisions.

Some new TTS items noted through symmetry (see yellow highlights).


Recommend reformatting requirements and design decisions  in the main

Use a table to note applicability of the items.

E.g., columns that indicate applicability to reco, tts.

Would avoid separate copy and update of this information.


Two major decisions:

1)      Use a TTS tag

2)      Basis of the approach


Use a TTS tag:

This is recommended for reasons similar to the reco tag.

For an HTML API, we should be able to do (very) simple things with just

Helps the API be more declarative.

Can control features through the standard DOM (similar to the audio

Better for standard HTML developers (the main target?)

Provides a standard place to add event handlers.

Allows for visual control, e.g. patterned after the audio element.

Can support GUI related interaction considerations: focus and visibility.

Note: somehow recommendation of a TTS tag was dropped at the last minute in
the F2F meeting.


Basis of the approach:

Use a derivative of the audio tag.

Start with the Microsoft TTS proposal.

Should fit best with HTML5.


Other considerations:


Spoke about fallback approaches.

The <source> tag allows for multiple formats - can consider this approach.

Also have canPlayType method:

var source= document.createElement('source');
if (audio.canPlayType('audio/mpeg;')) {
    source.type= 'audio/mpeg';
} else {
    source.type= 'audio/ogg';


Other documents:


CSS3 Speech Module

W3C Working Draft 19 April 2011



Aural Stylesheets





Received on Thursday, 21 July 2011 15:08:03 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:16:50 UTC