For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
CommunityAPI StatusAPI PricingSign Up
DocumentationAPI ReferencesCookbook
DocumentationAPI ReferencesCookbook
  • API Reference
    • Introduction
    • Authentication
    • Access to Beta APIs
    • Meta Prompt Guide
  • Endpoints
      • POSTREST
      • WSSWebSocket
      • POSTBatch - Initiate Job
      • POSTBatch - Upload Files
      • POSTBatch - Start Job
      • GETBatch - Get Status
      • POSTBatch - Download Results
LogoLogo
CommunityAPI StatusAPI PricingSign Up
EndpointsSpeech to Text

Batch - Upload Files

POST
https://api.sarvam.ai/speech-to-text/job/v1/upload-files
POST
/speech-to-text/job/v1/upload-files
$curl -X POST https://api.sarvam.ai/speech-to-text/job/v1/upload-files \
> -H "api-subscription-key: <apiSubscriptionKey>" \
> -H "Content-Type: application/json" \
> -d '{
> "job_id": "job-9f8b7c6d-1234-4e56-8a9b-0c1d2e3f4a5b",
> "files": [
> "meeting_recording_2024-06-01.wav",
> "interview_session_2024-06-02.mp3"
> ]
>}'
1{
2 "job_id": "job-9f8b7c6d-1234-4e56-8a9b-0c1d2e3f4a5b",
3 "job_state": "Accepted",
4 "upload_urls": {},
5 "storage_container_type": "Azure"
6}
Generate presigned upload URLs for audio files that will be processed in a speech to text bulk job
Was this page helpful?
Previous

Batch - Start Job

Next
Built with

Authentication

api-subscription-keystring
API Key authentication via header

Request

This endpoint expects an object.
job_idstringRequired
fileslist of stringsRequired

Response

Successful Response
job_idstring
job_stateenum
Allowed values:
upload_urlsmap from strings to objects
storage_container_typeenum
Allowed values:

Errors

400
Bad Request Error
403
Forbidden Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error