Canary Speech

UploadRecording

PUT - /v3/api/upload-recording-signed
Required Permissions:
  • scope:api

Description

Uploads a recording file. Currently only wav files are supported. The file can either be uploaded as 1) a json object with audio encoded in base64 with an optional transcript (see example below) or directly as 2) bytes in the the request body. For the first option set Content-Type header to application/json, for the second option set the Content-Type header to audio/wav.

This endpoint should be called with a generated url, see /v3/api/assessment/begin for how to generate these urls.

Headers

Header KeyDescriptionExample
Content-Type
The content type for this request. If set to application/json it will expect the audio in base64 (example below). If set to audio/wav it will expect the audio as bytes in the request body.
application/json

Query Parameters

NameTypeDescription
pstring
The signed encoded payload for this request. Obtained from call to /v3/api/assessment/begin.

Body Parameters

NameTypeDescription
transcriptobject
The transcript information for the recording.
* audiostring
The Base64-encoded audio file.

Successful Response

A successful response

Field NameTypeDescription
messagestring
"OK"

Code Example