UNPKG

@voice-ping/cognitive-services-speech

Version:

VoicePing Cognitive Services Speech SDK for JavaScript forked from Microsoft

1 lines 1.66 kB
{"version":3,"sources":["src/sdk/SpeechRecognitionEventArgsCustom.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,6BAA6B,EAAE,MAAM,WAAW,CAAC;AAEhF;;;GAGG;AACH,qBAAa,gCAAiC,SAAQ,oBAAoB;IACtE,OAAO,CAAC,UAAU,CAAgC;IAElD;;;;;;OAMG;gBACgB,MAAM,EAAE,6BAA6B,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM;IAM7F;;;;;;OAMG;IACH,IAAW,MAAM,IAAI,6BAA6B,CAEjD;CACJ","file":"SpeechRecognitionEventArgsCustom.d.ts","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\n\nimport { RecognitionEventArgs, SpeechRecognitionResultCustom } from \"./Exports\";\n\n/**\n * Defines contents of speech recognizing/recognized event.\n * @class SpeechRecognitionEventArgsCustom\n */\nexport class SpeechRecognitionEventArgsCustom extends RecognitionEventArgs {\n private privResult: SpeechRecognitionResultCustom;\n\n /**\n * Creates and initializes an instance of this class.\n * @constructor\n * @param {SpeechRecognitionResultCustom} result - The speech recognition result.\n * @param {number} offset - The offset.\n * @param {string} sessionId - The session id.\n */\n public constructor(result: SpeechRecognitionResultCustom, 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 {SpeechRecognitionResultCustom} the recognition result.\n */\n public get result(): SpeechRecognitionResultCustom {\n return this.privResult;\n }\n}\n"]}