1 |
- {"ast":null,"code":"\"use strict\";\n\n// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\nvar _asyncToGenerator = require(\"F:/workspace/202226701027/huinongbao-app/node_modules/@babel/runtime/helpers/asyncToGenerator.js\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.SpeechServiceRecognizer = void 0;\nconst Exports_js_1 = require(\"../sdk/Exports.js\");\nconst Exports_js_2 = require(\"./Exports.js\");\n// eslint-disable-next-line max-classes-per-file\nclass SpeechServiceRecognizer extends Exports_js_2.ServiceRecognizerBase {\n constructor(authentication, connectionFactory, audioSource, recognizerConfig, speechRecognizer) {\n super(authentication, connectionFactory, audioSource, recognizerConfig, speechRecognizer);\n this.privSpeechRecognizer = speechRecognizer;\n }\n processTypeSpecificMessages(connectionMessage) {\n var _this = this;\n return _asyncToGenerator(function* () {\n let result;\n const resultProps = new Exports_js_1.PropertyCollection();\n resultProps.setProperty(Exports_js_1.PropertyId.SpeechServiceResponse_JsonResult, connectionMessage.textBody);\n let processed = false;\n switch (connectionMessage.path.toLowerCase()) {\n case \"speech.hypothesis\":\n case \"speech.fragment\":\n const hypothesis = Exports_js_2.SpeechHypothesis.fromJSON(connectionMessage.textBody);\n const offset = hypothesis.Offset + _this.privRequestSession.currentTurnAudioOffset;\n result = new Exports_js_1.SpeechRecognitionResult(_this.privRequestSession.requestId, Exports_js_1.ResultReason.RecognizingSpeech, hypothesis.Text, hypothesis.Duration, offset, hypothesis.Language, hypothesis.LanguageDetectionConfidence, undefined,\n // Speaker Id\n undefined, connectionMessage.textBody, resultProps);\n _this.privRequestSession.onHypothesis(offset);\n const ev = new Exports_js_1.SpeechRecognitionEventArgs(result, hypothesis.Duration, _this.privRequestSession.sessionId);\n if (!!_this.privSpeechRecognizer.recognizing) {\n try {\n _this.privSpeechRecognizer.recognizing(_this.privSpeechRecognizer, ev);\n /* eslint-disable no-empty */\n } catch (error) {\n // Not going to let errors in the event handler\n // trip things up.\n }\n }\n processed = true;\n break;\n case \"speech.phrase\":\n const simple = Exports_js_2.SimpleSpeechPhrase.fromJSON(connectionMessage.textBody);\n const resultReason = Exports_js_2.EnumTranslation.implTranslateRecognitionResult(simple.RecognitionStatus, _this.privExpectContentAssessmentResponse);\n _this.privRequestSession.onPhraseRecognized(_this.privRequestSession.currentTurnAudioOffset + simple.Offset + simple.Duration);\n if (Exports_js_1.ResultReason.Canceled === resultReason) {\n const cancelReason = Exports_js_2.EnumTranslation.implTranslateCancelResult(simple.RecognitionStatus);\n const cancellationErrorCode = Exports_js_2.EnumTranslation.implTranslateCancelErrorCode(simple.RecognitionStatus);\n yield _this.cancelRecognitionLocal(cancelReason, cancellationErrorCode, Exports_js_2.EnumTranslation.implTranslateErrorDetails(cancellationErrorCode));\n } else {\n if (!(_this.privRequestSession.isSpeechEnded && resultReason === Exports_js_1.ResultReason.NoMatch && simple.RecognitionStatus !== Exports_js_2.RecognitionStatus.InitialSilenceTimeout)) {\n if (_this.privRecognizerConfig.parameters.getProperty(Exports_js_2.OutputFormatPropertyName) === Exports_js_1.OutputFormat[Exports_js_1.OutputFormat.Simple]) {\n result = new Exports_js_1.SpeechRecognitionResult(_this.privRequestSession.requestId, resultReason, simple.DisplayText, simple.Duration, simple.Offset + _this.privRequestSession.currentTurnAudioOffset, simple.Language, simple.LanguageDetectionConfidence, undefined,\n // Speaker Id\n undefined, connectionMessage.textBody, resultProps);\n } else {\n const detailed = Exports_js_2.DetailedSpeechPhrase.fromJSON(connectionMessage.textBody);\n const totalOffset = detailed.Offset + _this.privRequestSession.currentTurnAudioOffset;\n const offsetCorrectedJson = detailed.getJsonWithCorrectedOffsets(totalOffset);\n result = new Exports_js_1.SpeechRecognitionResult(_this.privRequestSession.requestId, resultReason, detailed.RecognitionStatus === Exports_js_2.RecognitionStatus.Success ? detailed.NBest[0].Display : undefined, detailed.Duration, totalOffset, detailed.Language, detailed.LanguageDetectionConfidence, undefined,\n // Speaker Id\n undefined, offsetCorrectedJson, resultProps);\n }\n const event = new Exports_js_1.SpeechRecognitionEventArgs(result, result.offset, _this.privRequestSession.sessionId);\n if (!!_this.privSpeechRecognizer.recognized) {\n try {\n _this.privSpeechRecognizer.recognized(_this.privSpeechRecognizer, event);\n /* eslint-disable no-empty */\n } catch (error) {\n // Not going to let errors in the event handler\n // trip things up.\n }\n }\n }\n if (!!_this.privSuccessCallback) {\n try {\n _this.privSuccessCallback(result);\n } catch (e) {\n if (!!_this.privErrorCallback) {\n _this.privErrorCallback(e);\n }\n }\n // Only invoke the call back once.\n // and if it's successful don't invoke the\n // error after that.\n _this.privSuccessCallback = undefined;\n _this.privErrorCallback = undefined;\n }\n }\n processed = true;\n break;\n default:\n break;\n }\n return processed;\n })();\n }\n // Cancels recognition.\n cancelRecognition(sessionId, requestId, cancellationReason, errorCode, error) {\n const properties = new Exports_js_1.PropertyCollection();\n properties.setProperty(Exports_js_2.CancellationErrorCodePropertyName, Exports_js_1.CancellationErrorCode[errorCode]);\n if (!!this.privSpeechRecognizer.canceled) {\n const cancelEvent = new Exports_js_1.SpeechRecognitionCanceledEventArgs(cancellationReason, error, errorCode, undefined, sessionId);\n try {\n this.privSpeechRecognizer.canceled(this.privSpeechRecognizer, cancelEvent);\n /* eslint-disable no-empty */\n } catch {}\n }\n if (!!this.privSuccessCallback) {\n const result = new Exports_js_1.SpeechRecognitionResult(requestId, Exports_js_1.ResultReason.Canceled, undefined,\n // Text\n undefined,\n // Duration\n undefined,\n // Offset\n undefined,\n // Language\n undefined,\n // Language Detection Confidence\n undefined,\n // Speaker Id\n error, undefined,\n // Json\n properties);\n try {\n this.privSuccessCallback(result);\n this.privSuccessCallback = undefined;\n /* eslint-disable no-empty */\n } catch {}\n }\n }\n}\nexports.SpeechServiceRecognizer = SpeechServiceRecognizer;","map":{"version":3,"names":["_asyncToGenerator","require","default","Object","defineProperty","exports","value","SpeechServiceRecognizer","Exports_js_1","Exports_js_2","ServiceRecognizerBase","constructor","authentication","connectionFactory","audioSource","recognizerConfig","speechRecognizer","privSpeechRecognizer","processTypeSpecificMessages","connectionMessage","_this","result","resultProps","PropertyCollection","setProperty","PropertyId","SpeechServiceResponse_JsonResult","textBody","processed","path","toLowerCase","hypothesis","SpeechHypothesis","fromJSON","offset","Offset","privRequestSession","currentTurnAudioOffset","SpeechRecognitionResult","requestId","ResultReason","RecognizingSpeech","Text","Duration","Language","LanguageDetectionConfidence","undefined","onHypothesis","ev","SpeechRecognitionEventArgs","sessionId","recognizing","error","simple","SimpleSpeechPhrase","resultReason","EnumTranslation","implTranslateRecognitionResult","RecognitionStatus","privExpectContentAssessmentResponse","onPhraseRecognized","Canceled","cancelReason","implTranslateCancelResult","cancellationErrorCode","implTranslateCancelErrorCode","cancelRecognitionLocal","implTranslateErrorDetails","isSpeechEnded","NoMatch","InitialSilenceTimeout","privRecognizerConfig","parameters","getProperty","OutputFormatPropertyName","OutputFormat","Simple","DisplayText","detailed","DetailedSpeechPhrase","totalOffset","offsetCorrectedJson","getJsonWithCorrectedOffsets","Success","NBest","Display","event","recognized","privSuccessCallback","e","privErrorCallback","cancelRecognition","cancellationReason","errorCode","properties","CancellationErrorCodePropertyName","CancellationErrorCode","canceled","cancelEvent","SpeechRecognitionCanceledEventArgs"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/SpeechServiceRecognizer.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.SpeechServiceRecognizer = void 0;\nconst Exports_js_1 = require(\"../sdk/Exports.js\");\nconst Exports_js_2 = require(\"./Exports.js\");\n// eslint-disable-next-line max-classes-per-file\nclass SpeechServiceRecognizer extends Exports_js_2.ServiceRecognizerBase {\n constructor(authentication, connectionFactory, audioSource, recognizerConfig, speechRecognizer) {\n super(authentication, connectionFactory, audioSource, recognizerConfig, speechRecognizer);\n this.privSpeechRecognizer = speechRecognizer;\n }\n async processTypeSpecificMessages(connectionMessage) {\n let result;\n const resultProps = new Exports_js_1.PropertyCollection();\n resultProps.setProperty(Exports_js_1.PropertyId.SpeechServiceResponse_JsonResult, connectionMessage.textBody);\n let processed = false;\n switch (connectionMessage.path.toLowerCase()) {\n case \"speech.hypothesis\":\n case \"speech.fragment\":\n const hypothesis = Exports_js_2.SpeechHypothesis.fromJSON(connectionMessage.textBody);\n const offset = hypothesis.Offset + this.privRequestSession.currentTurnAudioOffset;\n result = new Exports_js_1.SpeechRecognitionResult(this.privRequestSession.requestId, Exports_js_1.ResultReason.RecognizingSpeech, hypothesis.Text, hypothesis.Duration, offset, hypothesis.Language, hypothesis.LanguageDetectionConfidence, undefined, // Speaker Id\n undefined, connectionMessage.textBody, resultProps);\n this.privRequestSession.onHypothesis(offset);\n const ev = new Exports_js_1.SpeechRecognitionEventArgs(result, hypothesis.Duration, this.privRequestSession.sessionId);\n if (!!this.privSpeechRecognizer.recognizing) {\n try {\n this.privSpeechRecognizer.recognizing(this.privSpeechRecognizer, ev);\n /* eslint-disable no-empty */\n }\n catch (error) {\n // Not going to let errors in the event handler\n // trip things up.\n }\n }\n processed = true;\n break;\n case \"speech.phrase\":\n const simple = Exports_js_2.SimpleSpeechPhrase.fromJSON(connectionMessage.textBody);\n const resultReason = Exports_js_2.EnumTranslation.implTranslateRecognitionResult(simple.RecognitionStatus, this.privExpectContentAssessmentResponse);\n this.privRequestSession.onPhraseRecognized(this.privRequestSession.currentTurnAudioOffset + simple.Offset + simple.Duration);\n if (Exports_js_1.ResultReason.Canceled === resultReason) {\n const cancelReason = Exports_js_2.EnumTranslation.implTranslateCancelResult(simple.RecognitionStatus);\n const cancellationErrorCode = Exports_js_2.EnumTranslation.implTranslateCancelErrorCode(simple.RecognitionStatus);\n await this.cancelRecognitionLocal(cancelReason, cancellationErrorCode, Exports_js_2.EnumTranslation.implTranslateErrorDetails(cancellationErrorCode));\n }\n else {\n if (!(this.privRequestSession.isSpeechEnded && resultReason === Exports_js_1.ResultReason.NoMatch && simple.RecognitionStatus !== Exports_js_2.RecognitionStatus.InitialSilenceTimeout)) {\n if (this.privRecognizerConfig.parameters.getProperty(Exports_js_2.OutputFormatPropertyName) === Exports_js_1.OutputFormat[Exports_js_1.OutputFormat.Simple]) {\n result = new Exports_js_1.SpeechRecognitionResult(this.privRequestSession.requestId, resultReason, simple.DisplayText, simple.Duration, simple.Offset + this.privRequestSession.currentTurnAudioOffset, simple.Language, simple.LanguageDetectionConfidence, undefined, // Speaker Id\n undefined, connectionMessage.textBody, resultProps);\n }\n else {\n const detailed = Exports_js_2.DetailedSpeechPhrase.fromJSON(connectionMessage.textBody);\n const totalOffset = detailed.Offset + this.privRequestSession.currentTurnAudioOffset;\n const offsetCorrectedJson = detailed.getJsonWithCorrectedOffsets(totalOffset);\n result = new Exports_js_1.SpeechRecognitionResult(this.privRequestSession.requestId, resultReason, detailed.RecognitionStatus === Exports_js_2.RecognitionStatus.Success ? detailed.NBest[0].Display : undefined, detailed.Duration, totalOffset, detailed.Language, detailed.LanguageDetectionConfidence, undefined, // Speaker Id\n undefined, offsetCorrectedJson, resultProps);\n }\n const event = new Exports_js_1.SpeechRecognitionEventArgs(result, result.offset, this.privRequestSession.sessionId);\n if (!!this.privSpeechRecognizer.recognized) {\n try {\n this.privSpeechRecognizer.recognized(this.privSpeechRecognizer, event);\n /* eslint-disable no-empty */\n }\n catch (error) {\n // Not going to let errors in the event handler\n // trip things up.\n }\n }\n }\n if (!!this.privSuccessCallback) {\n try {\n this.privSuccessCallback(result);\n }\n catch (e) {\n if (!!this.privErrorCallback) {\n this.privErrorCallback(e);\n }\n }\n // Only invoke the call back once.\n // and if it's successful don't invoke the\n // error after that.\n this.privSuccessCallback = undefined;\n this.privErrorCallback = undefined;\n }\n }\n processed = true;\n break;\n default:\n break;\n }\n return processed;\n }\n // Cancels recognition.\n cancelRecognition(sessionId, requestId, cancellationReason, errorCode, error) {\n const properties = new Exports_js_1.PropertyCollection();\n properties.setProperty(Exports_js_2.CancellationErrorCodePropertyName, Exports_js_1.CancellationErrorCode[errorCode]);\n if (!!this.privSpeechRecognizer.canceled) {\n const cancelEvent = new Exports_js_1.SpeechRecognitionCanceledEventArgs(cancellationReason, error, errorCode, undefined, sessionId);\n try {\n this.privSpeechRecognizer.canceled(this.privSpeechRecognizer, cancelEvent);\n /* eslint-disable no-empty */\n }\n catch { }\n }\n if (!!this.privSuccessCallback) {\n const result = new Exports_js_1.SpeechRecognitionResult(requestId, Exports_js_1.ResultReason.Canceled, undefined, // Text\n undefined, // Duration\n undefined, // Offset\n undefined, // Language\n undefined, // Language Detection Confidence\n undefined, // Speaker Id\n error, undefined, // Json\n properties);\n try {\n this.privSuccessCallback(result);\n this.privSuccessCallback = undefined;\n /* eslint-disable no-empty */\n }\n catch { }\n }\n }\n}\nexports.SpeechServiceRecognizer = SpeechServiceRecognizer;\n\n"],"mappings":"AAAA,YAAY;;AACZ;AACA;AAAA,IAAAA,iBAAA,GAAAC,OAAA,qGAAAC,OAAA;AACAC,MAAM,CAACC,cAAc,CAACC,OAAO,EAAE,YAAY,EAAE;EAAEC,KAAK,EAAE;AAAK,CAAC,CAAC;AAC7DD,OAAO,CAACE,uBAAuB,GAAG,KAAK,CAAC;AACxC,MAAMC,YAAY,GAAGP,OAAO,CAAC,mBAAmB,CAAC;AACjD,MAAMQ,YAAY,GAAGR,OAAO,CAAC,cAAc,CAAC;AAC5C;AACA,MAAMM,uBAAuB,SAASE,YAAY,CAACC,qBAAqB,CAAC;EACrEC,WAAWA,CAACC,cAAc,EAAEC,iBAAiB,EAAEC,WAAW,EAAEC,gBAAgB,EAAEC,gBAAgB,EAAE;IAC5F,KAAK,CAACJ,cAAc,EAAEC,iBAAiB,EAAEC,WAAW,EAAEC,gBAAgB,EAAEC,gBAAgB,CAAC;IACzF,IAAI,CAACC,oBAAoB,GAAGD,gBAAgB;EAChD;EACME,2BAA2BA,CAACC,iBAAiB,EAAE;IAAA,IAAAC,KAAA;IAAA,OAAApB,iBAAA;M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