Hi . I am a student doing a voice-related project with c#.
I already used Azure Bing Speech API and Google Cloud Speech API to get people's voice as text.
But I also need Azure Speaker Recognition API to identify and verify individual speaker using voice.
However, there aren't many information about this API even though Google Searching. And Azure site(especially, part that identify and verify speaker using wav file containing the user's voice) is so simple..
so I can't know how to load wav file to identify and verify speaker in c# code.
Have you used the Azure Speaker Recognition API?
Please. Help me.
What I have tried:
following is sample code on the Azure Site.
https://westus.dev.cognitive.microsoft.com/docs/services/563309b6778daf02acc0a508/operations/5645c725ca73070ee8845bd6
static async void MakeRequest()
{
var client = new HttpClient();
var queryString = HttpUtility.ParseQueryString(string.Empty);
// Request headers
client.DefaultRequestHeaders.Add("Ocp-Apim-Subscription-Key", "subscription-key");
// Request parameters
queryString["shortAudio"] = "true";
var uri = "https://westus.api.cognitive.microsoft.com/spid/v1.0/identify?identificationProfileIds={identificationProfileIds}&" + queryString;
HttpResponseMessage response;
// Request body
byte[] byteData = Encoding.UTF8.GetBytes("{body}");
using (var content = new ByteArrayContent(byteData))
{
content.Headers.ContentType = new MediaTypeHeaderValue("application/json");
response = await client.PostAsync(uri, content);
}
}