@hahnpro/ms-speech-sdk
Version:
Microsoft Cognitive Services Speech SDK for JavaScript
1 lines • 1.73 kB
Source Map (JSON)
{"version":3,"sources":["src/sdk/ActivityReceivedEventArgs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAWrE;;;GAGG;AACH,qBAAa,yBAAyB;IAClC,OAAO,CAAC,YAAY,CAAY;IAChC,OAAO,CAAC,eAAe,CAAwB;IAE/C;;;;OAIG;gBACgB,QAAQ,EAAE,GAAG,EAAE,WAAW,CAAC,EAAE,qBAAqB;IAKrE;;;;;;OAMG;IACH,IAAW,QAAQ,IAAI,GAAG,CAEzB;IAED,IAAW,WAAW,IAAI,qBAAqB,CAE9C;CACJ","file":"ActivityReceivedEventArgs.d.ts","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\n\n/* eslint-disable max-classes-per-file */\nimport { PullAudioOutputStream } from \"./Audio/AudioOutputStream.js\";\n\ninterface IActivity {\n conversation?: any;\n id?: string;\n replyToId?: string;\n type?: string;\n text?: string;\n speak?: any;\n}\n\n/**\n * Defines contents of received message/events.\n * @class ActivityReceivedEventArgs\n */\nexport class ActivityReceivedEventArgs {\n private privActivity: IActivity;\n private privAudioStream: PullAudioOutputStream;\n\n /**\n * Creates and initializes an instance of this class.\n * @constructor\n * @param {any} activity - The activity..\n */\n public constructor(activity: any, audioStream?: PullAudioOutputStream) {\n this.privActivity = activity as IActivity;\n this.privAudioStream = audioStream;\n }\n\n /**\n * Gets the received activity\n * @member ActivityReceivedEventArgs.prototype.activity\n * @function\n * @public\n * @returns {any} the received activity.\n */\n public get activity(): any {\n return this.privActivity;\n }\n\n public get audioStream(): PullAudioOutputStream {\n return this.privAudioStream;\n }\n}\n"]}