9a014b4c5a43936abb4db215951abd423fad1433cd6719a2a6a67bda564c4b39.json 4.8 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.AvatarEventArgs = exports.AvatarEventTypes = void 0;\nvar AvatarEventTypes;\n(function (AvatarEventTypes) {\n AvatarEventTypes[\"SwitchedToSpeaking\"] = \"SwitchedToSpeaking\";\n AvatarEventTypes[\"SwitchedToIdle\"] = \"SwitchedToIdle\";\n AvatarEventTypes[\"SessionClosed\"] = \"SessionClosed\";\n})(AvatarEventTypes = exports.AvatarEventTypes || (exports.AvatarEventTypes = {}));\n/**\n * Defines content for talking avatar events.\n * @class AvatarEventArgs\n * Added in version 1.33.0\n *\n * @experimental This feature is experimental and might change or have limited support.\n */\nclass AvatarEventArgs {\n /**\n * Creates and initializes an instance of this class.\n * @constructor\n * @param {number} audioOffset - The audio offset.\n * @param {string} description - The description of the event.\n */\n constructor(audioOffset, description) {\n this.privOffset = audioOffset;\n this.privDescription = description;\n }\n /**\n * The type of the event.\n * @public\n * @returns {AvatarEventTypes} The type of the event.\n */\n get type() {\n return this.privType;\n }\n /**\n * The time offset associated with this event.\n * @public\n * @returns {number} The time offset associated with this event.\n */\n get offset() {\n return this.privOffset;\n }\n /**\n * The description of the event.\n * @public\n * @returns {string} The description of the event.\n */\n get description() {\n return this.privDescription;\n }\n}\nexports.AvatarEventArgs = AvatarEventArgs;","map":{"version":3,"names":["Object","defineProperty","exports","value","AvatarEventArgs","AvatarEventTypes","constructor","audioOffset","description","privOffset","privDescription","type","privType","offset"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/AvatarEventArgs.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.AvatarEventArgs = exports.AvatarEventTypes = void 0;\nvar AvatarEventTypes;\n(function (AvatarEventTypes) {\n AvatarEventTypes[\"SwitchedToSpeaking\"] = \"SwitchedToSpeaking\";\n AvatarEventTypes[\"SwitchedToIdle\"] = \"SwitchedToIdle\";\n AvatarEventTypes[\"SessionClosed\"] = \"SessionClosed\";\n})(AvatarEventTypes = exports.AvatarEventTypes || (exports.AvatarEventTypes = {}));\n/**\n * Defines content for talking avatar events.\n * @class AvatarEventArgs\n * Added in version 1.33.0\n *\n * @experimental This feature is experimental and might change or have limited support.\n */\nclass AvatarEventArgs {\n /**\n * Creates and initializes an instance of this class.\n * @constructor\n * @param {number} audioOffset - The audio offset.\n * @param {string} description - The description of the event.\n */\n constructor(audioOffset, description) {\n this.privOffset = audioOffset;\n this.privDescription = description;\n }\n /**\n * The type of the event.\n * @public\n * @returns {AvatarEventTypes} The type of the event.\n */\n get type() {\n return this.privType;\n }\n /**\n * The time offset associated with this event.\n * @public\n * @returns {number} The time offset associated with this event.\n */\n get offset() {\n return this.privOffset;\n }\n /**\n * The description of the event.\n * @public\n * @returns {string} The description of the event.\n */\n get description() {\n return this.privDescription;\n }\n}\nexports.AvatarEventArgs = AvatarEventArgs;\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,eAAe,GAAGF,OAAO,CAACG,gBAAgB,GAAG,KAAK,CAAC;AAC3D,IAAIA,gBAAgB;AACpB,CAAC,UAAUA,gBAAgB,EAAE;EACzBA,gBAAgB,CAAC,oBAAoB,CAAC,GAAG,oBAAoB;EAC7DA,gBAAgB,CAAC,gBAAgB,CAAC,GAAG,gBAAgB;EACrDA,gBAAgB,CAAC,eAAe,CAAC,GAAG,eAAe;AACvD,CAAC,EAAEA,gBAAgB,GAAGH,OAAO,CAACG,gBAAgB,KAAKH,OAAO,CAACG,gBAAgB,GAAG,CAAC,CAAC,CAAC,CAAC;AAClF;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMD,eAAe,CAAC;EAClB;AACJ;AACA;AACA;AACA;AACA;EACIE,WAAWA,CAACC,WAAW,EAAEC,WAAW,EAAE;IAClC,IAAI,CAACC,UAAU,GAAGF,WAAW;IAC7B,IAAI,CAACG,eAAe,GAAGF,WAAW;EACtC;EACA;AACJ;AACA;AACA;AACA;EACI,IAAIG,IAAIA,CAAA,EAAG;IACP,OAAO,IAAI,CAACC,QAAQ;EACxB;EACA;AACJ;AACA;AACA;AACA;EACI,IAAIC,MAAMA,CAAA,EAAG;IACT,OAAO,IAAI,CAACJ,UAAU;EAC1B;EACA;AACJ;AACA;AACA;AACA;EACI,IAAID,WAAWA,CAAA,EAAG;IACd,OAAO,IAAI,CAACE,eAAe;EAC/B;AACJ;AACAR,OAAO,CAACE,eAAe,GAAGA,eAAe","ignoreList":[]},"metadata":{},"sourceType":"script","externalDependencies":[]}