{"version":3,"sources":["src/sdk/SpeakerVerificationModel.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,YAAY,EAEf,MAAM,WAAW,CAAC;AAEnB;;;;GAIG;AACH,qBAAa,wBAAwB;IACjC,OAAO,CAAC,gBAAgB,CAAe;IAEvC,OAAO;WAQO,WAAW,CAAC,OAAO,EAAE,YAAY,GAAG,wBAAwB;IAI1E,IAAW,YAAY,IAAI,YAAY,CAEtC;CACJ","file":"SpeakerVerificationModel.d.ts","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\n\nimport { Contracts } from \"./Contracts\";\nimport {\n    VoiceProfile,\n    VoiceProfileType,\n} from \"./Exports\";\n\n/**\n * Defines SpeakerVerificationModel class for Speaker Recognition\n * Model contains a profile against which to verify a speaker\n * @class SpeakerVerificationModel\n */\nexport class SpeakerVerificationModel {\n    private privVoiceProfile: VoiceProfile;\n\n    private constructor(profile: VoiceProfile) {\n        Contracts.throwIfNullOrUndefined(profile, \"VoiceProfile\");\n        if (profile.profileType === VoiceProfileType.TextIndependentIdentification) {\n            throw new Error(\"Verification model cannot be created from Identification profile\");\n        }\n        this.privVoiceProfile = profile;\n    }\n\n    public static fromProfile(profile: VoiceProfile): SpeakerVerificationModel {\n        return new SpeakerVerificationModel(profile);\n    }\n\n    public get voiceProfile(): VoiceProfile {\n        return this.privVoiceProfile;\n    }\n}\n"]}