public virtual Enrollment Enroll(Stream audioStream, Guid id)
 {
     return(PolicyService.ExecuteRetryAndCapture400Errors(
                "SpeakerVerificationService.Enroll",
                ApiKeys.SpeakerRecognitionRetryInSeconds,
                () =>
     {
         var result = SpeakerVerificationRepository.Enroll(audioStream, id);
         return result;
     },
                null));
 }
Beispiel #2
0
        public virtual Enrollment Enroll(Stream audioStream, Guid id)
        {
            try
            {
                var result = SpeakerVerificationRepository.Enroll(audioStream, id);

                return(result);
            }
            catch (Exception ex)
            {
                Logger.Error("SpeakerVerificationService.Enroll failed", this, ex);
            }

            return(null);
        }