UNPKG

@hahnpro/ms-speech-sdk

Version:
1 lines 1.67 kB
{"version":3,"sources":["src/sdk/SpeechSynthesisBookmarkEventArgs.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,qBAAa,gCAAgC;IACzC,OAAO,CAAC,eAAe,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAS;IAEzB;;;;;OAKG;gBACgB,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;IAKpD;;;;;;OAMG;IACH,IAAW,WAAW,IAAI,MAAM,CAE/B;IAED;;;;;;OAMG;IACH,IAAW,IAAI,IAAI,MAAM,CAExB;CACJ","file":"SpeechSynthesisBookmarkEventArgs.d.ts","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\n\n/**\n * Defines contents of speech synthesis bookmark event.\n * @class SpeechSynthesisBookmarkEventArgs\n * Added in version 1.16.0\n */\nexport class SpeechSynthesisBookmarkEventArgs {\n private privAudioOffset: number;\n private privText: string;\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 bookmark text.\n */\n public constructor(audioOffset: number, text: string) {\n this.privAudioOffset = audioOffset;\n this.privText = text;\n }\n\n /**\n * Specifies the audio offset.\n * @member SpeechSynthesisBookmarkEventArgs.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 bookmark.\n * @member SpeechSynthesisBookmarkEventArgs.prototype.text\n * @function\n * @public\n * @returns {string} the bookmark text.\n */\n public get text(): string {\n return this.privText;\n }\n}\n"]}