{"ast":null,"code":"\"use strict\";\n\n// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.SynthesisStartedEvent = exports.ConnectingToSynthesisServiceEvent = exports.SynthesisTriggeredEvent = exports.SpeechSynthesisEvent = void 0;\n/* eslint-disable max-classes-per-file */\nconst Exports_js_1 = require(\"../common/Exports.js\");\nclass SpeechSynthesisEvent extends Exports_js_1.PlatformEvent {\n constructor(eventName, requestId, eventType = Exports_js_1.EventType.Info) {\n super(eventName, eventType);\n this.privRequestId = requestId;\n }\n get requestId() {\n return this.privRequestId;\n }\n}\nexports.SpeechSynthesisEvent = SpeechSynthesisEvent;\nclass SynthesisTriggeredEvent extends SpeechSynthesisEvent {\n constructor(requestId, sessionAudioDestinationId, turnAudioDestinationId) {\n super(\"SynthesisTriggeredEvent\", requestId);\n this.privSessionAudioDestinationId = sessionAudioDestinationId;\n this.privTurnAudioDestinationId = turnAudioDestinationId;\n }\n get audioSessionDestinationId() {\n return this.privSessionAudioDestinationId;\n }\n get audioTurnDestinationId() {\n return this.privTurnAudioDestinationId;\n }\n}\nexports.SynthesisTriggeredEvent = SynthesisTriggeredEvent;\nclass ConnectingToSynthesisServiceEvent extends SpeechSynthesisEvent {\n constructor(requestId, authFetchEventId) {\n super(\"ConnectingToSynthesisServiceEvent\", requestId);\n this.privAuthFetchEventId = authFetchEventId;\n }\n get authFetchEventId() {\n return this.privAuthFetchEventId;\n }\n}\nexports.ConnectingToSynthesisServiceEvent = ConnectingToSynthesisServiceEvent;\nclass SynthesisStartedEvent extends SpeechSynthesisEvent {\n constructor(requestId, authFetchEventId) {\n super(\"SynthesisStartedEvent\", requestId);\n this.privAuthFetchEventId = authFetchEventId;\n }\n get authFetchEventId() {\n return this.privAuthFetchEventId;\n }\n}\nexports.SynthesisStartedEvent = SynthesisStartedEvent;","map":{"version":3,"names":["Object","defineProperty","exports","value","SynthesisStartedEvent","ConnectingToSynthesisServiceEvent","SynthesisTriggeredEvent","SpeechSynthesisEvent","Exports_js_1","require","PlatformEvent","constructor","eventName","requestId","eventType","EventType","Info","privRequestId","sessionAudioDestinationId","turnAudioDestinationId","privSessionAudioDestinationId","privTurnAudioDestinationId","audioSessionDestinationId","audioTurnDestinationId","authFetchEventId","privAuthFetchEventId"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/SynthesisEvents.js"],"sourcesContent":["\"use strict\";\n// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.SynthesisStartedEvent = exports.ConnectingToSynthesisServiceEvent = exports.SynthesisTriggeredEvent = exports.SpeechSynthesisEvent = void 0;\n/* eslint-disable max-classes-per-file */\nconst Exports_js_1 = require(\"../common/Exports.js\");\nclass SpeechSynthesisEvent extends Exports_js_1.PlatformEvent {\n constructor(eventName, requestId, eventType = Exports_js_1.EventType.Info) {\n super(eventName, eventType);\n this.privRequestId = requestId;\n }\n get requestId() {\n return this.privRequestId;\n }\n}\nexports.SpeechSynthesisEvent = SpeechSynthesisEvent;\nclass SynthesisTriggeredEvent extends SpeechSynthesisEvent {\n constructor(requestId, sessionAudioDestinationId, turnAudioDestinationId) {\n super(\"SynthesisTriggeredEvent\", requestId);\n this.privSessionAudioDestinationId = sessionAudioDestinationId;\n this.privTurnAudioDestinationId = turnAudioDestinationId;\n }\n get audioSessionDestinationId() {\n return this.privSessionAudioDestinationId;\n }\n get audioTurnDestinationId() {\n return this.privTurnAudioDestinationId;\n }\n}\nexports.SynthesisTriggeredEvent = SynthesisTriggeredEvent;\nclass ConnectingToSynthesisServiceEvent extends SpeechSynthesisEvent {\n constructor(requestId, authFetchEventId) {\n super(\"ConnectingToSynthesisServiceEvent\", requestId);\n this.privAuthFetchEventId = authFetchEventId;\n }\n get authFetchEventId() {\n return this.privAuthFetchEventId;\n }\n}\nexports.ConnectingToSynthesisServiceEvent = ConnectingToSynthesisServiceEvent;\nclass SynthesisStartedEvent extends SpeechSynthesisEvent {\n constructor(requestId, authFetchEventId) {\n super(\"SynthesisStartedEvent\", requestId);\n this.privAuthFetchEventId = authFetchEventId;\n }\n get authFetchEventId() {\n return this.privAuthFetchEventId;\n }\n}\nexports.SynthesisStartedEvent = SynthesisStartedEvent;\n\n"],"mappings":"AAAA,YAAY;;AACZ;AACA;AACAA,MAAM,CAACC,cAAc,CAACC,OAAO,EAAE,YAAY,EAAE;EAAEC,KAAK,EAAE;AAAK,CAAC,CAAC;AAC7DD,OAAO,CAACE,qBAAqB,GAAGF,OAAO,CAACG,iCAAiC,GAAGH,OAAO,CAACI,uBAAuB,GAAGJ,OAAO,CAACK,oBAAoB,GAAG,KAAK,CAAC;AACnJ;AACA,MAAMC,YAAY,GAAGC,OAAO,CAAC,sBAAsB,CAAC;AACpD,MAAMF,oBAAoB,SAASC,YAAY,CAACE,aAAa,CAAC;EAC1DC,WAAWA,CAACC,SAAS,EAAEC,SAAS,EAAEC,SAAS,GAAGN,YAAY,CAACO,SAAS,CAACC,IAAI,EAAE;IACvE,KAAK,CAACJ,SAAS,EAAEE,SAAS,CAAC;IAC3B,IAAI,CAACG,aAAa,GAAGJ,SAAS;EAClC;EACA,IAAIA,SAASA,CAAA,EAAG;IACZ,OAAO,IAAI,CAACI,aAAa;EAC7B;AACJ;AACAf,OAAO,CAACK,oBAAoB,GAAGA,oBAAoB;AACnD,MAAMD,uBAAuB,SAASC,oBAAoB,CAAC;EACvDI,WAAWA,CAACE,SAAS,EAAEK,yBAAyB,EAAEC,sBAAsB,EAAE;IACtE,KAAK,CAAC,yBAAyB,EAAEN,SAAS,CAAC;IAC3C,IAAI,CAACO,6BAA6B,GAAGF,yBAAyB;IAC9D,IAAI,CAACG,0BAA0B,GAAGF,sBAAsB;EAC5D;EACA,IAAIG,yBAAyBA,CAAA,EAAG;IAC5B,OAAO,IAAI,CAACF,6BAA6B;EAC7C;EACA,IAAIG,sBA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