Voiceprint of a remote file (from a URL)
If you have a media file accessible via a URL, you can provide the URL to the file in the request body. Typically you would use this method with a file stored in a cloud storage service such as Amazon S3. If bucket or object is private, you can follow this tutorial and create a signed url to give temporary access. The input audio must also respect the following limits:- Maximum duration of 30s
- Maximum file size of 100MiB
Some cloud storage services provide an indirect URL with a confirmation page
to access the file. Make sure you provide a direct link to the file instead.
Voiceprint of a Local File
If you have a media file stored locally, you can upload it to our temporary media storage and provide the URL to the file in the request body. Typically you would use this method if you have a file stored on a local machine or device. Follow the How to upload files tutorial to upload your file.Receiving the voiceprint (Webhook)
The webhook URL is where the finished voiceprint will be sent. The voiceprint will be sent as a JSON object in the request body. Please visit the Webhook documentation for more information on what the webhook sends.Getting results using a webhook
If the optionalwebhook param is set, the results will be sent to the provided URL.
The webhook URL is where any update related to the voiceprint job will be sent.
The job output will be sent as a JSON object in the request body.
Please visit the Receiving webhooks documentation for more information.
Polling for job results
As an alternative to webhooks, you can poll the get job endpoint to retrieve job results. To poll for job results, use thestatus field in the job response to check if the job is completed.
Once the job is completed, you can retrieve the job results by accessing the output field.
The
output field contains the job results and is only available when the job
status is succeeded. Job results are automatically deleted after 24
hours of job completion.status field is either succeeded, failed, or canceled.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json