UNPKG

microsoft-cognitiveservices-speech-sdk

Version:
1 lines 1.5 kB
{"version":3,"sources":["src/common.speech/AgentConfig.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,qBAAa,WAAW;IACpB,OAAO,CAAC,WAAW,CAAe;IAE3B,YAAY,IAAI,MAAM;IAItB,GAAG,IAAI,YAAY;IAI1B;;;OAGG;IACI,GAAG,CAAC,KAAK,EAAE,YAAY,GAAG,IAAI;CAGxC;AAED,MAAM,WAAW,YAAY;IACzB,OAAO,EAAE;QACL,QAAQ,EAAE,MAAM,CAAC;QACjB,YAAY,EAAE,MAAM,CAAC;QACrB,cAAc,EAAE,MAAM,CAAC;QACvB,MAAM,EAAE,MAAM,CAAC;QACf,eAAe,EAAE,MAAM,CAAC;QACxB,cAAc,EAAE,MAAM,CAAC;KAC1B,CAAC;IACF,OAAO,EAAE,MAAM,CAAC;CACnB","file":"AgentConfig.d.ts","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT license.\r\n\r\n/**\r\n * Represents the JSON used in the agent.config message sent to the speech service.\r\n */\r\nexport class AgentConfig {\r\n private iPrivConfig: IAgentConfig;\r\n\r\n public toJsonString(): string {\r\n return JSON.stringify(this.iPrivConfig);\r\n }\r\n\r\n public get(): IAgentConfig {\r\n return this.iPrivConfig;\r\n }\r\n\r\n /**\r\n * Setter for the agent.config object.\r\n * @param value a JSON serializable object.\r\n */\r\n public set(value: IAgentConfig): void {\r\n this.iPrivConfig = value;\r\n }\r\n}\r\n\r\nexport interface IAgentConfig {\r\n botInfo: {\r\n commType: string;\r\n connectionId: string;\r\n conversationId: string;\r\n fromId: string;\r\n commandsCulture: string;\r\n ttsAudioFormat: string;\r\n };\r\n version: number;\r\n}\r\n"]}