/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththisfile,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
/** *Dispatchboundaryevent. * *@paramaNamenameofboundary,'word'or'sentence' *@paramaElapsedTimetimeinsecondssincespeechhasstarted. *@paramaCharIndexoffsetofspokencharacters. *@paramaCharLengthlengthoftextinboundaryeventtobespoken.
*/
[optional_argc] void dispatchBoundary(in AString aName, in float aElapsedTime,
in unsignedlong aCharIndex,
[optional] in unsignedlong aCharLength);
/** *Dispatchmarkevent. * *@paramaNamemarkidentifier. *@paramaElapsedTimetimeinsecondssincespeechhasstarted. *@paramaCharIndexoffsetofspokencharacters.
*/ void dispatchMark(in AString aName, in float aElapsedTime, in unsignedlong aCharIndex);
};
/** *Themaininterfaceofaspeechsynthesisservice. * *Aserviceisresponsibleforoutputtingaudio. *Theservicedispatchesevents,startingwithdispatchStart()andendingwith *dispatchEndordispatchError(). *Aservicemustalsorespondwiththecurrectactionsandeventsinresponse *toimplementedcallbackmethods.
*/
[scriptable, uuid(9b7d59db-88ff-43d0-b6ee-9f63d042d08f)]
interface nsISpeechService : nsISupports
{ /** *Speakthegiventextusingthevoiceidentifiedbyuthegivenuri.See *W3CSpeechAPIspecforinformationaboutpitchandrate. *https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#utterance-attributes * *@paramaTexttexttoutter. *@paramaUriuniquevoiceidentifier. *@paramaVolumevolumetospeakvoicein.Onlyrelevantforindirectaudio. *@paramaRateratetospeakvoicein. *@paramaPitchpitchtospeakvoicein. *@paramaTasktaskinstanceforutterance,usedforsendingeventsoraudio *databacktobrowser.
*/ void speak(in AString aText, in AString aUri,
in float aVolume, in float aRate, in float aPitch,
in nsISpeechTask aTask);
};
%{C++ // This is the service category speech services could use to start up as // a component. #define NS_SPEECH_SYNTH_STARTED "speech-synth-started"
%}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.