@hahnpro/ms-speech-sdk
Version:
Microsoft Cognitive Services Speech SDK for JavaScript
1 lines • 4.29 kB
Source Map (JSON)
{"version":3,"sources":["src/sdk/SpeechSynthesisWordBoundaryEventArgs.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAE/E;;;;GAIG;AACH,qBAAa,oCAAoC;IAC7C,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAS;IACzC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAS;IACtC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;IAClC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAS;IACxC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAS;IACxC,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAA8B;IAE/D;;;;;;;;;OASG;gBACgB,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EACvE,UAAU,EAAE,MAAM,EAAE,YAAY,EAAE,2BAA2B;IAShF;;;;;;OAMG;IACH,IAAW,WAAW,IAAI,MAAM,CAE/B;IAED;;;;;;OAMG;IACH,IAAW,QAAQ,IAAI,MAAM,CAE5B;IAED;;;;;;OAMG;IACH,IAAW,IAAI,IAAI,MAAM,CAExB;IAED;;;;;;OAMG;IACH,IAAW,UAAU,IAAI,MAAM,CAE9B;IAED;;;;;;OAMG;IACH,IAAW,UAAU,IAAI,MAAM,CAE9B;IAED;;;;;;OAMG;IACH,IAAW,YAAY,IAAI,2BAA2B,CAErD;CACJ","file":"SpeechSynthesisWordBoundaryEventArgs.d.ts","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\n\nimport { SpeechSynthesisBoundaryType } from \"./SpeechSynthesisBoundaryType.js\";\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 readonly privAudioOffset: number;\n private readonly privDuration: number;\n private readonly privText: string;\n private readonly privWordLength: number;\n private readonly privTextOffset: number;\n private readonly privBoundaryType: SpeechSynthesisBoundaryType;\n\n /**\n * Creates and initializes an instance of this class.\n * @constructor\n * @param {number} audioOffset - The audio offset.\n * @param {number} duration - The audio duration.\n * @param {string} text - The text.\n * @param {number} wordLength - The length of the word.\n * @param {number} textOffset - The text offset.\n * @param {SpeechSynthesisBoundaryType} boundaryType - The boundary type\n */\n public constructor(audioOffset: number, duration: number, text: string, wordLength: number,\n textOffset: number, boundaryType: SpeechSynthesisBoundaryType) {\n this.privAudioOffset = audioOffset;\n this.privDuration = duration;\n this.privText = text;\n this.privWordLength = wordLength;\n this.privTextOffset = textOffset;\n this.privBoundaryType = boundaryType;\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.privAudioOffset;\n }\n\n /**\n * Specifies the duration, in ticks (100 nanoseconds).\n * @member SpeechSynthesisWordBoundaryEventArgs.prototype.duration\n * @function\n * @public\n * @returns {number} Duration in 100 nanosecond increments.\n */\n public get duration(): number {\n return this.privDuration;\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 /**\n * Specifies the boundary type.\n * @member SpeechSynthesisWordBoundaryEventArgs.prototype.boundaryType\n * @function\n * @public\n * @returns {SpeechSynthesisBoundaryType} the boundary type.\n */\n public get boundaryType(): SpeechSynthesisBoundaryType {\n return this.privBoundaryType;\n }\n}\n"]}