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.AudioStreamNodeErrorEvent = exports.AudioStreamNodeDetachedEvent = exports.AudioStreamNodeAttachedEvent = exports.AudioStreamNodeAttachingEvent = exports.AudioStreamNodeEvent = exports.AudioSourceErrorEvent = exports.AudioSourceOffEvent = exports.AudioSourceReadyEvent = exports.AudioSourceInitializingEvent = exports.AudioSourceEvent = void 0;\n/* eslint-disable max-classes-per-file */\nconst PlatformEvent_js_1 = require(\"./PlatformEvent.js\");\nclass AudioSourceEvent extends PlatformEvent_js_1.PlatformEvent {\n constructor(eventName, audioSourceId, eventType = PlatformEvent_js_1.EventType.Info) {\n super(eventName, eventType);\n this.privAudioSourceId = audioSourceId;\n }\n get audioSourceId() {\n return this.privAudioSourceId;\n }\n}\nexports.AudioSourceEvent = AudioSourceEvent;\nclass AudioSourceInitializingEvent extends AudioSourceEvent {\n constructor(audioSourceId) {\n super(\"AudioSourceInitializingEvent\", audioSourceId);\n }\n}\nexports.AudioSourceInitializingEvent = AudioSourceInitializingEvent;\nclass AudioSourceReadyEvent extends AudioSourceEvent {\n constructor(audioSourceId) {\n super(\"AudioSourceReadyEvent\", audioSourceId);\n }\n}\nexports.AudioSourceReadyEvent = AudioSourceReadyEvent;\nclass AudioSourceOffEvent extends AudioSourceEvent {\n constructor(audioSourceId) {\n super(\"AudioSourceOffEvent\", audioSourceId);\n }\n}\nexports.AudioSourceOffEvent = AudioSourceOffEvent;\nclass AudioSourceErrorEvent extends AudioSourceEvent {\n constructor(audioSourceId, error) {\n super(\"AudioSourceErrorEvent\", audioSourceId, PlatformEvent_js_1.EventType.Error);\n this.privError = error;\n }\n get error() {\n return this.privError;\n }\n}\nexports.AudioSourceErrorEvent = AudioSourceErrorEvent;\nclass AudioStreamNodeEvent extends AudioSourceEvent {\n constructor(eventName, audioSourceId, audioNodeId) {\n super(eventName, audioSourceId);\n this.privAudioNodeId = audioNodeId;\n }\n get audioNodeId() {\n return this.privAudioNodeId;\n }\n}\nexports.AudioStreamNodeEvent = AudioStreamNodeEvent;\nclass AudioStreamNodeAttachingEvent extends AudioStreamNodeEvent {\n constructor(audioSourceId, audioNodeId) {\n super(\"AudioStreamNodeAttachingEvent\", audioSourceId, audioNodeId);\n }\n}\nexports.AudioStreamNodeAttachingEvent = AudioStreamNodeAttachingEvent;\nclass AudioStreamNodeAttachedEvent extends AudioStreamNodeEvent {\n constructor(audioSourceId, audioNodeId) {\n super(\"AudioStreamNodeAttachedEvent\", audioSourceId, audioNodeId);\n }\n}\nexports.AudioStreamNodeAttachedEvent = AudioStreamNodeAttachedEvent;\nclass AudioStreamNodeDetachedEvent extends AudioStreamNodeEvent {\n constructor(audioSourceId, audioNodeId) {\n super(\"AudioStreamNodeDetachedEvent\", audioSourceId, audioNodeId);\n }\n}\nexports.AudioStreamNodeDetachedEvent = AudioStreamNodeDetachedEvent;\nclass AudioStreamNodeErrorEvent extends AudioStreamNodeEvent {\n constructor(audioSourceId, audioNodeId, error) {\n super(\"AudioStreamNodeErrorEvent\", audioSourceId, audioNodeId);\n this.privError = error;\n }\n get error() {\n return this.privError;\n }\n}\nexports.AudioStreamNodeErrorEvent = AudioStreamNodeErrorEvent;","map":{"version":3,"names":["Object","defineProperty","exports","value","AudioStreamNodeErrorEvent","AudioStreamNodeDetachedEvent","AudioStreamNodeAttachedEvent","AudioStreamNodeAttachingEvent","AudioStreamNodeEvent","AudioSourceErrorEvent","AudioSourceOffEvent","AudioSourceReadyEvent","AudioSourceInitializingEvent","AudioSourceEvent","PlatformEvent_js_1","require","PlatformEvent","constructor","eventName","audioSourceId","eventType","EventType","Info","privAudioSourceId","error","Error","privError","audioNodeId","privAudioNodeId"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/AudioSourceEvents.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.AudioStreamNodeErrorEvent = exports.AudioStreamNodeDetachedEvent = exports.AudioStreamNodeAttachedEvent = exports.AudioStreamNodeAttachingEvent = exports.AudioStreamNodeEvent = exports.AudioSourceErrorEvent = exports.AudioSourceOffEvent = exports.AudioSourceReadyEvent = exports.AudioSourceInitializingEvent = exports.AudioSourceEvent = void 0;\n/* eslint-disable max-classes-per-file */\nconst PlatformEvent_js_1 = require(\"./PlatformEvent.js\");\nclass AudioSourceEvent extends PlatformEvent_js_1.PlatformEvent {\n constructor(eventName, audioSourceId, eventType = PlatformEvent_js_1.EventType.Info) {\n super(eventName, eventType);\n this.privAudioSourceId = audioSourceId;\n }\n get audioSourceId() {\n return this.privAudioSourceId;\n }\n}\nexports.AudioSourceEvent = AudioSourceEvent;\nclass AudioSourceInitializingEvent extends AudioSourceEvent {\n constructor(audioSourceId) {\n super(\"AudioSourceInitializingEvent\", audioSourceId);\n }\n}\nexports.AudioSourceInitializingEvent = AudioSourceInitializingEvent;\nclass AudioSourceReadyEvent extends AudioSourceEvent {\n constructor(audioSourceId) {\n super(\"AudioSourceReadyEvent\", audioSourceId);\n }\n}\nexports.AudioSourceReadyEvent = AudioSourceReadyEvent;\nclass AudioSourceOffEvent extends AudioSourceEvent {\n constructor(audioSourceId) {\n super(\"AudioSourceOffEvent\", audioSourceId);\n }\n}\nexports.AudioSourceOffEvent = AudioSourceOffEvent;\nclass AudioSourceErrorEvent extends AudioSourceEvent {\n constructor(audioSourceId, error) {\n super(\"AudioSourceErrorEvent\", audioSourceId, PlatformEvent_js_1.EventType.Error);\n this.privError = error;\n }\n get error() {\n return this.privError;\n }\n}\nexports.AudioSourceErrorEvent = AudioSourceErrorEvent;\nclass AudioStreamNodeEvent extends AudioSourceEvent {\n constructor(eventName, audioSourceId, audioNodeId) {\n super(eventName, audioSourceId);\n this.privAudioNodeId = audioNodeId;\n }\n get audioNodeId() {\n return this.privAudioNodeId;\n }\n}\nexports.AudioStreamNodeEvent = AudioStreamNodeEvent;\nclass AudioStreamNodeAttachingEvent extends AudioStreamNodeEvent {\n constructor(audioSourceId, audioNodeId) {\n super(\"AudioStreamNodeAttachingEvent\", audioSourceId, audioNodeId);\n }\n}\nexports.AudioStreamNodeAttachingEvent = AudioStreamNodeAttachingEvent;\nclass AudioStreamNodeAttachedEvent extends AudioStreamNodeEvent {\n constructor(audioSourceId, audioNodeId) {\n super(\"AudioStreamNodeAttachedEvent\", audioSourceId, audioNodeId);\n }\n}\nexports.AudioStreamNodeAttachedEvent = AudioStreamNodeAttachedEvent;\nclass AudioStreamNodeDetachedEvent extends AudioStreamNodeEvent {\n constructor(audioSourceId, audioNodeId) {\n super(\"AudioStreamNodeDetachedEvent\", audioSourceId, audioNodeId);\n }\n}\nexports.AudioStreamNodeDetachedEvent = AudioStreamNodeDetachedEvent;\nclass AudioStreamNodeErrorEvent extends AudioStreamNodeEvent {\n constructor(audioSourceId, audioNodeId, error) {\n super(\"AudioStreamNodeErrorEvent\", audioSourceId, audioNodeId);\n this.privError = error;\n }\n get error() {\n return this.privError;\n }\n}\nexports.AudioStreamNodeErrorEvent = AudioStreamNodeErrorEvent;\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,yBAAyB,GAAGF,OAAO,CAACG,4BAA4B,GAAGH,OAAO,CAACI,4BAA4B,GAAGJ,OAAO,CAACK,6BAA6B,GAAGL,OAAO,CAACM,oBAAoB,GAAGN,OAAO,CAACO,qBAAqB,GAAGP,OAAO,CAACQ,mBAAmB,GAAGR,OAAO,CAACS,qBAAqB,GAAGT,OAAO,CAACU,4BAA4B,GAAGV,OAAO,CAACW,gBAAgB,GAAG,KAAK,CAAC;AAC/V;AACA,MAAMC,kBAAkB,GAAGC,OAA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