About this endpoint
What it does
Uploads an audio file and returns transcription output for the requested speech service. The request body selects either Azure or Google processing via requested_service, and the response returns a JSON object containing a data object with the service-specific result.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| file | Binary | Yes | Audio file to transcribe. Binary upload. |
| azure_region | String | No | Azure region. |
| google_language | String | No | Google language code. Example: en-US. |
| azure_account_id | String | No | Azure account identifier. |
| requested_service | ENUM | Yes | Which transcription service to use. Allowed values: azure, google. |
| azure_access_token | String | No | Azure access token. |
| google_credential_file | String | No | Google service account JSON file. Binary upload. |
Response
Returns a JSON object with a required data object field. The data object may contain an azure object when requested_service is azure, or a google object when requested_service is google; the service-specific object can include additional properties.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| data | Object | Yes | Transcription result wrapper. May include azure when requested_service is azure, or google when requested_service is google. Each service object allows additional properties. |