UNPKG

microsoft-cognitiveservices-speech-sdk

Version:
1 lines 1.47 kB
{"version":3,"sources":["src/sdk/VoiceProfilePhraseResult.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,YAAY,EACZ,kBAAkB,EACrB,MAAM,cAAc,CAAC;AAEtB;;;GAGG;AACH,qBAAa,wBAAyB,SAAQ,kBAAkB;IAC5D,OAAO,CAAC,WAAW,CAAgB;IACnC,OAAO,CAAC,QAAQ,CAAS;gBAEN,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE;IAShG,IAAW,OAAO,IAAI,MAAM,EAAE,CAE7B;IAED,IAAW,IAAI,IAAI,MAAM,CAExB;CACJ","file":"VoiceProfilePhraseResult.d.ts","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT license.\r\n\r\nimport { Contracts } from \"./Contracts.js\";\r\nimport {\r\n ResultReason,\r\n VoiceProfileResult\r\n} from \"./Exports.js\";\r\n\r\n/**\r\n * Output format\r\n * @class VoiceProfilePhraseResult\r\n */\r\nexport class VoiceProfilePhraseResult extends VoiceProfileResult {\r\n private privPhrases: string[] = [];\r\n private privType: string;\r\n\r\n public constructor(reason: ResultReason, statusText: string, type: string, phraseArray: string[]) {\r\n super(reason, statusText);\r\n Contracts.throwIfNullOrUndefined(phraseArray, \"phrase array\");\r\n this.privType = type;\r\n if (!!phraseArray && !!phraseArray[0]) {\r\n this.privPhrases = phraseArray;\r\n }\r\n }\r\n\r\n public get phrases(): string[] {\r\n return this.privPhrases;\r\n }\r\n\r\n public get type(): string {\r\n return this.privType;\r\n }\r\n}\r\n"]}