Adapt Voice
Last updated
Was this helpful?
Last updated
Was this helpful?
To perform an adaption to the user’s biometric voice sample registered on the engine, the method to be used is Adapt Voice. Similar to the voice verification process, the first request to this method will start the voice adaption process, returning the expected sample to be present on the next request. If the sample provided is suitable for adaption the system will proceed to adapt the user’s biometric voice registry and responds with success. In case of verification/validation failure of the user’s sample, the system will return that the sample isn’t suitable for adaption is necessary to repeat the process again to proceed to voice adaption.
POST
Https://api.biometrid.com/api/1.0/users/:userId/adapt/voice
Adapt User's voice enroll on provider.
userID
string
BiometrID user ID
cookie
string
biometrid.sid cookie should be set on the request. See section above.
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
language
string
Code from the available languages for the client. (ex: 'en' or 'pt'). If none present, sets the default.
audio
object
Audio file with the vocal biometrid sample. (only .wav format) - additional info on the next table
Important: For security reasons the audio file MIME type should correspond to a .wav file (ie: Content-Type: audio/wav, audio/x-wav, ect...).
Biometrid uses session in the server side to keep some informations about the current process. It's mandatory for voice processes that the cookie="biometrid.sid=..." should be present on the request.
Field
Type
Description
status
Boolean
Response status.
data
Object
Response main data.
message
String
Message regarding process status.
dialogueId
String
Dialogues identifier.
promptCode
String
Dialogue prompt for user's audio file.
promptCodeText
String
Dialogue prompt presented in words for user's audio file.
dialogueStatus
String
If present, indicates the final status of the enrollment process.
decision
String
If present, indicates the provider decision on the submitted sample.
reason
String
(Error field) If present, this field indicates the reason of failure.
adapted
Boolean
If true, indicates the adaption process was completed.