- From: Satish S <satish@google.com>
- Date: Mon, 8 Oct 2012 10:49:01 +0100
- To: Glen Shires <gshires@google.com>
- Cc: public-speech-api@w3.org
Received on Monday, 8 October 2012 09:49:30 UTC
Sounds good.
Cheers
Satish
On Fri, Oct 5, 2012 at 10:34 PM, Glen Shires <gshires@google.com> wrote:
> My understanding is that the use of const is discouraged in favor of
> strings or enumerations:
> http://dev.w3.org/2006/webapi/WebIDL/#idl-constants
>
> Based on this, I propose changing our SpeechRecognitionError from "const"
> to the following "enum" (no change to the corresponding definitions). If
> there's no disagreement, I'll update the spec with this on Monday.
>
> interface SpeechRecognitionError : Event {
> enum ErrorCode {
> "other",
> "no-speech",
> "aborted",
> "audio-capture",
> "network",
> "not-allowed",
> "service-not-allowed",
> "bad-grammar",
> "language-not-supported"
> };
>
> readonly attribute ErrorCode error;
> readonly attribute DOMString message;
> };
>
> /Glen Shires
>
Received on Monday, 8 October 2012 09:49:30 UTC