{"version":3,"sources":["src/common.speech/SynthesisEvents.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAEhE,qBAAa,oBAAqB,SAAQ,aAAa;IACnD,OAAO,CAAC,aAAa,CAAS;gBAEX,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,GAAE,SAA0B;IAM9F,IAAW,SAAS,IAAI,MAAM,CAE7B;CACJ;AAED,qBAAa,uBAAwB,SAAQ,oBAAoB;IAC7D,OAAO,CAAC,6BAA6B,CAAS;IAC9C,OAAO,CAAC,0BAA0B,CAAS;gBAExB,SAAS,EAAE,MAAM,EAAE,yBAAyB,EAAE,MAAM,EAAE,sBAAsB,EAAE,MAAM;IAOvG,IAAW,yBAAyB,IAAI,MAAM,CAE7C;IAED,IAAW,sBAAsB,IAAI,MAAM,CAE1C;CACJ;AAED,qBAAa,iCAAkC,SAAQ,oBAAoB;IACvE,OAAO,CAAC,oBAAoB,CAAS;gBAElB,SAAS,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM;IAK9D,IAAW,gBAAgB,IAAI,MAAM,CAEpC;CACJ;AAED,qBAAa,qBAAsB,SAAQ,oBAAoB;IAC3D,OAAO,CAAC,oBAAoB,CAAS;gBAElB,SAAS,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM;IAM9D,IAAW,gBAAgB,IAAI,MAAM,CAEpC;CACJ","file":"SynthesisEvents.d.ts","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\n\n/* eslint-disable max-classes-per-file */\n\nimport { EventType, PlatformEvent } from \"../common/Exports.js\";\n\nexport class SpeechSynthesisEvent extends PlatformEvent {\n    private privRequestId: string;\n\n    public constructor(eventName: string, requestId: string, eventType: EventType = EventType.Info) {\n        super(eventName, eventType);\n\n        this.privRequestId = requestId;\n    }\n\n    public get requestId(): string {\n        return this.privRequestId;\n    }\n}\n\nexport class SynthesisTriggeredEvent extends SpeechSynthesisEvent {\n    private privSessionAudioDestinationId: string;\n    private privTurnAudioDestinationId: string;\n\n    public constructor(requestId: string, sessionAudioDestinationId: string, turnAudioDestinationId: string) {\n        super(\"SynthesisTriggeredEvent\", requestId);\n\n        this.privSessionAudioDestinationId = sessionAudioDestinationId;\n        this.privTurnAudioDestinationId = turnAudioDestinationId;\n    }\n\n    public get audioSessionDestinationId(): string {\n        return this.privSessionAudioDestinationId;\n    }\n\n    public get audioTurnDestinationId(): string {\n        return this.privTurnAudioDestinationId;\n    }\n}\n\nexport class ConnectingToSynthesisServiceEvent extends SpeechSynthesisEvent {\n    private privAuthFetchEventId: string;\n\n    public constructor(requestId: string, authFetchEventId: string) {\n        super(\"ConnectingToSynthesisServiceEvent\", requestId);\n        this.privAuthFetchEventId = authFetchEventId;\n    }\n\n    public get authFetchEventId(): string {\n        return this.privAuthFetchEventId;\n    }\n}\n\nexport class SynthesisStartedEvent extends SpeechSynthesisEvent {\n    private privAuthFetchEventId: string;\n\n    public constructor(requestId: string, authFetchEventId: string) {\n        super(\"SynthesisStartedEvent\", requestId);\n\n        this.privAuthFetchEventId = authFetchEventId;\n    }\n\n    public get authFetchEventId(): string {\n        return this.privAuthFetchEventId;\n    }\n}\n"]}