API Documentation

The Indic TTS API is a simple HTTP REST API which uses an API Key based authentication for authorizing usage. The main API endpoint is a simple POST request, the response to which will provide the URL to the synthesized audio clip. If you need to receive multiple audio clips, you will have to split your text into multiple API calls.

Request

The text parameter of the request should be in plain text format, with any kind of markup removed.

Response

The JSON data in the response will provide the status of the response, any additional information as a message and the URL of the audio file generated from the text from the request. The audio file will be cached and be available for an hour, after which, it might be deleted.

Request
URL: https://bhaasha.iiit.ac.in/indic-tts/api
Method: POST
Parameters:
key
API Key
language
Language of the text
text
Text which has to be converted
Response
JSON Data:
status
Status of the request
message
Additional message to describe the status
url
URL of the audio file