RE: Speech Synthesis - Length parameter

The API supports simultaneously running multiple speech synthesis engines?  When might that be useful?

That aside, do you have a concern about these event attributes being undefined if the capability is not supported?  I expected adding charLength was a fairly straightforward addition to the current attribute set.

From: Eitan Isaacson [mailto:eisaacson@mozilla.com]
Sent: Wednesday, November 16, 2016 3:42 PM
To: Glen Shires <gshires@google.com>
Cc: Jerry Smith (WPT) <jdsmith@microsoft.com>; Dominic Mazzoni <dmazzoni@google.com>; public-speech-api@w3.org
Subject: Re: Speech Synthesis - Length parameter

Just to be clear: a user agent can utilize multiple speech engines simultaneously, some would support charLength, some would not.
An implementation would need to have charLength be either an integer or null/undefined in each case.

On Wed, Nov 16, 2016 at 3:22 PM, Eitan Isaacson <eisaacson@mozilla.com<mailto:eisaacson@mozilla.com>> wrote:
Just trying to translate that to valid webidl. How can an attribute be a primitive or undefined? The only equivalent way I know is if it were nullable with a '?' operator.

On Wed, Nov 16, 2016 at 3:19 PM, Glen Shires <gshires@google.com<mailto:gshires@google.com>> wrote:
On Wed, Nov 16, 2016 at 2:42 PM, Eitan Isaacson <eisaacson@mozilla.com<mailto:eisaacson@mozilla.com>> wrote:
>
>
>
> On Wed, Nov 16, 2016 at 1:32 PM, Glen Shires <gshires@google.com<mailto:gshires@google.com>> wrote:
>>
>> The user
>> agent must return this value if the speech synthesis engine supports
>> it or the user agent can otherwise determine it, otherwise the user
>> agent must return undefined.
>
>
> How does that actually work? Shouldn't charLength be a nullable type? s/undefined/null/
>
> And:
> readonly attribute unsigned long? charLength;

charIndex is also an unsigned long and undefined if the speech
synthesis engine doesn't support it.

Is there a specific problem with this that you see?

Received on Friday, 18 November 2016 19:00:04 UTC