Call Studio API
This page contains details on upload recordings to Call Studio for analysis
Uploading recordings through API
The upload process consists of three steps. After all three steps are completed, you will see the recording in Call Studio and analysis will be completed shortly.
1. Requesting a signed URL
curl --location --request POST 'https://voicehub.dataqueue.ai/api/v1/playground/signed-url?fileName=file.wav' \
--header 'x-dq-api-key: YOUR_API_KEY_HERE'
The request returns a JSON object:
{
"url": "example-signed-url.com"
}
2. Upload the file to cloud storage
Using the URL obtained in the previous step, upload your file using a PUT request:
curl --location --request PUT 'example-signed-url.com' \
--header 'Content-Type: audio/wave' \
--data-binary '@/path/to/your/file.wav'
3. Request analysis of the uploaded file
Once step 2 is complete, you can request Call Studio analysis of your recording:
curl --location 'https://voicehub.dataqueue.ai/api/v1/playground/api-analysis' \
--header 'x-dq-api-key: YOUR_API_KEY_HERE' \
--header 'Content-Type: application/json' \
--data '{
"fileName": "file.wav",
"title": "Example Title"
}'
The fileName
parameter must match the fileName
given in step 1, otherwise the analysis will fail. The title
field will be shown in the Title column of Call Studio.
Last updated