Skip to main content
Version: 2026.11.0

Speaker Identification

Phonexia Speaker Identification (SID) uses the power of voice biometrics to recognize speakers by their voice, determining whether the voice in two recordings belongs to the same person or two different people. Our goal as a regular participant of the NIST Speaker Recognition Evaluations (SRE) series is to contribute to the advancement of research efforts and the calibration of technical capabilities in text-independent speaker recognition. The objective is to boost the technology and identify the most promising algorithmic approaches for our future production-grade solutions.

Use cases and application areas​

The technology can be used for various speaker recognition tasks. One basic distinction is based on the kind of question we want to answer.

Speaker Identification addresses the question “Whose voice is this?”, such as in the case of fake emergency calls. Usually, this entails one-to-many (1:n) or many-to-many (n:n) comparisons.

Speaker identification

Speaker Search helps find out “Where is this voice speaking?”, such as when looking for a speaker inside a large archive.

We use Speaker Spotting when monitoring a large number of audio recordings or streams and looking for the occurrence of a specific speaker(s). Speaker spotting can be deployed for the purpose of Fraud Alert.

Speaker Verification answers the question “Is this Peter Smith’s voice?”, such as when a person calls the bank and says, “Hello, this is Peter Smith!”. This approach of one-to-one (1:1) verification is also employed in Voice-As-a-Password systems, which can add further security to multi-factor authentication over the telephone.

Speaker verification

Large-scale automatic speaker identification is also successfully used by law enforcement agencies during investigations for the purposes of database searches and ranking of suspects. In later stages of a case, Forensic Voice Analysis uses smaller amounts of data and 1:1 comparisons to evaluate evidence, establish the probability of the identity of a speaker, and use it in court.

Usual suspects

How does it work?​

The technology is based on the fact that the speech organs and speaking habits of every person are more or less unique. As a result, the characteristics (or features) of the speech signal captured in a recording are also more or less unique. Consequently, the technology can be language-, accent-, text-, and channel-independent.

Speech organs

Automatic speaker recognition systems are based on the extraction of unique features from voices and their comparison. The systems thus usually comprise two distinct steps: Voiceprint Extraction (Speaker enrollment) and Voiceprint comparison.

Voiceprint extraction is the most time-consuming part of the process. Voiceprint comparison, on the other hand, is extremely fast – millions of voiceprint comparisons can be done in 1 second.

In Speech Platform microservices, both steps are provided by the Speaker Identification microservice.

Voiceprint​

A voiceprint (also known as x-vector) is a fixed-length matrix that captures the most unique characteristics of a speaker’s voice. Voiceprints are unique to each individual, similar to fingerprints or retinal scans.

Voiceprint file​

The internal structure of the voiceprint consists of a header (metadata information) and a data part that contains characteristics of the speaker's voice. The structure and length of a voiceprint are always the same, regardless of the length and number of the source recordings. A voiceprint created from a single short recording will always be the same size as a voiceprint created from 80 different long recordings. The exact number of digits may vary depending on the technology model selected.

What can be learned from a voiceprint?​

  • Similarity to another voiceprint
  • Speaker’s gender
  • Total length of original recordings
  • Amount of speech used for voiceprint extraction

What cannot be learned from a voiceprint?​

The most important feature of Phonexia Speaker Identification technology is that it prevents the retrieval of the audio source, call content, or original voice sound from a voiceprint. The voiceprint file only contains statistical information about the unique characteristics of the voice, without including information that could be used to reconstruct the audio contents (i.e., who said what) or for voice synthesis systems (TTS - Text to Speech).

Backward compatibility​

Previously, a voiceprint created by a Speaker Identification model could only be used with that specific model. For instance, it was not possible to compare a voiceprint created by the XL3 model with the XL4 model. However, XL5 offers backward compatibility, allowing it to generate voiceprints that can be compared with XL4 voiceprints.

This capability is enabled because XL5 voiceprint extraction produces two subvoiceprints: a new XL5 voiceprint and an XL4-compatible voiceprint (though not identical to XL4)."

