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

Voice Authentication

This service is used to authenticate a voice. It receives an audio file and a voice template, and returns a boolean indicating whether the voice belongs to the same person as the voice template, along with a probability score indicating the similarity between both voices.

The audio may be encrypted or not, and must be Base64 encoded. The voice template must be encrypted and Base64 encoded (obtained from the enrollment Endpoint).

Endpoint

POST /voice/authentication

Headers

Name
Type
Required
Description

x-api-key

string

Yes

API Key for access authorization.

family

string

No

Value: Authentication. Required with the tracking service.

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

Request body

Content-Type: application/json

Parameters

Parameter
Type
Required
Description

audio

string

Yes

Audio buffer Base64 encoded (RFC4648).

template

string

Yes

Biometric Template encrypted and Base64 encoded obtained from enrollment (RFC4648).

Request example

{
  "audio": "JVBERi0xLjQKJeLjz9MKNSAw IG9iago8P...",
  "template": "BgEBAQI+d368i49ITeoPlmCi5zbYp3kdvTsk6otTOl...."
}

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.liveness_score

number

liveness detection score.

serviceResult.match

boolean

Indicates whether the voice matches with the template.

serviceResult.matching_score

number

Probability score indicating the similarity between the voices (0-1). 1.0 = 100%

serviceResult.operation_result

integer

Authentication operation result code.

serviceResult.tracking_message

string

Operation tracking message.

serviceResult.tracking_status

integer

Tracking status code.

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