5bbb8264019c4e5a42f1c86594125252854f963fdf6d44ef9eb8a04bf51d8847.json 3.0 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.ConversationCommon = void 0;\nclass ConversationCommon {\n constructor(audioConfig) {\n this.privAudioConfig = audioConfig;\n }\n handleCallback(cb, err) {\n if (!!cb) {\n try {\n cb();\n } catch (e) {\n if (!!err) {\n err(e);\n }\n }\n cb = undefined;\n }\n }\n handleError(error, err) {\n if (!!err) {\n if (error instanceof Error) {\n const typedError = error;\n err(typedError.name + \": \" + typedError.message);\n } else {\n err(error);\n }\n }\n }\n}\nexports.ConversationCommon = ConversationCommon;","map":{"version":3,"names":["Object","defineProperty","exports","value","ConversationCommon","constructor","audioConfig","privAudioConfig","handleCallback","cb","err","e","undefined","handleError","error","Error","typedError","name","message"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Transcription/ConversationCommon.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.ConversationCommon = void 0;\nclass ConversationCommon {\n constructor(audioConfig) {\n this.privAudioConfig = audioConfig;\n }\n handleCallback(cb, err) {\n if (!!cb) {\n try {\n cb();\n }\n catch (e) {\n if (!!err) {\n err(e);\n }\n }\n cb = undefined;\n }\n }\n handleError(error, err) {\n if (!!err) {\n if (error instanceof Error) {\n const typedError = error;\n err(typedError.name + \": \" + typedError.message);\n }\n else {\n err(error);\n }\n }\n }\n}\nexports.ConversationCommon = ConversationCommon;\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,kBAAkB,GAAG,KAAK,CAAC;AACnC,MAAMA,kBAAkB,CAAC;EACrBC,WAAWA,CAACC,WAAW,EAAE;IACrB,IAAI,CAACC,eAAe,GAAGD,WAAW;EACtC;EACAE,cAAcA,CAACC,EAAE,EAAEC,GAAG,EAAE;IACpB,IAAI,CAAC,CAACD,EAAE,EAAE;MACN,IAAI;QACAA,EAAE,CAAC,CAAC;MACR,CAAC,CACD,OAAOE,CAAC,EAAE;QACN,IAAI,CAAC,CAACD,GAAG,EAAE;UACPA,GAAG,CAACC,CAAC,CAAC;QACV;MACJ;MACAF,EAAE,GAAGG,SAAS;IAClB;EACJ;EACAC,WAAWA,CAACC,KAAK,EAAEJ,GAAG,EAAE;IACpB,IAAI,CAAC,CAACA,GAAG,EAAE;MACP,IAAII,KAAK,YAAYC,KAAK,EAAE;QACxB,MAAMC,UAAU,GAAGF,KAAK;QACxBJ,GAAG,CAACM,UAAU,CAACC,IAAI,GAAG,IAAI,GAAGD,UAAU,CAACE,OAAO,CAAC;MACpD,CAAC,MACI;QACDR,GAAG,CAACI,KAAK,CAAC;MACd;IACJ;EACJ;AACJ;AACAZ,OAAO,CAACE,kBAAkB,GAAGA,kBAAkB","ignoreList":[]},"metadata":{},"sourceType":"script","externalDependencies":[]}