326f674eb44080840aca6782c17c356dcf07d3e7d522fe82446e8a567d50e136.json 4.2 KB

1
  1. {"ast":null,"code":"\"use strict\";\n\n// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.AvatarVideoFormat = exports.Coordinate = void 0;\n/* eslint-disable max-classes-per-file */\n/**\n * Defines a coordinate in 2D space.\n * @class Coordinate\n * Added in version 1.33.0\n */\nclass Coordinate {\n constructor(x, y) {\n this.x = x;\n this.y = y;\n }\n}\nexports.Coordinate = Coordinate;\n/**\n * Defines the avatar output video format.\n * @class AvatarVideoFormat\n * Added in version 1.33.0\n *\n * @experimental This feature is experimental and might change in the future.\n */\nclass AvatarVideoFormat {\n /**\n * Creates and initializes an instance of this class.\n * @constructor\n * @param {string} codec - The video codec.\n * @param {number} bitrate - The video bitrate.\n * @param {number} width - The video width.\n * @param {number} height - The video height.\n */\n constructor(codec = \"H264\", bitrate = 2000000, width = 1920, height = 1080) {\n this.codec = codec;\n this.bitrate = bitrate;\n this.width = width;\n this.height = height;\n }\n /**\n * Sets the video crop range.\n */\n setCropRange(topLeft, bottomRight) {\n this.cropRange = {\n bottomRight,\n topLeft\n };\n }\n}\nexports.AvatarVideoFormat = AvatarVideoFormat;","map":{"version":3,"names":["Object","defineProperty","exports","value","AvatarVideoFormat","Coordinate","constructor","x","y","codec","bitrate","width","height","setCropRange","topLeft","bottomRight","cropRange"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/AvatarVideoFormat.js"],"sourcesContent":["\"use strict\";\n// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.AvatarVideoFormat = exports.Coordinate = void 0;\n/* eslint-disable max-classes-per-file */\n/**\n * Defines a coordinate in 2D space.\n * @class Coordinate\n * Added in version 1.33.0\n */\nclass Coordinate {\n constructor(x, y) {\n this.x = x;\n this.y = y;\n }\n}\nexports.Coordinate = Coordinate;\n/**\n * Defines the avatar output video format.\n * @class AvatarVideoFormat\n * Added in version 1.33.0\n *\n * @experimental This feature is experimental and might change in the future.\n */\nclass AvatarVideoFormat {\n /**\n * Creates and initializes an instance of this class.\n * @constructor\n * @param {string} codec - The video codec.\n * @param {number} bitrate - The video bitrate.\n * @param {number} width - The video width.\n * @param {number} height - The video height.\n */\n constructor(codec = \"H264\", bitrate = 2000000, width = 1920, height = 1080) {\n this.codec = codec;\n this.bitrate = bitrate;\n this.width = width;\n this.height = height;\n }\n /**\n * Sets the video crop range.\n */\n setCropRange(topLeft, bottomRight) {\n this.cropRange = {\n bottomRight,\n topLeft,\n };\n }\n}\nexports.AvatarVideoFormat = AvatarVideoFormat;\n\n"],"mappings":"AAAA,YAAY;;AACZ;AACA;AACAA,MAAM,CAACC,cAAc,CAACC,OAAO,EAAE,YAAY,EAAE;EAAEC,KAAK,EAAE;AAAK,CAAC,CAAC;AAC7DD,OAAO,CAACE,iBAAiB,GAAGF,OAAO,CAACG,UAAU,GAAG,KAAK,CAAC;AACvD;AACA;AACA;AACA;AACA;AACA;AACA,MAAMA,UAAU,CAAC;EACbC,WAAWA,CAACC,CAAC,EAAEC,CAAC,EAAE;IACd,IAAI,CAACD,CAAC,GAAGA,CAAC;IACV,IAAI,CAACC,CAAC,GAAGA,CAAC;EACd;AACJ;AACAN,OAAO,CAACG,UAAU,GAAGA,UAAU;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMD,iBAAiB,CAAC;EACpB;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;EACIE,WAAWA,CAACG,KAAK,GAAG,MAAM,EAAEC,OAAO,GAAG,OAAO,EAAEC,KAAK,GAAG,IAAI,EAAEC,MAAM,GAAG,IAAI,EAAE;IACxE,IAAI,CAACH,KAAK,GAAGA,KAAK;IAClB,IAAI,CAACC,OAAO,GAAGA,OAAO;IACtB,IAAI,CAACC,KAAK,GAAGA,KAAK;IAClB,IAAI,CAACC,MAAM,GAAGA,MAAM;EACxB;EACA;AACJ;AACA;EACIC,YAAYA,CAACC,OAAO,EAAEC,WAAW,EAAE;IAC/B,IAAI,CAACC,SAAS,GAAG;MACbD,WAAW;MACXD;IACJ,CAAC;EACL;AACJ;AACAZ,OAAO,CAACE,iBAAiB,GAAGA,iBAAiB","ignoreList":[]},"metadata":{},"sourceType":"script","externalDependencies":[]}