@hahnpro/ms-speech-sdk
Version:
Microsoft Cognitive Services Speech SDK for JavaScript
1 lines • 1.41 kB
Source Map (JSON)
{"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.\n// Licensed under the MIT license.\n\nimport { Contracts } from \"./Contracts.js\";\nimport {\n ResultReason,\n VoiceProfileResult\n} from \"./Exports.js\";\n\n/**\n * Output format\n * @class VoiceProfilePhraseResult\n */\nexport class VoiceProfilePhraseResult extends VoiceProfileResult {\n private privPhrases: string[] = [];\n private privType: string;\n\n public constructor(reason: ResultReason, statusText: string, type: string, phraseArray: string[]) {\n super(reason, statusText);\n Contracts.throwIfNullOrUndefined(phraseArray, \"phrase array\");\n this.privType = type;\n if (!!phraseArray && !!phraseArray[0]) {\n this.privPhrases = phraseArray;\n }\n }\n\n public get phrases(): string[] {\n return this.privPhrases;\n }\n\n public get type(): string {\n return this.privType;\n }\n}\n"]}