UNPKG

@voice-ping/cognitive-services-speech

Version:

VoicePing Cognitive Services Speech SDK for JavaScript forked from Microsoft

1 lines 3.06 kB
{"version":3,"sources":["src/common.speech/SynthesisEvents.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAE7D,qBAAa,oBAAqB,SAAQ,aAAa;IACnD,OAAO,CAAC,aAAa,CAAS;gBAElB,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,GAAE,SAA0B;IAMvF,IAAW,SAAS,IAAI,MAAM,CAE7B;CACJ;AAGD,qBAAa,uBAAwB,SAAQ,oBAAoB;IAC7D,OAAO,CAAC,6BAA6B,CAAS;IAC9C,OAAO,CAAC,0BAA0B,CAAS;gBAE/B,SAAS,EAAE,MAAM,EAAE,yBAAyB,EAAE,MAAM,EAAE,sBAAsB,EAAE,MAAM;IAOhG,IAAW,yBAAyB,IAAI,MAAM,CAE7C;IAED,IAAW,sBAAsB,IAAI,MAAM,CAE1C;CACJ;AAGD,qBAAa,iCAAkC,SAAQ,oBAAoB;IACvE,OAAO,CAAC,oBAAoB,CAAS;gBAEzB,SAAS,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM;IAKvD,IAAW,gBAAgB,IAAI,MAAM,CAEpC;CACJ;AAGD,qBAAa,qBAAsB,SAAQ,oBAAoB;IAC3D,OAAO,CAAC,oBAAoB,CAAS;gBAEzB,SAAS,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM;IAMvD,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\nimport { EventType, PlatformEvent } from \"../common/Exports\";\n\nexport class SpeechSynthesisEvent extends PlatformEvent {\n private privRequestId: string;\n\n 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\n// tslint:disable-next-line:max-classes-per-file\nexport class SynthesisTriggeredEvent extends SpeechSynthesisEvent {\n private privSessionAudioDestinationId: string;\n private privTurnAudioDestinationId: string;\n\n 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\n// tslint:disable-next-line:max-classes-per-file\nexport class ConnectingToSynthesisServiceEvent extends SpeechSynthesisEvent {\n private privAuthFetchEventId: string;\n\n 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\n// tslint:disable-next-line:max-classes-per-file\nexport class SynthesisStartedEvent extends SpeechSynthesisEvent {\n private privAuthFetchEventId: string;\n\n 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"]}