@hahnpro/ms-speech-sdk
Version:
Microsoft Cognitive Services Speech SDK for JavaScript
1 lines • 3.25 kB
Source Map (JSON)
{"version":3,"sources":["src/sdk/SpeechRecognitionEventArgs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,+BAA+B,EAAE,MAAM,cAAc,CAAC;AAE9G;;;GAGG;AACH,qBAAa,0BAA2B,SAAQ,oBAAoB;IAChE,OAAO,CAAC,UAAU,CAA0B;IAE5C;;;;;;OAMG;gBACgB,MAAM,EAAE,uBAAuB,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM;IAMvF;;;;;;OAMG;IACH,IAAW,MAAM,IAAI,uBAAuB,CAE3C;CACJ;AAED;;;GAGG;AACH,qBAAa,kCAAmC,SAAQ,oBAAoB;IACxE,OAAO,CAAC,UAAU,CAAkC;IAEpD;;;;;;OAMG;gBACgB,MAAM,EAAE,+BAA+B,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM;IAM/F;;;;;;OAMG;IACC,IAAW,MAAM,IAAI,+BAA+B,CAEnD;CACR;AAED;;;GAGG;AACH,qBAAa,6BAA8B,SAAQ,0BAA0B;CAC5E","file":"SpeechRecognitionEventArgs.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 { RecognitionEventArgs, SpeechRecognitionResult, ConversationTranscriptionResult } from \"./Exports.js\";\n\n/**\n * Defines contents of speech recognizing/recognized event.\n * @class SpeechRecognitionEventArgs\n */\nexport class SpeechRecognitionEventArgs extends RecognitionEventArgs {\n private privResult: SpeechRecognitionResult;\n\n /**\n * Creates and initializes an instance of this class.\n * @constructor\n * @param {SpeechRecognitionResult} result - The speech recognition result.\n * @param {number} offset - The offset.\n * @param {string} sessionId - The session id.\n */\n public constructor(result: SpeechRecognitionResult, offset?: number, sessionId?: string) {\n super(offset, sessionId);\n\n this.privResult = result;\n }\n\n /**\n * Specifies the recognition result.\n * @member SpeechRecognitionEventArgs.prototype.result\n * @function\n * @public\n * @returns {SpeechRecognitionResult} the recognition result.\n */\n public get result(): SpeechRecognitionResult {\n return this.privResult;\n }\n}\n\n/**\n * Defines contents of conversation transcribed/transcribing event.\n * @class ConversationTranscriptionEventArgs\n */\nexport class ConversationTranscriptionEventArgs extends RecognitionEventArgs {\n private privResult: ConversationTranscriptionResult;\n\n /**\n * Creates and initializes an instance of this class.\n * @constructor\n * @param {ConversationTranscriptionResult} result - The conversation transcription result.\n * @param {number} offset - The offset.\n * @param {string} sessionId - The session id.\n */\n public constructor(result: ConversationTranscriptionResult, offset?: number, sessionId?: string) {\n super(offset, sessionId);\n\n this.privResult = result;\n }\n\n /**\n * Specifies the transcription result.\n * @member ConversationTranscription1EventArgs.prototype.result\n * @function\n * @public\n * @returns {ConversationTranscriptionResult} the recognition result.\n */\n public get result(): ConversationTranscriptionResult {\n return this.privResult;\n }\n}\n\n/**\n * Defines contents of meeting transcribed/transcribing event.\n * @class MeetingTranscriptionEventArgs\n */\nexport class MeetingTranscriptionEventArgs extends SpeechRecognitionEventArgs {\n}\n"]}