PSpeechSynthesis.ipdl (1314B)
1 /* -*- Mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 40 -*- */ 2 /* vim: set ts=2 et sw=2 tw=80: */ 3 /* This Source Code Form is subject to the terms of the Mozilla Public 4 * License, v. 2.0. If a copy of the MPL was not distributed with this file, 5 * You can obtain one at http://mozilla.org/MPL/2.0/. */ 6 7 include protocol PContent; 8 include protocol PSpeechSynthesisRequest; 9 10 namespace mozilla { 11 namespace dom { 12 13 struct RemoteVoice { 14 nsString voiceURI; 15 nsString name; 16 nsString lang; 17 bool localService; 18 bool queued; 19 }; 20 21 sync protocol PSpeechSynthesis 22 { 23 manager PContent; 24 manages PSpeechSynthesisRequest; 25 26 child: 27 28 async VoiceAdded(RemoteVoice aVoice); 29 30 async VoiceRemoved(nsString aUri); 31 32 async SetDefaultVoice(nsString aUri, bool aIsDefault); 33 34 async IsSpeakingChanged(bool aIsSpeaking); 35 36 async NotifyVoicesChanged(); 37 38 async NotifyVoicesError(nsString aError); 39 40 async InitialVoicesAndState(RemoteVoice[] aVoices, nsString[] aDefaults, 41 bool aIsSpeaking); 42 43 parent: 44 async __delete__(); 45 46 async PSpeechSynthesisRequest(nsString aText, nsString aUri, nsString aLang, 47 float aVolume, float aRate, float aPitch, bool aShouldResistFingerprinting); 48 }; 49 50 } // namespace dom 51 } // namespace mozilla