W3C home > Mailing lists > Public > public-speech-api@w3.org > May 2012

Re: Calling start() on an already started SpeechRecognition object

From: Hans Wennborg <hwennborg@google.com>
Date: Thu, 24 May 2012 13:55:14 +0100
Message-ID: <CAB8jPhet9szEF6p9bQ=59sRUcVvihOAAJ=GnLBuetScxpKkJ1A@mail.gmail.com>
To: public-speech-api@w3.org
On Wed, May 16, 2012 at 2:37 PM, Hans Wennborg <hwennborg@google.com> wrote:
> Hi all,
>
> The spec should say what happens when calling start() on an already
> started SpeechRecognition object, and calling stop() or abort() on a
> non-started object.
>
> Do we want to throw an exception? Fire an error event? Do nothing?

If there are no objections, I'll update the draft tomorrow to say that
calling start() on an already started SpeechRecognition object causes
an InvalidStateError [1] exception to be thrown, and the same for
stop() and abort() on a non-started object.

Thanks,
Hans

[1]. http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#invalidstateerror
Received on Thursday, 24 May 2012 12:56:19 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 24 May 2012 12:56:20 GMT