MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.17k stars 21.3k forks source link

Persisting a VoiceProfile #59288

Closed patrickfgarvey closed 4 years ago

patrickfgarvey commented 4 years ago

[Enter feedback here] I am trying to figure out how to PERSIST a voice profile for use AFTER the enrollment. How do I access the VoiceProfile that I created in another program. I have tried using the captured id as follows:

VoiceProfile pvp = new VoiceProfile(MyProfileGuid);

and then pass pvp to

    public static async Task SpeakerVerify(SpeechConfig config, VoiceProfile profile, Dictionary<string, string> profileMapping)
    {
        var speakerRecognizer = new SpeakerRecognizer(config, AudioConfig.FromDefaultMicrophoneInput());
        var model = SpeakerVerificationModel.FromProfile(profile);

        Console.WriteLine("Speak the passphrase to verify: \"My voice is my passport, please verify me.\"");
        var result = await speakerRecognizer.RecognizeOnceAsync(model);
        Console.WriteLine($"Verified voice profile for speaker {profileMapping[result.ProfileId]}, score is {result.Score}");
    }

This fails on var model = SpeakerVerificationModel.FromProfile(profile); ...with [SPXERR_INVALID_ARG]

As far as I can tell, the only thing I can set in the profile is the id (guid) How do I "get" a voice profile AFTER it is registered?

Thanks, Pat

If there is a better place for the question - please let me know. Very anxious too use this service,


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

CHEEKATLAPRADEEP-MSFT-zz commented 4 years ago

@saltonsolutions Thanks for the question! We are investigating and will update you shortly.

ram-msft commented 4 years ago

Thanks for the feedback. @trevorbye Could you please help how to PERSIST a voice profile for use AFTER the enrollment.

image

Here is the old sample for speaker verification audio.

patrickfgarvey commented 4 years ago

I have talked to Trevor. There is no way to do this. You cannot instantiate the profile from the guid that was previously saved. This makes the service unusable. I am going to try to use the REST service as a workaround.

Get Outlook for iOShttps://aka.ms/o0ukef


From: Ram notifications@github.com Sent: Wednesday, July 22, 2020 10:59:55 PM To: MicrosoftDocs/azure-docs azure-docs@noreply.github.com Cc: Patrick Garvey pfgarvey@salton.solutions; Mention mention@noreply.github.com Subject: Re: [MicrosoftDocs/azure-docs] Persisting a VoiceProfile (#59288)

Thanks for the feedback. @trevorbyehttps://github.com/trevorbye Could you please help how to get the voice profile after enrollment.

[image]https://user-images.githubusercontent.com/49180516/88248335-78c12d80-ccbe-11ea-8bac-6939672020e4.png

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/MicrosoftDocs/azure-docs/issues/59288#issuecomment-662795790, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AO2NYMEISMXMW3YXVECCNPTR46RSXANCNFSM4PAM76DA.

ram-msft commented 4 years ago

Thanks for the details. @kikiliu Can you please share any road map/comments on this issue.

trevorbye commented 4 years ago

@ram-msft product team is issuing a fix in the next release to add these missing features. As @saltonsolutions mentioned, I recommend using the REST API for the time being. #please-close

rgonzvelaz commented 4 years ago

I would appreciate if you could provide an example of how to persist a VoiceProfile through the REST service, and then use it again in a verification or identification. We are trying to use this feature but there is very few documentation available.

Thanks very much in advance!

patrickfgarvey commented 4 years ago

One last question. The API page listed does not show how to use it. Endpoints, etc. I can’t find it, anywhere.

Get Outlook for iOShttps://aka.ms/o0ukef


From: rgonzvelaz notifications@github.com Sent: Friday, July 24, 2020 3:26:01 AM To: MicrosoftDocs/azure-docs azure-docs@noreply.github.com Cc: Patrick Garvey pfgarvey@salton.solutions; Mention mention@noreply.github.com Subject: Re: [MicrosoftDocs/azure-docs] Persisting a VoiceProfile (#59288)

I would appreciate if you could provide an example of how to persist a VoiceProfile through the REST service, and then use it again in a verification or identification. We are trying to use this feature but there is very few documentation available.

Thanks very much in advance!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/MicrosoftDocs/azure-docs/issues/59288#issuecomment-663384660, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AO2NYMHM4YOJFAP45RLSD53R5EZQTANCNFSM4PAM76DA.

ram-msft commented 4 years ago

Thanks for the questions. Below are the links for the REST API Speech Recognition Verify and other details. https://docs.microsoft.com/en-us/rest/api/speakerrecognition/verification/textdependent

Verify: Text Dependent:https://docs.microsoft.com/en-us/rest/api/speakerrecognition/verification/textdependent/verifyprofile Text Independent:https://docs.microsoft.com/en-us/rest/api/speakerrecognition/verification/textindependent/verifyprofile