Note
  • XL4 voiceprints cannot be converted to XL5, but it is possible to compare XL5 and XL4 voiceprints using the XL5 comparator if XL5 voiceprints have been extracted in compatibility mode.
  • XL5 voiceprints extracted in compatibility mode are only comparable with XL4 voiceprints; comparison with older voiceprint generations (L4, XL3, L3, etc.) is not supported.
  • Compatibility mode is turned off by default.

Voiceprint encoding​

Although the information conveyed by the voiceprint is identical in both microservices and Virtual appliance, the way this information is represented, that is, its encoding, differs.

The format used for Virtual appliance is Base64. This is because the format for REST API calls and responses is JSON. JSON is a text-based format that can directly handle text or numerical data only. Therefore, voiceprints, which are binary data, need to be converted. The most common method for encoding binary data in JSON is Base64 encoding.

In contrast, the gRPC API can directly handle binary data. Therefore in the case of microservices, the encoding used is UBJSON (Universal Binary JSON).

Tip

Regardless of how the voiceprint is encoded, there is no need to decode it. Users can store the encoded voiceprint for later comparison. Decoding and re-encoding would unnecessarily consume resources.

Voiceprint extraction (Speaker enrollment)​

Speaker enrollment starts with the extraction of acoustic features from a recording of a known speaker. The process continues with the creation of a speaker model which is then transformed into a small but highly representative numerical representation called a voiceprint. During this process, the SID technology applies state-of-the-art channel compensation techniques.

Speaker enrollment

Net speechDescription
Minimum3 secondsMinimum amount of net speech needed to create a usable voiceprint for testing purposes.
Recommended5 seconds
20 seconds
Recommended length of net speech needed for voiceprint creation used for basic tests
Recommended length of net speech for accurate enrollment of the unknown speaker
Maximum60 secondsLonger recordings have no further effect on improving accuracy of the extracted VP

The voiceprint extraction process can also produce vector voiceprints— numerical representations optimized for storage and retrieval in vector databases. Vector voiceprints enable efficient similarity searches across large voiceprint collections, making them ideal for applications requiring fast lookups and scalable storage.

Voiceprint comparison​

Any voiceprint of an unknown speaker can be compared with existing enrollment voiceprints and the system returns a score for each comparison.

Voiceprint merging​

Multiple voiceprints of the same speaker can be merged together into a single voiceprint to improve its accuracy and robustness. This process is typically used when several recordings of the same speaker are available (preferably from different sessions or channels) and by combining them, the system produces a more representative voiceprint.

Scoring and conversion to percentage​

The score produced by comparing two voiceprints is an estimate of the probability (P) that we would obtain the given evidence (the compared voiceprints) if the speakers in the two voiceprints are the same or different individuals. The ratio between these two probabilities is called the Likelihood Ratio (LR), often expressed logarithmic form as Log Likelihood Ratio (LLR).

score=log⁡eP(evidence∣person)P(evidence∣someone else)score=\log_e\frac{P(evidence|person)}{P(evidence|someone\ else)}

Transformation to confidence (or percentage) is usually done using a sigmoid function:

confidence=11+e−sharpness×(score+shift)confidence=\frac{1}{1+e^{-sharpness\times(score+shift)}} percentage=confidence×100percentage=confidence \times 100

where:

  • shift shifts the score to be 0 at ideal decision point (default is 0)
  • sharpness specifies how the dynamic range of score is used (default is 1)

The shift value can be obtained by performing a proper SID evaluation – see the chapter below for details.
The sharpness value can be chosen according to the desired steepness of the sigmoid function:

  • a higher sharpness means steeper function, indicating a sharper transition between lower and higher percentages, with only small differences in the low and high percentages;
  • a lower sharpness means less steep function, resulting in more linear transition.

The interactive graph below should help you understand the correlation between score and confidence, influenced by the steepness of the sigmoid function controlled by the sharpness value.

Score−15−10−5051015Confidence0.20.40.60.81.0
Shift:
0
Sharpness:
1

Streaming Speaker Identification​

The voiceprint extraction described above works in a batch fashion: you send a complete recording, wait until all of it has been processed, and receive a single voiceprint at the end. This is the right approach when you already have the audio on hand, but it cannot answer the question “who is speaking right now?” while a conversation is still going on.

