microsoft-cognitiveservices-speech-sdk
Version:
Microsoft Cognitive Services Speech SDK for JavaScript
58 lines (56 loc) • 1.78 kB
JavaScript
;
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
Object.defineProperty(exports, "__esModule", { value: true });
exports.SpeechSynthesisVisemeEventArgs = void 0;
/**
* Defines contents of speech synthesis viseme event.
* @class SpeechSynthesisVisemeEventArgs
* Added in version 1.16.0
*/
class SpeechSynthesisVisemeEventArgs {
/**
* Creates and initializes an instance of this class.
* @constructor
* @param {number} audioOffset - The audio offset.
* @param {number} visemeId - The viseme ID.
* @param {string} animation - The animation, could be in svg or other format.
*/
constructor(audioOffset, visemeId, animation) {
this.privAudioOffset = audioOffset;
this.privVisemeId = visemeId;
this.privAnimation = animation;
}
/**
* Specifies the audio offset.
* @member SpeechSynthesisVisemeEventArgs.prototype.audioOffset
* @function
* @public
* @returns {number} the audio offset.
*/
get audioOffset() {
return this.privAudioOffset;
}
/**
* Specifies the viseme ID.
* @member SpeechSynthesisVisemeEventArgs.prototype.visemeId
* @function
* @public
* @returns {number} the viseme ID.
*/
get visemeId() {
return this.privVisemeId;
}
/**
* Specifies the animation.
* @member SpeechSynthesisVisemeEventArgs.prototype.animation
* @function
* @public
* @returns {string} the animation, could be in svg or other format.
*/
get animation() {
return this.privAnimation;
}
}
exports.SpeechSynthesisVisemeEventArgs = SpeechSynthesisVisemeEventArgs;
//# sourceMappingURL=SpeechSynthesisVisemeEventArgs.js.map