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 ReferencesCookbookIntegrationDeveloper Tools
DocumentationAPI ReferencesCookbookIntegrationDeveloper Tools
  • API Reference
    • Introduction
    • Authentication
    • Access to Beta APIs
    • Meta Prompt Guide
  • Endpoints
      • POSTCreate
      • GETList
      • GETGet
      • PUTUpdate
      • DELDelete
LogoLogo
CommunityAPI StatusAPI PricingSign Up
EndpointsPronunciation Dictionary

Get

||View as Markdown|
GET
https://api.sarvam.ai/text-to-speech/pronunciation-dictionary/:dict_id
GET
/text-to-speech/pronunciation-dictionary/:dict_id
$curl https://api.sarvam.ai/text-to-speech/pronunciation-dictionary/dict_id \
> -H "api-subscription-key: <apiSubscriptionKey>"
1{
2 "pronunciations": {
3 "hi-IN": {
4 "B2B": "B to B",
5 "my name": "mera naam"
6 },
7 "en-IN": {
8 "teting": "testing"
9 }
10 }
11}

Retrieve the full pronunciation mappings for a specific dictionary by its ID.

Returns the pronunciation data organized by language code, where each language contains word-to-pronunciation pairs.

Was this page helpful?
Previous

Update

Next
Built with

Authentication

api-subscription-keystring
API Key authentication via header

Path parameters

dict_idstringRequired

Response

Successful Response
pronunciationsmap from strings to maps from strings to strings

Pronunciation mappings organized by language code (e.g. hi-IN, en-IN). Each language maps words to their custom pronunciations.

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error