Streaming Speaker Identification answers exactly that question. You feed audio to the technology continuously, as it is being captured, and instead of one result at the end you receive a series of voiceprints, each one reflecting the speech heard so far. Every voiceprint can be compared against your enrollment database immediately, so identification results are available while the call or recording is still in progress.

When to use streaming​

Streaming is designed for situations where waiting for the end of the recording is not acceptable:

  • Live fraud alert – flag a known fraudster during the call, not after it has ended.
  • Real-time agent assistance – verify the caller's identity in the first seconds of a conversation in a contact center.
  • Continuous monitoring – watch long-running audio streams or radio traffic for the appearance of a speaker of interest.
  • Speaker change detection – notice that the person at the microphone has changed, for example during a handover between two people on the same line.

If you are processing archived files and only need one voiceprint per recording, use the regular (batch) extraction instead — it is simpler and gives the most accurate voiceprint for the recording as a whole.

How streaming extraction works​

The audio you send is processed continuously, and a voice activity detector picks out the speech in it. Every time another speech_update_interval of speech has accumulated — one second by default — the technology extracts a new voiceprint and sends it back to you.

Results are therefore paced by speech, not by wall-clock time. Silence, noise, and music do not count towards the speech_update_interval, so stretches without speech produce no results. The less speech a stream carries, the fewer results you receive, and a stream with no speech at all yields none.

Each result contains:

FieldMeaning
voiceprintThe voiceprint extracted so far. It is a standard voiceprint and can be compared, merged, and stored like any other.
speech_lengthThe amount of net speech the voiceprint was extracted from.
vector_voiceprintAn optional vector voiceprint for vector database lookups.
processed_audio_lengthThe total length of audio processed so far, including silence.

Because every result is a regular voiceprint, no new comparison logic is needed: you compare a streamed voiceprint with your enrollment voiceprints in exactly the same way as one from batch extraction, and the scoring rules described above apply unchanged.

Note

The first results of a stream are extracted from very little speech and are therefore less reliable than later ones. Use the reported speech_length to decide when a voiceprint carries enough speech to act on — see the recommended net speech lengths above. A common approach is to ignore results below roughly 3 seconds of net speech and to treat results above 5–20 seconds as trustworthy.

The rolling window​

By default, a streamed voiceprint is extracted from all speech received since the beginning of the stream. Every new result therefore covers more speech than the last one, and the voiceprint becomes gradually more accurate and more stable. This is the best setting when you know that a single speaker is present for the whole stream, for example during a voice-password verification.

However, if the speaker changes mid-stream, an ever-growing voiceprint becomes a problem: it mixes both voices together, and the longer the first speaker was present, the less the result is influenced by the new one. The voiceprint would keep “remembering” a speaker who is no longer talking.

The rolling window solves this. When you set a rolling window, the voiceprint is extracted only from the most recent portion of speech, and older speech is gradually forgotten. Once the previous speaker drops out of the window, the voiceprint represents only the current one, and the speaker change becomes visible in your comparison scores.

Choosing the window length​

The rolling window length is a trade-off between accuracy and reaction time:

  • A longer window contains more speech, so the voiceprint is more accurate and comparison scores are more reliable — but a speaker change takes longer to show up, because more of the previous speaker's speech must first leave the window.
  • A shorter window reacts to speaker changes quickly, but each voiceprint is built from less speech, so comparison scores are less reliable — a known speaker may be missed, or a different one wrongly matched.

As a starting point, choose a window that comfortably exceeds the recommended net speech length for your use case, and shorten it only if speaker changes need to be detected faster.

Tip

The window is measured in net speech, not in audio length. A 10-second rolling window keeps the last 10 seconds of actual speech, however long it took to collect them. If the stream contains long stretches of silence, noise, or music, this may correspond to a much longer piece of audio.

Streaming parameters​

Streaming extraction is configured with the following parameters. All of them are optional and are sent once, together with the first portion of audio.

