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 the two voices.
The audio may be encrypted or not, and must be encoded in Base64. The voice template must be encrypted and encoded in Base64 (obtained from the enrollment endpoint).
Endpoint
POST /voice/authenticationHeaders
x-api-key
string
Yes
Access authorization API Key.
family
string
No
Value: Authentication. Required with the Tracking service.
Request body
Content-Type: application/json
Parameters
audio
string
Yes
Audio buffer encoded in Base64 (RFC4648).
template
string
Yes
Biometric Template encrypted and encoded in Base64 obtained from enrollment (RFC4648).
Request example
{
"audio": "JVBERi0xLjQKJeLjz9MKNSAw IG9iago8P...",
"template": "BgEBAQI+d368i49ITeoPlmCi5zbYp3kdvTsk6otTOl...."
}Responses
200 Success
Response parameters
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.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
Result code of the authentication operation.
serviceResult.tracking_message
string
Tracking message for the operation.
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:
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