Enroll Voice

To perform the user’s biometric voice enrollment, the method to be used is Enroll Voice. On this type of biometric analysis, we need several calls to this method in order to complete the enrollment step. On the first request to this method, the system will start the voice enrollment process returning the audio sample expected to be present on the next request (not expecting any file on the first request) and so on until the enrollment process is finished. In case of success, the user’s biometric voice registry will be created on the biometric engine chosen, allowing further identifications. In case of failure, it’s necessary to repeat this process until the enrollment is accepted.

Enroll Voice

POST Https://api.biometrid.com/api/1.1/users/:userId/dialogue/enroll/voice

Enroll user's voice on client's chosen provider.

Path Parameters

Name
Type
Description

userID

string

BiometrID user ID

Headers

Name
Type
Description

Content-type

string

Request content type (This is not required to be set. Referenced only to show how we expect data to be sent). { "Content-Type": "multipart/form-data" }

x-biometrid-key

string

Application Client Key

x-biometrid-secret

string

Application Client Secret

Request Body

Name
Type
Description

audio

object

Audio file with the voice biometrid sample. (only .wav format).

//Dialogue Started
{
    "status": true,
    "data": {
      "message": "DIALOGUE_STARTED_WITH_SUCCESS",
      "enrollmentId": "5f199b5398a915637332dc23",
    }
}

// Audio Submitted (valid attempt)
{
    "status": true,
    "data": {
        "message": "VALID_ATTEMPT",
        "detail": "Valid attempt",
        "attempt": 1
    }
}

//Audio Enrolled
{
    "status": true,
    "data": {
      "message": "AUDIO_ENROLLED_WITH_SUCCESS",
      "enrolled": true
    }
}

//Voice Enrollment Failed
{
    "status": false,
    "data": {
        "message": "ENROLLMENT_FAILED",
        "detail": "Enrollment failed. Please start over.",
        "attempt": 4
      }
}

Last updated

Was this helpful?