What is Speaker Recognition (Preview)?

The Speaker Recognition service provides algorithms that verify and identify speakers by their unique voice characteristics using voice biometry. Speaker Recognition is used to answer the question “who is speaking?”. You provide audio training data for a single speaker, which creates an enrollment profile based on the unique characteristics of the speaker's voice. You can then cross-check audio voice samples against this profile to verify that the speaker is the same person (speaker verification), or cross-check audio voice samples against a group of enrolled speaker profiles, to see if it matches any profile in the group (speaker identification). In contrast, Speaker Diarization groups segments of audio by speaker in a batch operation.

Speaker Verification

Speaker Verification streamlines the process of verifying an enrolled speaker identity with either passphrases or free-form voice input. It can be used to verify individuals for secure, frictionless customer engagements in a wide range of solutions, from customer identity verification in call centers to contact-less facility access.

How does Speaker Verification work?

Speaker Verification flowchart.

Speaker verification can be either text-dependent or text-independent. Text-dependent verification means speakers need to choose the same passphrase to use during both enrollment and verification phases. Text-independent verification means speakers can speak in everyday language in the enrollment and verification phrases.

For text-dependent verification, the speaker's voice is enrolled by saying a passphrase from a set of predefined phrases. Voice features are extracted from the audio recording to form a unique voice signature, while the chosen passphrase is also recognized. Together, the voice signature and the passphrase are used to verify the speaker.

Text-independent verification has no restrictions on what the speaker says during enrollment or in the audio sample to be verified, as it only extracts voice features to score similarity.

The APIs are not intended to determine whether the audio is from a live person or an imitation/recording of an enrolled speaker.

Speaker Identification

Speaker Identification is used to determine an unknown speaker’s identity within a group of enrolled speakers. Speaker Identification enables you to attribute speech to individual speakers, and unlock value from scenarios with multiple speakers, such as:

  • Support solutions for remote meeting productivity
  • Build multi-user device personalization

How does Speaker Identification work?

Enrollment for speaker identification is text-independent, which means that there are no restrictions on what the speaker says in the audio. Similar to Speaker Verification, in the enrollment phase the speaker's voice is recorded, and voice features are extracted to form a unique voice signature. In the identification phase, the input voice sample is compared to a specified list of enrolled voices (up to 50 in each request).

Data security and privacy

Speaker enrollment data is stored in a secured system, including the speech audio for enrollment and the voice signature features. The speech audio for enrollment is only used when the algorithm is upgraded, and the features need to be extracted again. The service does not retain the speech recording or the extracted voice features that are sent to the service during the recognition phase.

You control how long data should be retained. You can create, update, and delete enrollment data for individual speakers through API calls. When the subscription is deleted, all the speaker enrollment data associated with the subscription will also be deleted.

As with all of the Cognitive Services resources, developers who use the Speaker Recognition service must be aware of Microsoft's policies on customer data. You should ensure that you have received the appropriate permissions from the users for Speaker Recognition. For more information, see the Cognitive Services page on the Microsoft Trust Center.

Common questions and solutions

Question Solution
What scenarios can Speaker Recognition be used for? Call center customer verification, voice-based patient check-in, meeting transcription, multi-user device personalization
What is the difference between Identification and Verification? Identification is the process of detecting which member from a group of speakers is speaking. Verification is the act of confirming that a speaker matches a known, or enrolled voice.
What's the difference between text-dependent and text-independent verification? Text-dependent verification requires a specific pass-phrase for both enrollment and recognition. Text-independent verification requires a longer voice sample for enrollment, but anything can be spoken, including during recognition.
What languages are supported? English, French, Spanish, Chinese, German, Italian, Japanese and Portuguese
What Azure regions are supported? Speaker Recognition is a preview service, and currently only available in the West US region.
What audio formats are supported? Mono 16 bit, 16kHz PCM-encoded WAV
Accept and Reject responses aren't accurate, how do you tune the threshold? Since the optimal threshold varies highly with scenarios, the API decides whether to “Accept” or “Reject” simply based on a default threshold of 0.5. Advanced users are advised to override the default decision and fine tune the result based on your own scenario.
Can you enroll one speaker multiple times? Yes, for text-dependent verification, you can enroll a speaker up to 50 times. For text-independent verification or speaker identification, you can enroll with up to 300 seconds of audio.
What data is stored in Azure? Enrollment audio is stored in the service until the voice profile is deleted. Recognition audio samples are not retained or stored.

Next steps

  • Complete the Speaker Recognition basics article for a run-through of common design patterns you can use in your applications.
  • See the video tutorial for text-independent speaker verification.