2ee3535952cfc9b9832956933d7a8c420a31c69d6ade91046f24ab9ba916e5bb.json 7.4 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.AvatarConfig = void 0;\nconst Contracts_js_1 = require(\"./Contracts.js\");\nconst Exports_js_1 = require(\"./Exports.js\");\n/**\n * Defines the talking avatar configuration.\n * @class AvatarConfig\n * Added in version 1.33.0\n *\n * @experimental This feature is experimental and might change or have limited support.\n */\nclass AvatarConfig {\n /**\n * Creates and initializes an instance of this class.\n * @constructor\n * @param {string} character - The avatar character.\n * @param {string} style - The avatar style.\n * @param {AvatarVideoFormat} videoFormat - The talking avatar output video format.\n */\n constructor(character, style, videoFormat) {\n this.privCustomized = false;\n Contracts_js_1.Contracts.throwIfNullOrWhitespace(character, \"character\");\n this.character = character;\n this.style = style;\n if (videoFormat === undefined) {\n videoFormat = new Exports_js_1.AvatarVideoFormat();\n }\n this.videoFormat = videoFormat;\n }\n /**\n * Indicates if the talking avatar is customized.\n */\n get customized() {\n return this.privCustomized;\n }\n /**\n * Sets if the talking avatar is customized.\n */\n set customized(value) {\n this.privCustomized = value;\n }\n /**\n * Gets the background color.\n */\n get backgroundColor() {\n return this.privBackgroundColor;\n }\n /**\n * Sets the background color.\n */\n set backgroundColor(value) {\n this.privBackgroundColor = value;\n }\n /**\n * Gets the background image.\n */\n get backgroundImage() {\n return this.privBackgroundImage;\n }\n /**\n * Sets the background image.\n * @param {URL} value - The background image.\n */\n set backgroundImage(value) {\n this.privBackgroundImage = value;\n }\n /**\n * Gets the remote ICE servers.\n * @remarks This method is designed to be used internally in the SDK.\n * @returns {RTCIceServer[]} The remote ICE servers.\n */\n get remoteIceServers() {\n return this.privRemoteIceServers;\n }\n /**\n * Sets the remote ICE servers.\n * @remarks Normally, the ICE servers are gathered from the PeerConnection,\n * set this property to override the ICE servers. E.g., the ICE servers are\n * different in client and server side.\n * @param {RTCIceServer[]} value - The remote ICE servers.\n */\n set remoteIceServers(value) {\n this.privRemoteIceServers = value;\n }\n}\nexports.AvatarConfig = AvatarConfig;","map":{"version":3,"names":["Object","defineProperty","exports","value","AvatarConfig","Contracts_js_1","require","Exports_js_1","constructor","character","style","videoFormat","privCustomized","Contracts","throwIfNullOrWhitespace","undefined","AvatarVideoFormat","customized","backgroundColor","privBackgroundColor","backgroundImage","privBackgroundImage","remoteIceServers","privRemoteIceServers"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/AvatarConfig.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.AvatarConfig = void 0;\nconst Contracts_js_1 = require(\"./Contracts.js\");\nconst Exports_js_1 = require(\"./Exports.js\");\n/**\n * Defines the talking avatar configuration.\n * @class AvatarConfig\n * Added in version 1.33.0\n *\n * @experimental This feature is experimental and might change or have limited support.\n */\nclass AvatarConfig {\n /**\n * Creates and initializes an instance of this class.\n * @constructor\n * @param {string} character - The avatar character.\n * @param {string} style - The avatar style.\n * @param {AvatarVideoFormat} videoFormat - The talking avatar output video format.\n */\n constructor(character, style, videoFormat) {\n this.privCustomized = false;\n Contracts_js_1.Contracts.throwIfNullOrWhitespace(character, \"character\");\n this.character = character;\n this.style = style;\n if (videoFormat === undefined) {\n videoFormat = new Exports_js_1.AvatarVideoFormat();\n }\n this.videoFormat = videoFormat;\n }\n /**\n * Indicates if the talking avatar is customized.\n */\n get customized() {\n return this.privCustomized;\n }\n /**\n * Sets if the talking avatar is customized.\n */\n set customized(value) {\n this.privCustomized = value;\n }\n /**\n * Gets the background color.\n */\n get backgroundColor() {\n return this.privBackgroundColor;\n }\n /**\n * Sets the background color.\n */\n set backgroundColor(value) {\n this.privBackgroundColor = value;\n }\n /**\n * Gets the background image.\n */\n get backgroundImage() {\n return this.privBackgroundImage;\n }\n /**\n * Sets the background image.\n * @param {URL} value - The background image.\n */\n set backgroundImage(value) {\n this.privBackgroundImage = value;\n }\n /**\n * Gets the remote ICE servers.\n * @remarks This method is designed to be used internally in the SDK.\n * @returns {RTCIceServer[]} The remote ICE servers.\n */\n get remoteIceServers() {\n return this.privRemoteIceServers;\n }\n /**\n * Sets the remote ICE servers.\n * @remarks Normally, the ICE servers are gathered from the PeerConnection,\n * set this property to override the ICE servers. E.g., the ICE servers are\n * different in client and server side.\n * @param {RTCIceServer[]} value - The remote ICE servers.\n */\n set remoteIceServers(value) {\n this.privRemoteIceServers = value;\n }\n}\nexports.AvatarConfig = AvatarConfig;\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,YAAY,GAAG,KAAK,CAAC;AAC7B,MAAMC,cAAc,GAAGC,OAAO,CAAC,gBAAgB,CAAC;AAChD,MAAMC,YAAY,GAAGD,OAAO,CAAC,cAAc,CAAC;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMF,YAAY,CAAC;EACf;AACJ;AACA;AACA;AACA;AACA;AACA;EACII,WAAWA,CAACC,SAAS,EAAEC,KAAK,EAAEC,WAAW,EAAE;IACvC,IAAI,CAACC,cAAc,GAAG,KAAK;IAC3BP,cAAc,CAACQ,SAAS,CAACC,uBAAuB,CAACL,SAAS,EAAE,WAAW,CAAC;IACxE,IAAI,CAACA,SAAS,GAAGA,SAAS;IAC1B,IAAI,CAACC,KAAK,GAAGA,KAAK;IAClB,IAAIC,WAAW,KAAKI,SAAS,EAAE;MAC3BJ,WAAW,GAAG,IAAIJ,YAAY,CAACS,iBAAiB,CAAC,CAAC;IACtD;IACA,IAAI,CAACL,WAAW,GAAGA,WAAW;EAClC;EACA;AACJ;AACA;EACI,IAAIM,UAAUA,CAAA,EAAG;IACb,OAAO,IAAI,CAACL,cAAc;EAC9B;EACA;AACJ;AACA;EACI,IAAIK,UAAUA,CAACd,KAAK,EAAE;IAClB,IAAI,CAACS,cAAc,GAAGT,KAAK;EAC/B;EACA;AACJ;AACA;EACI,IAAIe,eAAeA,CAAA,EAAG;IAClB,OAAO,IAAI,CAACC,mBAAmB;EACnC;EACA;AACJ;AACA;EACI,IAAID,eAAeA,CAACf,KAAK,EAAE;IACvB,IAAI,CAACgB,mBAAmB,GAAGhB,KAAK;EACpC;EACA;AACJ;AACA;EACI,IAAIiB,eAAeA,CAAA,EAAG;IAClB,OAAO,IAAI,CAACC,mBAAmB;EACnC;EACA;AACJ;AACA;AACA;EACI,IAAID,eAAeA,CAACjB,KAAK,EAAE;IACvB,IAAI,CAACkB,mBAAmB,GAAGlB,KAAK;EACpC;EACA;AACJ;AACA;AACA;AACA;EACI,IAAImB,gBAAgBA,CAAA,EAAG;IACnB,OAAO,IAAI,CAACC,oBAAoB;EACpC;EACA;AACJ;AACA;AACA;AACA;AACA;AACA;EACI,IAAID,gBAAgBA,CAACnB,KAAK,EAAE;IACxB,IAAI,CAACoB,oBAAoB,GAAGpB,KAAK;EACrC;AACJ;AACAD,OAAO,CAACE,YAAY,GAAGA,YAAY","ignoreList":[]},"metadata":{},"sourceType":"script","externalDependencies":[]}