How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Sarvam textToSpeech API

The textToSpeech API from Sarvam — 2 operation(s) for texttospeech.

Sarvam textToSpeech API is one of 8 APIs that Sarvam publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.

Tagged areas include Text-to-Speech. The published artifact set on APIs.io includes an OpenAPI specification and an AsyncAPI specification.

This API exposes 2 operations across 2 paths, and defines 14 schemas. It is described by OpenAPI 3.1.0, at version 1.0.0.

Requests are made against a single base URL, https://api.sarvam.ai.

2 operations 2 paths 14 schemas 2 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
1.0.0
Base URL
https://api.sarvam.ai
Authentication
API Key, HTTP Bearer
Resource Areas
1

Authentication & Security 2

Sarvam textToSpeech API declares 2 security schemes for authenticating requests. An API key is passed in the header as api-subscription-key (ApiKeyAuth). It accepts HTTP bearer tokens (HTTPBearer).

Paths & Operations 2

Across 2 paths, the API surfaces 2 operations — 2 POST. Each is listed below with its method, path, parameters, and response codes.

textToSpeech 2
POST
/text-to-speech
Text to Speech
convert 1 param body → 200400403422429500
POST
/text-to-speech/stream
Text-to-Speech Stream Audio
convert-stream 1 param body → 200400403422429500

Schemas 14

The contract defines 14 schemas that model the data the API accepts and returns. The most detailed are Sarvam_Model_API_TextToSpeechStreamRequest (14 properties), Sarvam_Model_API_TextToSpeechRequest (13 properties), Sarvam_Model_API_ErrorDetails (3 properties), Sarvam_Model_API_TextToSpeechResponse (2 properties). Each schema is shown below with its type and property counts.

Sarvam_Model_API_TextToSpeechResponse
object
2 properties 2 required
Sarvam_Model_API_TextToSpeechStreamRequest
object
14 properties 1 required
TextToSpeechOutputAudioCodec
string
Audio codec options for the non-streaming /text-to-speech endpoint
Sarvam_Model_API_SpeechStreamBitrate
string
Sarvam_Model_API_TextToSpeechLanguage
string
Sarvam_Model_API_ErrorMessage
object
1 property 1 required
Sarvam_Model_API_TextToSpeechRequest
object
13 properties 2 required
Sarvam_Model_API_TextToSpeechSpeaker
string
Sarvam_Model_API_TextToSpeechModel
string
Sarvam_Model_API_ErrorCode
string
SarvamModelApiTextToSpeechRequestText
The text(s) to be converted into speech. Features: - Supports code-mixed text (English and Indic languages) Model-specific limits: - bulbul:v3: Max 2500 charac…
Sarvam_Model_API_SpeechSampleRate
string
Sarvam_Model_API_ErrorDetails
object
3 properties 3 required
Sarvam_Model_API_SpeechStreamCodec
string

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

sarvam-texttospeech-api-openapi.yml Raw ↑

Other APIs Sarvam publishes across the network.

Sarvam chat API
Sarvam documentIntelligence API
Sarvam pronunciationDictionary API
Sarvam speechToText API
Sarvam speechToTextJob API
Sarvam speechToTextTranslateJob API
Sarvam text API
Where this information came from

This is an independent, third-party profile of Sarvam textToSpeech API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.