private async void OnSpeakerRecordingAvailable(object sender, RecordingAudioAvailableEventArgs e) { try { List <Guid> profiles = await _speakerIdentification.ListSpeakerProfiles(); _speakerIdentification.IdentifySpeaker(e.AudioStream, profiles.ToArray()); } catch (Exception ex) { Debug.WriteLine(ex.Message); } }
private async void GetSpeakerProfiles() { List <Guid> profiles = await _speakerIdentification.ListSpeakerProfiles(); if (profiles == null) { return; } foreach (Guid profile in profiles) { SpeakerProfiles.Add(profile); } }