microsoft-cognitiveservices-speech-sdk
Version:
Microsoft Cognitive Services Speech SDK for JavaScript
46 lines (44 loc) • 1.36 kB
JavaScript
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
Object.defineProperty(exports, "__esModule", { value: true });
exports.SpeechSynthesisBookmarkEventArgs = void 0;
/**
* Defines contents of speech synthesis bookmark event.
* @class SpeechSynthesisBookmarkEventArgs
* Added in version 1.16.0
*/
class SpeechSynthesisBookmarkEventArgs {
/**
* Creates and initializes an instance of this class.
* @constructor
* @param {number} audioOffset - The audio offset.
* @param {string} text - The bookmark text.
*/
constructor(audioOffset, text) {
this.privAudioOffset = audioOffset;
this.privText = text;
}
/**
* Specifies the audio offset.
* @member SpeechSynthesisBookmarkEventArgs.prototype.audioOffset
* @function
* @public
* @returns {number} the audio offset.
*/
get audioOffset() {
return this.privAudioOffset;
}
/**
* Specifies the bookmark.
* @member SpeechSynthesisBookmarkEventArgs.prototype.text
* @function
* @public
* @returns {string} the bookmark text.
*/
get text() {
return this.privText;
}
}
exports.SpeechSynthesisBookmarkEventArgs = SpeechSynthesisBookmarkEventArgs;
//# sourceMappingURL=SpeechSynthesisBookmarkEventArgs.js.map
;