UNPKG

@voice-ping/cognitive-services-speech

Version:

VoicePing Cognitive Services Speech SDK for JavaScript forked from Microsoft

1 lines 2.78 kB
{"version":3,"sources":["src/sdk/SpeechSynthesisWordBoundaryEventArgs.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,qBAAa,oCAAoC;IAC7C,OAAO,CAAC,eAAe,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,cAAc,CAAS;IAC/B,OAAO,CAAC,cAAc,CAAS;IAE/B;;;;;;;OAOG;gBACgB,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM;IAO5F;;;;;;OAMG;IACH,IAAW,WAAW,IAAI,MAAM,CAE/B;IAED;;;;;;OAMG;IACH,IAAW,IAAI,IAAI,MAAM,CAExB;IAED;;;;;;OAMG;IACH,IAAW,UAAU,IAAI,MAAM,CAE9B;IAED;;;;;;OAMG;IACH,IAAW,UAAU,IAAI,MAAM,CAE9B;CACJ","file":"SpeechSynthesisWordBoundaryEventArgs.d.ts","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\n\n/**\n * Defines contents of speech synthesis word boundary event.\n * @class SpeechSynthesisWordBoundaryEventArgs\n * Added in version 1.11.0\n */\nexport class SpeechSynthesisWordBoundaryEventArgs {\n private privAduioOffset: number;\n private privText: string;\n private privWordLength: number;\n private privTextOffset: number;\n\n /**\n * Creates and initializes an instance of this class.\n * @constructor\n * @param {number} audioOffset - The audio offset.\n * @param {string} text - The text.\n * @param {number} wordLength - The length of the word.\n * @param {number} textOffset - The text offset.\n */\n public constructor(audioOffset: number, text: string, wordLength: number, textOffset: number) {\n this.privAduioOffset = audioOffset;\n this.privText = text;\n this.privWordLength = wordLength;\n this.privTextOffset = textOffset;\n }\n\n /**\n * Specifies the audio offset.\n * @member SpeechSynthesisWordBoundaryEventArgs.prototype.audioOffset\n * @function\n * @public\n * @returns {number} the audio offset.\n */\n public get audioOffset(): number {\n return this.privAduioOffset;\n }\n\n /**\n * Specifies the text of the word boundary event.\n * @member SpeechSynthesisWordBoundaryEventArgs.prototype.text\n * @function\n * @public\n * @returns {string} the text.\n */\n public get text(): string {\n return this.privText;\n }\n\n /**\n * Specifies the word length\n * @member SpeechSynthesisWordBoundaryEventArgs.prototype.wordLength\n * @function\n * @public\n * @returns {number} the word length\n */\n public get wordLength(): number {\n return this.privWordLength;\n }\n\n /**\n * Specifies the text offset.\n * @member SpeechSynthesisWordBoundaryEventArgs.prototype.textOffset\n * @function\n * @public\n * @returns {number} the text offset.\n */\n public get textOffset(): number {\n return this.privTextOffset;\n }\n}\n"]}