Merge m-c to b2g-inbound.
[gecko.git] / dom / webidl / SpeechSynthesis.webidl
blobd7062943307016d8b4d2ba05246fa7d5f93c6f5f
1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
4  * You can obtain one at http://mozilla.org/MPL/2.0/.
5  *
6  * The origin of this IDL file is
7  * http://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html
8  *
9  * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
10  * liability, trademark and document use rules apply.
11  */
13 [PrefControlled]
14 interface SpeechSynthesis {
15   readonly attribute boolean pending;
16   readonly attribute boolean speaking;
17   readonly attribute boolean paused;
19   void speak(SpeechSynthesisUtterance utterance);
20   void cancel();
21   void pause();
22   void resume();
23   sequence<SpeechSynthesisVoice> getVoices();