UNPKG

microsoft-cognitiveservices-speech-sdk

Version:
54 lines (52 loc) 1.48 kB
"use strict"; // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. Object.defineProperty(exports, "__esModule", { value: true }); exports.AvatarVideoFormat = exports.Coordinate = void 0; /* eslint-disable max-classes-per-file */ /** * Defines a coordinate in 2D space. * @class Coordinate * Added in version 1.33.0 */ class Coordinate { constructor(x, y) { this.x = x; this.y = y; } } exports.Coordinate = Coordinate; /** * Defines the avatar output video format. * @class AvatarVideoFormat * Added in version 1.33.0 * * @experimental This feature is experimental and might change in the future. */ class AvatarVideoFormat { /** * Creates and initializes an instance of this class. * @constructor * @param {string} codec - The video codec. * @param {number} bitrate - The video bitrate. * @param {number} width - The video width. * @param {number} height - The video height. */ constructor(codec = "H264", bitrate = 2000000, width = 1920, height = 1080) { this.codec = codec; this.bitrate = bitrate; this.width = width; this.height = height; } /** * Sets the video crop range. */ setCropRange(topLeft, bottomRight) { this.cropRange = { bottomRight, topLeft, }; } } exports.AvatarVideoFormat = AvatarVideoFormat; //# sourceMappingURL=AvatarVideoFormat.js.map