michael@0: /* -*- Mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 40 -*- */ michael@0: /* vim: set ts=2 et sw=2 tw=80: */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: include protocol PContent; michael@0: include protocol PSpeechSynthesisRequest; michael@0: michael@0: namespace mozilla { michael@0: namespace dom { michael@0: michael@0: struct RemoteVoice { michael@0: nsString voiceURI; michael@0: nsString name; michael@0: nsString lang; michael@0: bool localService; michael@0: }; michael@0: michael@0: intr protocol PSpeechSynthesis michael@0: { michael@0: manager PContent; michael@0: manages PSpeechSynthesisRequest; michael@0: michael@0: child: michael@0: michael@0: VoiceAdded(RemoteVoice aVoice); michael@0: michael@0: VoiceRemoved(nsString aUri); michael@0: michael@0: SetDefaultVoice(nsString aUri, bool aIsDefault); michael@0: michael@0: parent: michael@0: __delete__(); michael@0: michael@0: PSpeechSynthesisRequest(nsString aText, nsString aUri, nsString aLang, michael@0: float aVolume, float aRate, float aPitch); michael@0: sync ReadVoiceList() returns (RemoteVoice[] aVoices, nsString[] aDefaults); michael@0: }; michael@0: michael@0: } // namespace dom michael@0: } // namespace mozilla