Text to Audio Translator
Introduction
The Text-to-Audio API is a powerful tool designed to convert written text into natural-sounding audio. This API is ideal for applications that require text-to-speech functionality, providing a seamless way to generate audio from any text input.
API details
Endpoint
POST https://api-preproduction.signzy.app/api/v3/translator/textToAudioPOST https://api.signzy.app/api/v3/translator/textToAudioRequest headers
Name | Value | Required | Description |
|---|---|---|---|
Content-Type | application/json | Mandatory | The type of content that the request body contains. |
Authorization | XXXXXXXXXXXXXXX | Mandatory | An authentication token to authorize the request. Reach out to the Signzy support team to get one created. |
Request body parameters
Parameter | Data Type | Description | Required |
|---|---|---|---|
language | string | The language in which you wanted to translate your text. | Mandatory |
input | Array of Objects | Statement you want to convert. | Mandatory |
gender | string | male/female voice of the audio which user wants. | Mandatory |
{
"language": "hi",
"gender": "female",
"input": [
{
"source": "My name is Ram"
},
{
"source": "your name?"
}
]
}Code samples
curl --location 'https://api-preproduction.signzy.app/api/v3/translator/textToAudio' \
--header 'Content-Type: application/json' \
--header 'Authorization: <Auth Token>' \
--data '{
"language": "hi",
"gender": "female",
"input": [
{
"source": "My name is Ram"
},
{
"source": "your name?"
}
]
}'Language code List
Language Code | Language |
|---|---|
en | English |
as | Assamese |
bn | Bengali |
brx | Bodo |
doi | Dogri |
gom | Konkani |
gu | Gujarati |
hi | Hindi |
kn | Kannada |
ks | Kashmiri |
mai | Maithili |
ml | Malayalam |
mni | Manipuri |
mr | Marathi |
ne | Nepali |
or | Odia |
pa | Punjabi |
sa | Sanskrit |
sat | Santali |
sd | Sindhi |
ta | Tamil |
te | Telugu |
ur | urdu |
Response body parameters
Parameter | Data Type | Description |
|---|---|---|
result | Array of Objects | A list containing the translation results. |
result.audioContent | String | The original text that was translated. |
}
//When the language is invalid
{
"error": {
"name": "error",
"message": "Invalid language",
"status": 400,
"reason": "VALIDATION_ERROR",
"type": "Bad Request",
"statusCode": 400
}
}
//When the field is empty
{
"error": {
"name": "error",
"message": "Gender can not be an empty string",
"status": 400,
"reason": "VALIDATION_ERROR",
"type": "Bad Request",
"statusCode": 400
}
}
//Contact Us for Any Assistance
If you have any questions or need assistance, please reach out to our customer support team. You can contact us via email at [email protected]. We strive to provide prompt and reliable assistance, ensuring your queries are addressed effectively.
We value your feedback and are committed to making your experience smooth and enjoyable. Our team is dedicated to assisting you with any needs you may have. Thank you for choosing our services. We look forward to helping you!