Esempio n. 1
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            SetContentView(Resource.Layout.Enrollment);

            SetControlHandlers();

            _recorder = new LowLevelRecorder();
            _isRecording = false;
            _haveRecording = false;
            HandleButtonState();

            _api = new SpeakerRecognitionApiWrapper(Constants.SPEAKER_RECOGNITION_ACCOUNT_KEY);
            ShowAvailableEnrollmentPhrases();
            GetOrCreateProfileId();
        }
Esempio n. 2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            SetContentView(Resource.Layout.Login);
            SetControlHandlers();

            _recorder = new LowLevelRecorder();
            _isRecording = false;
            _haveRecording = false;

            btnLogin.Enabled = false;
            HandleRecordingButtonState();

            _api = new SpeakerRecognitionApiWrapper(Constants.SPEAKER_RECOGNITION_ACCOUNT_KEY);
            GetProfileId();
        }
Esempio n. 3
0
        private void btnResetProfile_Click(object sender, EventArgs e)
        {
            var api = new SpeakerRecognitionApiWrapper(Constants.SPEAKER_RECOGNITION_ACCOUNT_KEY);
            api.ResetVerificationEnrollments(_profileId);

            txtVerificationPhrase.Text = "Please start recording with one of the above phrases";
            txtRemainingEnrollments.Text = "3";
        }