This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 23737 - SpeechSynthesisVoiceList should inherit from Array or sequence
Summary: SpeechSynthesisVoiceList should inherit from Array or sequence
Status: RESOLVED FIXED
Alias: None
Product: Speech API
Classification: Unclassified
Component: Speech API (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Glen Shires
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-06 06:58 UTC by Dominic Mazzoni
Modified: 2013-11-06 23:53 UTC (History)
1 user (show)

See Also:


Attachments

Description Dominic Mazzoni 2013-11-06 06:58:07 UTC
It looks like both WebKit and Blink actually implemented this interface to getVoices:

    sequence<SpeechSynthesisVoice> getVoices();

That isn't what's in the spec. Is there any reason to have a SpeechSynthesisVoiceList type? If so, could it inherit from Array or sequence rather than being so narrowly defined?
Comment 1 chris fleizach 2013-11-06 23:47:59 UTC
(In reply to Dominic Mazzoni from comment #0)
> It looks like both WebKit and Blink actually implemented this interface to
> getVoices:
> 
>     sequence<SpeechSynthesisVoice> getVoices();
> 
> That isn't what's in the spec. Is there any reason to have a
> SpeechSynthesisVoiceList type? If so, could it inherit from Array or
> sequence rather than being so narrowly defined?

Yea i think this came up and that SpeechSynthesisVoiceList is not really needed and in fact this is one of the reasons sequence was introduced(?).
Maybe this is covered in the errata already?
Comment 2 Dominic Mazzoni 2013-11-06 23:53:19 UTC
Oh! I missed that in the errata. Closing this bug.