The last step is to identify the speaker, which we will do in the HomeView and corresponding HomeViewModel. We do not need to modify the UI much, but we do need to add two buttons, to start and stop the recording. Alternatively, if you are not using a microphone, you can get away with one button for browsing to an audio file. Either way, add corresponding ICommand properties in the ViewModel.
We also need to add private members for the Recording class, and SpeakerIdentification class. Both should be created in the constructor, where we should inject ISpeakerIdentificationServiceClient as well.
In the Initialize function, subscribe to the required events:
_speakerIdentification.OnSpeakerIdentificationError += OnSpeakerIdentificationError; ...