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 receives one or more audio files and returns a voice template (voice template). The voice template is a string that contains the biometric information of the voice. This template can be used to authenticate voices in the future. The audio files can be encrypted or not, and encoded in Base64. The returned template is always encrypted and encoded in Base64. It accepts 1 audio file, or 3 to 5 audio files, to perform text-independent or text-dependent enrollment, respectively:

  • 1 audio file for text-independent enrollment (text-independent).

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

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

Access authorization API key.

family

string

No

Value: Onboarding. Required with the tracking service.

All calls to the Endpoints for Tracking with Identity Platform must contain the header family.

Request body

Content-Type: application/json

Parameters

Parameter
Type
Required
Description

audio files

string[]

Yes

Array of strings. Each position in the array is a raw audio buffer encoded in Base64 (RFC4648). Maximum two files. It 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 to track the operation.

serviceResult.operation_result

integer

Result code of the enrollment operation.

serviceResult.template

string

Biometric Template encrypted and encoded in Base64.

serviceResult.template_type

string

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

serviceResult.validate_audios_result

array

Array with the results of validation of each sent audio file .

serviceResult.validate_audios_result[].audio_position

integer

Position of the audio file in the sent array.

serviceResult.validate_audios_result[].matching_score

number

Matching score of Matching of the audio (0-1). 1.0 = 100%.

serviceResult.validate_audios_result[].multiple_speakers_score_detected

number

Multiple speakers detection score multiple speakers.

serviceResult.validate_audios_result[].result_code

integer

Individual result code for the audio.

serviceResult.validate_audios_result[].snr_db_detected

number

Signal to-noise ratio detected in the audio (dB).

serviceResult.validate_audios_result[].speech_length_ms_detected

integer

Speech duration detected in milliseconds.

serviceResult.validate_audios_result[].speech_relative_length_detected

number

Relative speech proportion with respect to the total duration of the audio.

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 execution was successful, the module processed the request correctly.

200

Response example

400 Bad Request

401 Unauthorized

403 Forbidden

502 Bad Gateway

504 Gateway Timeout

Last updated