{"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.KeywordRecognitionModel = void 0;\nconst Contracts_js_1 = require(\"./Contracts.js\");\n/**\n * Represents a keyword recognition model for recognizing when\n * the user says a keyword to initiate further speech recognition.\n * @class KeywordRecognitionModel\n */\nclass KeywordRecognitionModel {\n /**\n * Create and initializes a new instance.\n * @constructor\n */\n constructor() {\n this.privDisposed = false;\n return;\n }\n /**\n * Creates a keyword recognition model using the specified filename.\n * @member KeywordRecognitionModel.fromFile\n * @function\n * @public\n * @param {string} fileName - A string that represents file name for the keyword recognition model.\n * Note, the file can point to a zip file in which case the model\n * will be extracted from the zip.\n * @returns {KeywordRecognitionModel} The keyword recognition model being created.\n */\n static fromFile(fileName) {\n Contracts_js_1.Contracts.throwIfFileDoesNotExist(fileName, \"fileName\");\n throw new Error(\"Not yet implemented.\");\n }\n /**\n * Creates a keyword recognition model using the specified filename.\n * @member KeywordRecognitionModel.fromStream\n * @function\n * @public\n * @param {string} file - A File that represents file for the keyword recognition model.\n * Note, the file can point to a zip file in which case the model will be extracted from the zip.\n * @returns {KeywordRecognitionModel} The keyword recognition model being created.\n */\n static fromStream(file) {\n Contracts_js_1.Contracts.throwIfNull(file, \"file\");\n throw new Error(\"Not yet implemented.\");\n }\n /**\n * Dispose of associated resources.\n * @member KeywordRecognitionModel.prototype.close\n * @function\n * @public\n */\n close() {\n if (this.privDisposed) {\n return;\n }\n this.privDisposed = true;\n }\n}\nexports.KeywordRecognitionModel = KeywordRecognitionModel;","map":{"version":3,"names":["Object","defineProperty","exports","value","KeywordRecognitionModel","Contracts_js_1","require","constructor","privDisposed","fromFile","fileName","Contracts","throwIfFileDoesNotExist","Error","fromStream","file","throwIfNull","close"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/KeywordRecognitionModel.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.KeywordRecognitionModel = void 0;\nconst Contracts_js_1 = require(\"./Contracts.js\");\n/**\n * Represents a keyword recognition model for recognizing when\n * the user says a keyword to initiate further speech recognition.\n * @class KeywordRecognitionModel\n */\nclass KeywordRecognitionModel {\n /**\n * Create and initializes a new instance.\n * @constructor\n */\n constructor() {\n this.privDisposed = false;\n return;\n }\n /**\n * Creates a keyword recognition model using the specified filename.\n * @member KeywordRecognitionModel.fromFile\n * @function\n * @public\n * @param {string} fileName - A string that represents file name for the keyword recognition model.\n * Note, the file can point to a zip file in which case the model\n * will be extracted from the zip.\n * @returns {KeywordRecognitionModel} The keyword recognition model being created.\n */\n static fromFile(fileName) {\n Contracts_js_1.Contracts.throwIfFileDoesNotExist(fileName, \"fileName\");\n throw new Error(\"Not yet implemented.\");\n }\n /**\n * Creates a keyword recognition model using the specified filename.\n * @member KeywordRecognitionModel.fromStream\n * @function\n * @public\n * @param {string} file - A File that represents file for the keyword recognition model.\n * Note, the file can point to a zip file in which case the model will be extracted from the zip.\n * @returns {KeywordRecognitionModel} The keyword recognition model being created.\n */\n static fromStream(file) {\n Contracts_js_1.Contracts.throwIfNull(file, \"file\");\n throw new Error(\"Not yet implemented.\");\n }\n /**\n * Dispose of associated resources.\n * @member KeywordRecognitionModel.prototype.close\n * @function\n * @public\n */\n close() {\n if (this.privDisposed) {\n return;\n }\n this.privDisposed = true;\n }\n}\nexports.KeywordRecognitionModel = KeywordRecognitionModel;\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,uBAAuB,GAAG,KAAK,CAAC;AACxC,MAAMC,cAAc,GAAGC,OAAO,CAAC,gBAAgB,CAAC;AAChD;AACA;AACA;AACA;AACA;AACA,MAAMF,uBAAuB,CAAC;EAC1B;AACJ;AACA;AACA;EACIG,WAAWA,CAAA,EAAG;IACV,IAAI,CAACC,YAAY,GAAG,KAAK;IACzB;EACJ;EACA;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACI,OAAOC,QAAQA,CAACC,QAAQ,EAAE;IACtBL,cAAc,CAACM,SAAS,CAACC,uBAAuB,CAACF,QAAQ,EAAE,UAAU,CAAC;IACtE,MAAM,IAAIG,KAAK,CAAC,sBAAsB,CAAC;EAC3C;EACA;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACI,OAAOC,UAAUA,CAACC,IAAI,EAAE;IACpBV,cAAc,CAACM,SAAS,CAACK,WAAW,CAACD,IAAI,EAAE,MAAM,CAAC;IAClD,MAAM,IAAIF,KAAK,CAAC,sBAAsB,CAAC;EAC3C;EACA;AACJ;AACA;AACA;AACA;AACA;EACII,KAAKA,CAAA,EAAG;IACJ,IAAI,IAAI,CAACT,YAAY,EAAE;MACnB;IACJ;IACA,IAAI,CAACA,YAAY,GAAG,IAAI;EAC5B;AACJ;AACAN,OAAO,CAACE,uBAAuB,GAAGA,uBAAuB","ignoreList":[]},"metadata":{},"sourceType":"script","externalDependencies":[]}