{"version":3,"sources":["src/common.speech/ServiceMessages/SpeechKeyword.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,cAAc;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB;AAED,qBAAa,aAAc,YAAW,cAAc;IAChD,OAAO,CAAC,iBAAiB,CAAiB;IAE1C,OAAO;WAKO,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,aAAa;IAIvE,IAAW,MAAM,IAAI,MAAM,CAE1B;IAED,IAAW,IAAI,IAAI,MAAM,CAExB;IAED,IAAW,MAAM,IAAI,MAAM,CAE1B;IAED,IAAW,QAAQ,IAAI,MAAM,CAE5B;IAEM,MAAM,IAAI,MAAM;CAG1B","file":"SpeechKeyword.d.ts","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\n\n// speech.keyword\nexport interface ISpeechKeyword {\n    Status: string;\n    Text: string;\n    Offset: number;\n    Duration: number;\n    [key: string]: any;\n}\n\nexport class SpeechKeyword implements ISpeechKeyword {\n    private privSpeechKeyword: ISpeechKeyword;\n\n    private constructor(json: string, baseOffset: number) {\n        this.privSpeechKeyword = JSON.parse(json) as ISpeechKeyword;\n        this.privSpeechKeyword.Offset += baseOffset;\n    }\n\n    public static fromJSON(json: string, baseOffset: number): SpeechKeyword {\n        return new SpeechKeyword(json, baseOffset);\n    }\n\n    public get Status(): string {\n        return this.privSpeechKeyword.Status;\n    }\n\n    public get Text(): string {\n        return this.privSpeechKeyword.Text;\n    }\n\n    public get Offset(): number {\n        return this.privSpeechKeyword.Offset;\n    }\n\n    public get Duration(): number {\n        return this.privSpeechKeyword.Duration;\n    }\n\n    public asJson(): string {\n        return JSON.stringify(this.privSpeechKeyword);\n    }\n}\n"]}