I'm Trying to identify the speakers like Speaker-1, Speaker-2..and so on from the audio Input(File/Microphone) in any language using Azure Speech Translator service. Audio Input may be in any language but I'm translating it into English using service. I can get result of translator service but speaker's were not tagged.
In code unable to get e.Result.UserID for speaker Identification.
Please help to get the solution for the problem.
Thank you.
Code sample I'm trying is as below
recognizer.Recognized += (s, e) =>
{
if (e.Result.Reason == ResultReason.TranslatedSpeech)
{
foreach (var element in e.Result.Translations)
{
Console.WriteLine($"TRANSLATING into '{element.Key}': {element.Value}");
}
}
Need the Output as per the attached screenshot - Speech Recognition
While there's no direct "UserID" property in the Azure Speech Translator service for C#, here are the relevant concepts and approaches to achieve speaker identification with ResultId :
To get element.value :