Request and Response formats
endpoint - "https://x-api.herokuapp.com"
* add sub address written in brackets of APIs to the above endpoint to acess that API.
Detect Language ("/detectLanguage")
{
"text": "text who's language is to be detected"
}
{
"detectedLanguage": "en"
}
Translate Language ("/translate")
{
"from": "source language",
"text": "text who's language is to be translated",
"to": "target language"
}
{
"translatedText": "text after translation"
}
Supported Languages ("/languages")
GET / POST request to - "/languages" path
{
languages: [
{
name: "language name",
code: "language code"
},
{
name: "language name",
code: "language code"
},
.
.
.
]
}
{
"text": "text whos speech is to be created",
}
{
}
data - a stream of audio
{
"transcript": "text to the audio",
"confidence": 1.0 // if confidence provided by vendor
}
Face Detect ("/faceDetect")
{
"url": "url to the image"
}
{
"faces": [
{
"width": 56.0,
"height": 66.0,
"left": 214.0,
"top": 87.0
},
.
.
.
]
}