For the complete documentation index, see llms.txt. This page is also available as Markdown.

Voice Enrollment

This endpoint is used to register a new voice. It accepts one or more audio files and returns a voice template (voice template). The voice template is a string containing the biometric information of the voice. This template can be used to authenticate voices in the future. The audio files can be encrypted or unencrypted, and Base64-encoded. The returned template is always encrypted and Base64-encoded. It accepts 1 audio file, or 3 to 5 audio files, for text-independent or text-dependent enrollment, respectively:

  • 1 audio file for text-independent enrollment.

  • 3 to 5 audio files for text-dependent enrollment.

Supported audio formats

Format

WAV

MP3

Opus/OGG

AAC

WMA

PCM ulaw and mulaw

FLAC

ALAC (mov)

MP4

AIFF

Endpoint

POST /voice/enrollment

Headers

Name
Type
Required
Description

x-api-key

string

Yes

API key for access authorization.

family

string

No

Value: OnBoarding. Required when using the tracking service.

All calls to the tracking endpoints with Identity Platform must include the header family.

Request body

Content-Type: application/json

Parameters

Parameter
Type
Required
Description

audios

string[]

Yes

Array of strings. Each array element is a raw audio buffer Base64-encoded (RFC4648). Maximum of two files. Accepts 1 audio file, or 3 to 5 audio files.

Request example

Responses

200 Success

Response parameters

Parameter
Type
Description

serviceResultCode

integer

Result code indicating the status of the operation. 200 means success.

serviceResultLog

string

Log message related to the result of the operation.

timestamp

string

Date and time when the operation was completed.

serviceTransactionId

string

Unique transaction ID for tracking the operation.

serviceResult.operation_result

integer

Result code for the enrollment operation.

serviceResult.template

string

Biometric Template encrypted and Base64-encoded.

serviceResult.template_type

string

Type of template generated: text-dependent or text-independent.

serviceResult.validate_audios_result

array

Array with the results of the validation of each audio submitted.

serviceResult.validate_audios_result[].audio_position

integer

Position of the audio in the submitted array.

serviceResult.validate_audios_result[].matching_score

number

Audio Matching score (0–1). 1.0 = 100%.

serviceResult.validate_audios_result[].multiple_speakers_score_detected

number

Multiple-speaker detection score.

serviceResult.validate_audios_result[].result_code

integer

Individual result code for the audio.

serviceResult.validate_audios_result[].snr_db_detected

number

Detected signal-to-noise ratio in the audio (dB).

serviceResult.validate_audios_result[].speech_length_ms_detected

integer

Detected speech duration in milliseconds.

serviceResult.validate_audios_result[].speech_relative_length_detected

number

Relative proportion of speech compared with the audio’s total duration .

serviceTime

string

Total service execution time (milliseconds).

Service Result Code

The serviceResultCode indicates the overall result of the service execution:

serviceResultCode
Description
HTTP Code

0

The service executed successfully; the module processed the request correctly.

200

Response example

400 Bad Request

401 Unauthorized

403 Forbidden

502 Bad Gateway

504 Gateway Timeout

Last updated