[ttml2] Add a syntactic shortcut for an implied audio element

nigelmegitt has just created a new issue for https://github.com/w3c/ttml2:

== Add a syntactic shortcut for an implied audio element ==
If a `span` has `tta:speak` set to something other than `"none"` then currently it generates an audio resource but it is not clear that the audio resource should play, unless the `span` has a child `audio` element with `src="http://www.w3.org/ns/ttml/resource/#speech"`. That has the benefit that the `audio` element provides a home for potential `tta:gain` and `tta:pan` attributes, but if they are not needed, because their default values are fine, then it is rather verbose so I would like to introduce a syntactic shortcut that in the absence of such an `audio` child element, one is assumed.

I'd also like to avoid the need for the `src="http://www.w3.org/ns/ttml/resource/#speech"` attribute altogether for an `audio` element as a child of a `span` for which speech synthesis is enabled. I would propose that omitting both the `src` attribute and a `source` child in that case should suffice.

Please view or discuss this issue at https://github.com/w3c/ttml2/issues/1013 using your GitHub account

Received on Tuesday, 23 October 2018 14:52:07 UTC