Text-to-Speech
This API converts text to speech.
Header Parameters
Content-Type string
The content type should be application/json.
Example: application/json
User-Agent string
Specifies the user agent string.
Example: iOS
x-client string
Specifies the client name
Example: jiocoupons
Authorization string required
API key for authorization.
application/json
Request Body
- The language of the input text.
- Supported languages: [ "English", "Hindi", "Gujarati", "Marathi", "Telugu", "Bengali", "Kannada", "Malayalam", "Tamil", "Spanish", "German", "Italian", "French", "Urdu", "Punjabi", "Assamese", "Oriya", "Standard Arabic", "Traditional Chinese", "Bahasa", "Dutch", "Korean", "Malay", "Polish", "Portuguese", "Russian", "Simplified Chinese", "Tagalog", "Thai", "Turkish", "Vietnamese" ]
input object
text string required
The text to be converted to speech.
language string required
gender string
The gender of the voice.
platform string
Possible values: [jiotranslate
, google
, azure
, dubverse
]
Platform used for translation
audioConfig object
audioEncoding string required
The encoding format for the audio output.
Responses
- 200
- 400
- 401
- 422
Success
application/json
Schema
Example (from schema)
Example
Schema
audioContent string
The base64-encoded audio content.
{
"audioContent": "UklGRjgAAABXQVZFZm10IBAAAAABAAEA..."
}
{
"audioContent": "UklGRjgAAABXQVZFZm10IBAAAAABAAEA..."
}
Bad Request
application/json
Schema
Example (from schema)
Example
Schema
status string
Status of the API
message string
The error message of the API
{
"status": "string",
"message": "string"
}
{
"status": "failed",
"message": "Bad Request"
}
Unauthorized
application/json
Schema
Example (from schema)
Schema
status string
Status of the API
message string
The error message of the API
{
"status": "string",
"message": "string"
}
Unprocessable Entity
application/json
Schema
Example (from schema)
Example
Schema
customCode number
Status of the API
message string
The error message of the API
errorsArray Array
The errors array which includes objects with a "property" and "message" properties describing the error
{
"customCode": 0,
"message": "string"
}
{
"customCode": 422,
"message": "Validation Error",
"errorsArray": []
}
Loading...