@voice-ping/cognitive-services-speech
Version:
VoicePing Cognitive Services Speech SDK for JavaScript forked from Microsoft
1 lines • 966 B
Source Map (JSON)
{"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;IAIpD,IAAW,MAAM,IAAI,MAAM,CAE1B;CACJ","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"]}