public void OnNoiseCompleted(NoiseDetectedRequest noiseDetectedRequest) { //if a user is logged in now change of state! if (!_mirrorStateServices.GetCurrentUser().IsDefaultUser) { return; } switch (_mirrorStateServices.GetCurrentDetectionState()) { case VoiceUseCasesState.UserDetection: _authenticateUserUseCase.Authenticate(noiseDetectedRequest.RecordedAudio); break; case VoiceUseCasesState.EnrollmentDetection: _userEnrollmentUseCase.Enroll(noiseDetectedRequest.RecordedAudio); break; default: throw new ArgumentOutOfRangeException(); } }
public void OnNoiseCompleted(NoiseDetectedRequest noiseDetectedRequest) { throw new System.NotImplementedException(); }