UNPKG

@euirim/microsoft-cognitiveservices-speech-sdk

Version:
1 lines 956 B
{"version":3,"sources":["src/common.speech/ServiceMessages/SpeechDetected.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,eAAe;IAC5B,MAAM,EAAE,MAAM,CAAC;CAClB;AAED,qBAAa,cAAe,YAAW,eAAe;IAClD,OAAO,CAAC,uBAAuB,CAAkB;IAEjD,OAAO;WAIO,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc;aAIzC,MAAM,EAAI,MAAM;CAG9B","file":"SpeechDetected.d.ts","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\n\n// speech.endDetected\nexport interface ISpeechDetected {\n Offset: number;\n}\n\nexport class SpeechDetected implements ISpeechDetected {\n private privSpeechStartDetected: ISpeechDetected;\n\n private constructor(json: string) {\n this.privSpeechStartDetected = JSON.parse(json);\n }\n\n public static fromJSON(json: string): SpeechDetected {\n return new SpeechDetected(json);\n }\n\n public get Offset(): number {\n return this.privSpeechStartDetected.Offset;\n }\n}\n"]}