import { IRestResponse } from "../common.browser/Exports"; import { IAudioSource } from "../common/Exports"; import { SpeakerIdentificationModel, SpeakerVerificationModel, VoiceProfile, VoiceProfileType } from "../sdk/Exports"; import { SpeakerRecognitionConfig } from "./Exports"; /** * Implements methods for speaker recognition classes, sending requests to endpoint * and parsing response into expected format * @class SpeakerIdMessageAdapter */ export declare class SpeakerIdMessageAdapter { private privRestAdapter; private privUri; private privApiVersion; constructor(config: SpeakerRecognitionConfig); /** * Sends create profile request to endpoint. * @function * @param {VoiceProfileType} profileType - type of voice profile to create. * @param {string} lang - language/locale of voice profile * @public * @returns {Promise} promised rest response containing id of created profile. */ createProfile(profileType: VoiceProfileType, lang: string): Promise; /** * Sends create enrollment request to endpoint. * @function * @param {VoiceProfile} profileType - voice profile for which to create new enrollment. * @param {IAudioSource} audioSource - audioSource from which to pull data to send * @public * @returns {Promise} rest response to enrollment request. */ createEnrollment(profile: VoiceProfile, audioSource: IAudioSource): Promise; /** * Sends verification request to endpoint. * @function * @param {SpeakerVerificationModel} model - voice model to verify against. * @param {IAudioSource} audioSource - audioSource from which to pull data to send * @public * @returns {Promise} rest response to enrollment request. */ verifySpeaker(model: SpeakerVerificationModel, audioSource: IAudioSource): Promise; /** * Sends identification request to endpoint. * @function * @param {SpeakerIdentificationModel} model - voice profiles against which to identify. * @param {IAudioSource} audioSource - audioSource from which to pull data to send * @public * @returns {Promise} rest response to enrollment request. */ identifySpeaker(model: SpeakerIdentificationModel, audioSource: IAudioSource): Promise; /** * Sends profile status request to endpoint. * @function * @param {VoiceProfile} profile - voice profile to check. * @public * @returns {Promise} rest response to status request */ getProfileStatus(profile: VoiceProfile): Promise; /** * Sends get all profiles request to endpoint. * @function * @param {VoiceProfileType} profileType - type of profiles to return list of * @public * @returns {Promise} promised rest response containing all profiles */ getProfiles(profileType: VoiceProfileType): Promise; /** * Sends get activation/auth phrases request to endpoint. * @function * @param {VoiceProfileType} profileType - type of profiles to return phrases for * @param {string} lang - language/locale of voice profile * @public * @returns {Promise} promised rest response containing list of valid phrases */ getPhrases(profileType: VoiceProfileType, lang: string): Promise; /** * Sends delete profile request to endpoint. * @function * @param {VoiceProfile} profile - voice profile to delete. * @public * @returns {Promise} rest response to deletion request */ deleteProfile(profile: VoiceProfile): Promise; /** * Sends reset profile request to endpoint. * @function * @param {VoiceProfile} profile - voice profile to reset enrollments for. * @public * @returns {Promise} rest response to reset request */ resetProfile(profile: VoiceProfile): Promise; private getOperationUri; private getQueryParams; }