4492002ef78b9dfef6cfba8bba27c10550eead227c0956d1b757e9a63f1cdca5.json 3.3 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.VoiceProfilePhraseResult = void 0;\nconst Contracts_js_1 = require(\"./Contracts.js\");\nconst Exports_js_1 = require(\"./Exports.js\");\n/**\n * Output format\n * @class VoiceProfilePhraseResult\n */\nclass VoiceProfilePhraseResult extends Exports_js_1.VoiceProfileResult {\n constructor(reason, statusText, type, phraseArray) {\n super(reason, statusText);\n this.privPhrases = [];\n Contracts_js_1.Contracts.throwIfNullOrUndefined(phraseArray, \"phrase array\");\n this.privType = type;\n if (!!phraseArray && !!phraseArray[0]) {\n this.privPhrases = phraseArray;\n }\n }\n get phrases() {\n return this.privPhrases;\n }\n get type() {\n return this.privType;\n }\n}\nexports.VoiceProfilePhraseResult = VoiceProfilePhraseResult;","map":{"version":3,"names":["Object","defineProperty","exports","value","VoiceProfilePhraseResult","Contracts_js_1","require","Exports_js_1","VoiceProfileResult","constructor","reason","statusText","type","phraseArray","privPhrases","Contracts","throwIfNullOrUndefined","privType","phrases"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/VoiceProfilePhraseResult.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.VoiceProfilePhraseResult = void 0;\nconst Contracts_js_1 = require(\"./Contracts.js\");\nconst Exports_js_1 = require(\"./Exports.js\");\n/**\n * Output format\n * @class VoiceProfilePhraseResult\n */\nclass VoiceProfilePhraseResult extends Exports_js_1.VoiceProfileResult {\n constructor(reason, statusText, type, phraseArray) {\n super(reason, statusText);\n this.privPhrases = [];\n Contracts_js_1.Contracts.throwIfNullOrUndefined(phraseArray, \"phrase array\");\n this.privType = type;\n if (!!phraseArray && !!phraseArray[0]) {\n this.privPhrases = phraseArray;\n }\n }\n get phrases() {\n return this.privPhrases;\n }\n get type() {\n return this.privType;\n }\n}\nexports.VoiceProfilePhraseResult = VoiceProfilePhraseResult;\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,wBAAwB,GAAG,KAAK,CAAC;AACzC,MAAMC,cAAc,GAAGC,OAAO,CAAC,gBAAgB,CAAC;AAChD,MAAMC,YAAY,GAAGD,OAAO,CAAC,cAAc,CAAC;AAC5C;AACA;AACA;AACA;AACA,MAAMF,wBAAwB,SAASG,YAAY,CAACC,kBAAkB,CAAC;EACnEC,WAAWA,CAACC,MAAM,EAAEC,UAAU,EAAEC,IAAI,EAAEC,WAAW,EAAE;IAC/C,KAAK,CAACH,MAAM,EAAEC,UAAU,CAAC;IACzB,IAAI,CAACG,WAAW,GAAG,EAAE;IACrBT,cAAc,CAACU,SAAS,CAACC,sBAAsB,CAACH,WAAW,EAAE,cAAc,CAAC;IAC5E,IAAI,CAACI,QAAQ,GAAGL,IAAI;IACpB,IAAI,CAAC,CAACC,WAAW,IAAI,CAAC,CAACA,WAAW,CAAC,CAAC,CAAC,EAAE;MACnC,IAAI,CAACC,WAAW,GAAGD,WAAW;IAClC;EACJ;EACA,IAAIK,OAAOA,CAAA,EAAG;IACV,OAAO,IAAI,CAACJ,WAAW;EAC3B;EACA,IAAIF,IAAIA,CAAA,EAAG;IACP,OAAO,IAAI,CAACK,QAAQ;EACxB;AACJ;AACAf,OAAO,CAACE,wBAAwB,GAAGA,wBAAwB","ignoreList":[]},"metadata":{},"sourceType":"script","externalDependencies":[]}