The Language Optimizer API is a FastAPI-based application that provides functionality for multilingual text-to-speech conversion and multilingual text language translation. This project aims to enhance communication by allowing users to convert text into speech and translate text across multiple languages seamlessly.
- Text-to-Speech (TTS): Convert written text any from multiple supported languages into AI generated speach in your prefered language.
- Language Translation: Translate text between multiple languages.
- Multilingual Support: Handle text in various languages for both TTS and translation.
Endpoint : /tts/languages
Method : GET
Response :
{
"Status": 200,
"Supported languages": "str" // list of all supported languages
}
Endpoint : /tts/convert
Method : POST
Request Body :
{
"text": "str" // text you wan to convert
"language": "str" // desired language
"speed": "str"
}
Endpoint : /languages
Method : GET
Response :
{
"Status": 200,
"Supported languages": "list[str]" // list of all supported languages
}
Response : Audio file in MP3 format
Endpoint : /translate
Method : POST
Request Body :
{
"input_text": "str"
"translation_language": "str" // language in which you want translation
"input_language": "str" // language of input text [Optional]
}
Response : Translated text in JSON