@euirim/microsoft-cognitiveservices-speech-sdk
Version:
Microsoft Cognitive Services Speech SDK for JavaScript
1 lines • 1.45 kB
Source Map (JSON)
{"version":3,"sources":["src/common.speech/ServiceMessages/TranslationSynthesisEnd.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAG7C,MAAM,WAAW,wBAAwB;IACrC,eAAe,EAAE,eAAe,CAAC;IACjC,aAAa,EAAE,MAAM,CAAC;CACzB;AAED,qBAAa,uBAAwB,YAAW,wBAAwB;IACpE,OAAO,CAAC,gBAAgB,CAA2B;IAEnD,OAAO;WAKO,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,uBAAuB;aAIlD,eAAe,EAAI,eAAe;aAIlC,aAAa,EAAI,MAAM;CAGrC","file":"TranslationSynthesisEnd.d.ts","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\n\nimport { SynthesisStatus } from \"../Exports\";\n\n// translation.synthesis.end\nexport interface ITranslationSynthesisEnd {\n SynthesisStatus: SynthesisStatus;\n FailureReason: string;\n}\n\nexport class TranslationSynthesisEnd implements ITranslationSynthesisEnd {\n private privSynthesisEnd: ITranslationSynthesisEnd;\n\n private constructor(json: string) {\n this.privSynthesisEnd = JSON.parse(json);\n this.privSynthesisEnd.SynthesisStatus = (SynthesisStatus as any)[this.privSynthesisEnd.SynthesisStatus];\n }\n\n public static fromJSON(json: string): TranslationSynthesisEnd {\n return new TranslationSynthesisEnd(json);\n }\n\n public get SynthesisStatus(): SynthesisStatus {\n return this.privSynthesisEnd.SynthesisStatus;\n }\n\n public get FailureReason(): string {\n return this.privSynthesisEnd.FailureReason;\n }\n}\n"]}