ParameterDefaultDescription
speech_update_interval1 secondAmount of net speech between two results. A shorter interval gives more frequent updates at the cost of more processing; a longer one produces fewer, more widely spaced results.
rolling_speech_lengthnot set (unbounded)Length of the rolling window of net speech a voiceprint is extracted from. When not set, speech accumulates over the whole stream. The minimum accepted value is 1 second.
enable_vector_voiceprintfalseWhen enabled, every result additionally contains a vector voiceprint suitable for storage and lookup in a vector database.
Note

Treat speech_update_interval and rolling_speech_length as targets rather than exact boundaries. Speech is processed in short chunks, so the amount of new speech added for each result and the amount kept in the rolling window only approximate the values you set.

Batch vs. streaming extraction​

Batch extractionStreaming extraction
InputA complete recordingAudio sent continuously as it is captured
ResultsOne voiceprint at the endA series of voiceprints, one per interval of speech
Speaker changesNot detected; all voices are mixedDetected when a rolling window is set
Typical useArchive processing, enrollmentLive monitoring, real-time verification and fraud alert
AccuracyHighest for the whole recording if it has one speakerGrows with speech in the window if it has one speaker

Both modes use the same model and produce the same kind of voiceprints, so results from one can be compared with results from the other. You can, for example, enroll speakers from archived recordings in batch mode and then spot them in live streams.

Domain adaptation​

In real-world applications, speaker identification systems often encounter audio recordings captured in domains different from those used for training. These domains may vary in factors such as microphone quality, recording environment, or audio codecs. Such domain mismatches can significantly impact speaker identification accuracy.

To address this challenge, our system utilizes domain adaptation techniques. Domain adaptation aims to bridge the gap between the training and target data distributions, enabling the system to learn unseen speaker representations and generalize effectively to new domains. Compared to fine-tuning, domain adaptation offers the advantage of requiring significantly less training data.

Our system is primarily trained on telephony and VoLTE recordings. To enhance its accuracy on diverse data types, we employ domain adaptation trained on datasets from various sources, including YouTube, Skype, WhatsApp, and satellite recordings. This adaptation is encapsulated in adaptation profiles. Currently, these profiles are embedded into our models and cannot be configured or customized by users.

The most suitable adaptation profile for a given voiceprint is selected based on its similarity to the adaptation profiles. The selected adaptation profile is applied during voiceprint comparison and does not impact voiceprint extraction in any way. However, future introduction of new adaptation profiles into the model may result in slight variations in voiceprint comparison scores, even for training domain data. This effect is minimal and does not compromise the system's accuracy on familiar domains, but rather improves its performance on new ones.

FAQ​

Why weren’t recordings of the same speaker matched?​

The acoustic setting of the recording is very relevant for the Speaker Identification. Background sounds like music, TV, street noise, echo, or reverberation change the acoustic quality of the audio and the speaker might not be evaluated as being the same if such audio is compared to a completely different one, e.g. telephone call. In such cases it is recommended lowering the threshold to get the correct match, although this may lead to higher number of false positives.

What can I do to improve processing speed?​

If you're using media files as input, the system first extracts a voiceprint, which is the most time-consuming part of the process. To speed things up, we recommend running the technology on a GPU if possible.

Additionally, to improve efficiency, once you processed your recordings, you can store the extracted voiceprints and reuse them for any future processing instead of reprocessing the original audio. This can significantly speed up the workflow without impacting accuracy.

When should I use 1:1 vs 1:N vs N:M voice comparison?​

1:1 Comparison (Verification): You compare one voiceprint against one specific enrolled voiceprint to verify if they match. This is used for authentication, where someone claims an identity and you verify it's really them.

1:N Comparison (Identification): You compare one voiceprint against a database of N enrolled voiceprints to identify who the speaker is. This searches through all enrolled voices to find the best match or determine if the speaker is in the system at all. You need to set a higher similarity threshold here to minimize false positives, since you're checking against many voices and the chance of incorrectly matching increases with database size.

N:M Comparison (Batch Processing): You compare multiple voiceprints (N) against multiple other voiceprints (M) to find all matching pairs or relationships. Similar to 1:N, you must carefully tune your threshold to balance between catching true matches and avoiding false positives across potentially thousands of comparisons.